Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Active Directory > Script logon

Reply
 
 
Gianluca
Guest
Posts: n/a

 
      04-08-2010
hello everyone,
i have a doamin controller with windows 2003 standard edition SP1, I want
manage the access to shares folders with membership to group of domain
controller, but I don't rebember the syntax of the command.

Can yuo help please?
thanks
 
Reply With Quote
 
 
 
 
Meinolf Weber [MVP-DS]
Guest
Posts: n/a

 
      04-08-2010
Hello Gianluca,

Which script language do you use?

You should also think about installing SP2 and the latest patches on the DC.

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm


> hello everyone,
> i have a doamin controller with windows 2003 standard edition SP1, I
> want
> manage the access to shares folders with membership to group of domain
> controller, but I don't rebember the syntax of the command.
> Can yuo help please?
> thank



 
Reply With Quote
 
Gianluca
Guest
Posts: n/a

 
      04-08-2010
thanks for your advice,
I remenber, I saw a similar command syntax:

if "user is membership of group Access_disk_F" goto :map

:map
net use X: /delete
net use X: \\serbver_name\shere_folder

but i don't remember exact syntax.
thanks


"Meinolf Weber [MVP-DS]" wrote:

> Hello Gianluca,
>
> Which script language do you use?
>
> You should also think about installing SP2 and the latest patches on the DC.
>
> Best regards
>
> Meinolf Weber
> Disclaimer: This posting is provided "AS IS" with no warranties, and confers
> no rights.
> ** Please do NOT email, only reply to Newsgroups
> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>
>
> > hello everyone,
> > i have a doamin controller with windows 2003 standard edition SP1, I
> > want
> > manage the access to shares folders with membership to group of domain
> > controller, but I don't rebember the syntax of the command.
> > Can yuo help please?
> > thanks

>
>
> .
>

 
Reply With Quote
 
Richard Mueller [MVP]
Guest
Posts: n/a

 
      04-08-2010
