Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi All,
I have had a look through site and couldnt see what I am looking for.
I am a novice in creating logon scripts so please bear with me.
I am looking to create a script using a batch file that will map network drives based on a users membership.
That way each user will have access to the appropriate shares when they logon.
Our network uses a 2003 domain controller and the machines on the network are all running win xp pro.
Any help would be appreciated.
Cheers.

May want to look up basics about GPO's. If you know that they can be applied to OU's and can be filtered to security groups, between those two facts, the solution is pretty obvious.
"How many squirrels had to die to make you look fly?!"

I think you can specify the logon script in the user profile under AD users and computers-->User-->select user-->properties-->profile,
For GPO, look into www.salem-radha.com --windows 2003 hardening guide

The quick and simple way to do this is as follows:
On your domain controller make sure the follwoing folder is shared already:
c:\WINDOWS\SYSVOL\domain\scripts
This folder should show up as 'NETLOGON' if you browse the server name. This is where you need to stick your logon batch files.
Then simply open up a users acount in Active Directory Users and Computers on the server. Go to the profile tab and in the 'Logon Script' box type the name of the batch file you want to use from the netlogon folder i.e mylogon.batThe user should automatically run the logon script next time they log in to the PC.
Alternatively you can use active directory scripting, but if you just wanna map drives for now, stick with the above method.
Like heropsycho2177 said though, do some reading on GPOs and you'll find you can do an immense amount of things automatically and easily.

You could also use kixtart to create scripts that would run a particular logon script based on if the user logging in is a member of a particular group. Just setting everyone to the same logon script, such as logon.bat.
In logon.bat on the server netlogon share, use a line like the following to call a kix script:
%LOGONSERVER%\NETLOGON\kixtart\kix32.exe %LOGONSERVER%\NETLOGON\logon.kix
In the logon script example (logon.kix), for each group you want a script to run, add something similar to the following, and create the actual bat file script for that group:
IF InGroup ("Marketing")
RUN "%LOGONSERVER%\netlogon\marketing.bat"
ENDIFThe kixtart program can be downloaded from:

![]() |
Additional Drive Volumes
|
Roaming Profiles - help p...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |