Install the ResKit on a workstation or server (lots of useful tools). Copy ifmember.exe from the installation folder into the netlogon share of your DC (locally usually %Systemroot%\sysvol\sysvol
Copy the batch script below into the netlogon share as well, for example as logon.cmd.
Open the user properties of a test user, go to the profile tab, and enter logon.cmd in the Logon Script field (no path, just the script name; Windows knows to look in the netlogon share).
Adjust the groups and drive letters of the example to your needs, add new mappings as required.
Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/d
More about batch scripting here: http://ww.robvanderwoude.c
The script could of course be refined a bit, but in its current state, it's (more or less) easy to understand.
ifmember.exe will return errorlevel 1 if the user is a member of the group given, and "||" will only run the following command if the previous command returned errorlevel 1.
Main Topics
Browse All Topics





by: ged325Posted on 2009-06-05 at 13:04:56ID: 24559760
how bout just a batch file?
net use x: \\server\path
Attach the bat based on the group.