You cannot test for group membership in a batch file unless you use a third
party tool. The Windows NT resource kit used to have a utility called
IfMember that can be used in a batch file to test for group membership. This
might be what you remember (I don't know the syntax). Also, a product called
XiXtart could test group membership. Otherwise, a VBScript program can test
group membership.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--

"Gianluca" <> wrote in message
news:F618CEB0-C318-4DFD-A6C5-...
> thanks for your advice,
> I remenber, I saw a similar command syntax:
>
> if "user is membership of group Access_disk_F" goto :map
>
> :map
> net use X: /delete
> net use X: \\serbver_name\shere_folder
>
> but i don't remember exact syntax.
> thanks
>
>
> "Meinolf Weber [MVP-DS]" wrote:
>
>> Hello Gianluca,
>>
>> Which script language do you use?
>>
>> You should also think about installing SP2 and the latest patches on the
>> DC.
>>
>> Best regards
>>
>> Meinolf Weber
>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>> confers
>> no rights.
>> ** Please do NOT email, only reply to Newsgroups
>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>
>>
>> > hello everyone,
>> > i have a doamin controller with windows 2003 standard edition SP1, I
>> > want
>> > manage the access to shares folders with membership to group of domain
>> > controller, but I don't rebember the syntax of the command.
>> > Can yuo help please?
>> > thanks

>>
>>
>> .
>>



 
Reply With Quote
 
Meinolf Weber [MVP-DS]
Guest
Posts: n/a

 
      04-09-2010
Hello Gianluca,

We use kix as scripting language and that way the possibility exist to check
for group membership.

With kix it could look like:

if ingroup ("your_group_name")
use x: /del /persistent
use x: "\\servername\share name"
endif

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm


> thanks for your advice,
> I remenber, I saw a similar command syntax:
> if "user is membership of group Access_disk_F" goto :map
>
> :map
> net use X: /delete
> net use X: \\serbver_name\shere_folder
> but i don't remember exact syntax.
> thanks
> "Meinolf Weber [MVP-DS]" wrote:
>
>> Hello Gianluca,
>>
>> Which script language do you use?
>>
>> You should also think about installing SP2 and the latest patches on
>> the DC.
>>
>> Best regards
>>
>> Meinolf Weber
>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>> confers
>> no rights.
>> ** Please do NOT email, only reply to Newsgroups
>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>> hello everyone,
>>> i have a doamin controller with windows 2003 standard edition SP1, I
>>> want
>>> manage the access to shares folders with membership to group of
>>> domain
>>> controller, but I don't rebember the syntax of the command.
>>> Can yuo help please?
>>> thanks

>> .
>>



 
Reply With Quote
 
Paul Bergson [MVP-DS]
Guest
Posts: n/a

 
      04-09-2010
I'm guessing you meant KiXtart

http://www.kixtart.org/

--
Paul Bergson
MVP - Directory Services
MCITP - Enterprise Administrator
MCTS, MCT, MCSE, MCSA, MCP, Security +, BS CSci
2008, Vista, 2003, 2000 (Early Achiever), NT4
Microsoft's Thrive IT Pro of the Month - June 2009

http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewGroups. This
posting is provided "AS IS" with no warranties and confers no rights.
"Richard Mueller [MVP]" <rlmueller-> wrote in
message news:...
> You cannot test for group membership in a batch file unless you use a
> third party tool. The Windows NT resource kit used to have a utility
> called IfMember that can be used in a batch file to test for group
> membership. This might be what you remember (I don't know the syntax).
> Also, a product called XiXtart could test group membership. Otherwise, a
> VBScript program can test group membership.
>
> --
> Richard Mueller
> MVP Directory Services
> Hilltop Lab - http://www.rlmueller.net
> --
>
> "Gianluca" <> wrote in message
> news:F618CEB0-C318-4DFD-A6C5-...
>> thanks for your advice,
>> I remenber, I saw a similar command syntax:
>>
>> if "user is membership of group Access_disk_F" goto :map
>>
>> :map
>> net use X: /delete
>> net use X: \\serbver_name\shere_folder
>>
>> but i don't remember exact syntax.
>> thanks
>>
>>
>> "Meinolf Weber [MVP-DS]" wrote:
>>
>>> Hello Gianluca,
>>>
>>> Which script language do you use?
>>>
>>> You should also think about installing SP2 and the latest patches on the
>>> DC.
>>>
>>> Best regards
>>>
>>> Meinolf Weber
>>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>>> confers
>>> no rights.
>>> ** Please do NOT email, only reply to Newsgroups
>>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>>
>>>
>>> > hello everyone,
>>> > i have a doamin controller with windows 2003 standard edition SP1, I
>>> > want
>>> > manage the access to shares folders with membership to group of domain
>>> > controller, but I don't rebember the syntax of the command.
>>> > Can yuo help please?
>>> > thanks
>>>
>>>
>>> .
>>>

>
>



 
Reply With Quote
 
Richard Mueller [MVP]
Guest
Posts: n/a

 
      04-10-2010
Yes.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--
"Paul Bergson [MVP-DS]" <> wrote in message
news:...
> I'm guessing you meant KiXtart
>
> http://www.kixtart.org/
>
> --
> Paul Bergson
> MVP - Directory Services
> MCITP - Enterprise Administrator
> MCTS, MCT, MCSE, MCSA, MCP, Security +, BS CSci
> 2008, Vista, 2003, 2000 (Early Achiever), NT4
> Microsoft's Thrive IT Pro of the Month - June 2009
>
> http://www.pbbergs.com
>
> Please no e-mails, any questions should be posted in the NewGroups. This
> posting is provided "AS IS" with no warranties and confers no rights.
> "Richard Mueller [MVP]" <rlmueller-> wrote in
> message news:...
>> You cannot test for group membership in a batch file unless you use a
>> third party tool. The Windows NT resource kit used to have a utility
>> called IfMember that can be used in a batch file to test for group
>> membership. This might be what you remember (I don't know the syntax).
>> Also, a product called XiXtart could test group membership. Otherwise, a
>> VBScript program can test group membership.
>>
>> --
>> Richard Mueller
>> MVP Directory Services
>> Hilltop Lab - http://www.rlmueller.net
>> --
>>
>> "Gianluca" <> wrote in message
>> news:F618CEB0-C318-4DFD-A6C5-...
>>> thanks for your advice,
>>> I remenber, I saw a similar command syntax:
>>>
>>> if "user is membership of group Access_disk_F" goto :map
>>>
>>> :map
>>> net use X: /delete
>>> net use X: \\serbver_name\shere_folder
>>>
>>> but i don't remember exact syntax.
>>> thanks
>>>
>>>
>>> "Meinolf Weber [MVP-DS]" wrote:
>>>
>>>> Hello Gianluca,
>>>>
>>>> Which script language do you use?
>>>>
>>>> You should also think about installing SP2 and the latest patches on
>>>> the DC.
>>>>
>>>> Best regards
>>>>
>>>> Meinolf Weber
>>>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>>>> confers
>>>> no rights.
>>>> ** Please do NOT email, only reply to Newsgroups
>>>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>>>>
>>>>
>>>> > hello everyone,
>>>> > i have a doamin controller with windows 2003 standard edition SP1, I
>>>> > want
>>>> > manage the access to shares folders with membership to group of
>>>> > domain
>>>> > controller, but I don't rebember the syntax of the command.
>>>> > Can yuo help please?
>>>> > thanks
>>>>
>>>>
>>>> .
>>>>

>>
>>

>
>



 
Reply With Quote
 
Bob Dorn
Guest
Posts: n/a

 
      04-22-2010

I remember if you use 2003 R2 GP Preferences were introduced, you could use
the group policy preferences which allow you to map drives based on group
membership.

On 2008 it's easy, We do all our drive mappings using the
USER/Preference/windows/ map drives part of group policy.

"Meinolf Weber [MVP-DS]" wrote:

> Hello Gianluca,
>
> We use kix as scripting language and that way the possibility exist to check
> for group membership.
>
> With kix it could look like:
>
> if ingroup ("your_group_name")
> use x: /del /persistent
> use x: "\\servername\share name"
> endif
>
> Best regards
>
> Meinolf Weber
> Disclaimer: This posting is provided "AS IS" with no warranties, and confers
> no rights.
> ** Please do NOT email, only reply to Newsgroups
> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>
>
> > thanks for your advice,
> > I remenber, I saw a similar command syntax:
> > if "user is membership of group Access_disk_F" goto :map
> >
> > :map
> > net use X: /delete
> > net use X: \\serbver_name\shere_folder
> > but i don't remember exact syntax.
> > thanks
> > "Meinolf Weber [MVP-DS]" wrote:
> >
> >> Hello Gianluca,
> >>
> >> Which script language do you use?
> >>
> >> You should also think about installing SP2 and the latest patches on
> >> the DC.
> >>
> >> Best regards
> >>
> >> Meinolf Weber
> >> Disclaimer: This posting is provided "AS IS" with no warranties, and
> >> confers
> >> no rights.
> >> ** Please do NOT email, only reply to Newsgroups
> >> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
> >>> hello everyone,
> >>> i have a doamin controller with windows 2003 standard edition SP1, I
> >>> want
> >>> manage the access to shares folders with membership to group of
> >>> domain
> >>> controller, but I don't rebember the syntax of the command.
> >>> Can yuo help please?
> >>> thanks
> >> .
> >>

>
>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Logon Script Weirdness - Vista Systems Nick Windows Vista General Discussion 0 03-07-2010 08:59 PM
logon script for mapping Bonno Bloksma Scripting 1 11-27-2009 05:18 PM
GP Logon Script works first time at second user logon Roland Schoen Active Directory 2 11-09-2009 12:19 PM
User Accounts can't be set to Administrator Steve A. Windows Vista Administration 10 03-09-2008 06:35 AM
Unable to run vbs logon script Wajinga Windows Vista Administration 1 06-13-2006 09:01 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59