Ran,
This is quite simple.... if you want to map drives you just make a batch file for each user and use the command:
NET USE H: \\Servername\Sharename
( This is an example where it would map that share as the H: You can use any letter you want )
You can also just list as many as you want.
Another thing you may want to consider is adding a time synchronization command to the batch and, if practical, mapping the printers so anytime someone needs a printer added you can just modify the batch file at the server and the next time they log on it will all be there.
To map printers all you do is put the con2prt.exe file in the \Winnt\ directory on each client. Below is an example of how it should look.
REM Map All Network Drives Relevant to Specific User
REM ************************************************
NET USE H: \\Servername\Share1
NET USE L: \\Servername\Share2
NET USE N: \\Servername\Share3
NET USE P: \\Servername\Share4
NET USE W: \\Servername\Share5
NET USE S: \\Servername\Share6
REM Map All Printers Relevant to Specific User & Location
REM *****************************************************
CON2PRT/f
CON2PRT/c \\Servername\PrinterShareName1
CON2PRT/c \\Servername\PrinterShareName2
CON2PRT/c \\Servername\PrinterShareName3
CON2PRT/cd \\Servername\PrinterShareName4
REM Synchronize Time on All Workstation with Primary Domain Controller
REM ******************************************************************
NET TIME \\Servername /SET /Y
Note that with the con2prt function the following apply
con2prt /f = flush all printers... this wipes a clean slate.
con2prt /c = connect to printer
con2prt /cd = connect to printer and set as default... you'll obviously only want one.
In the example above all 4 printers would be installed and printer 4 would be the default.
Save this as a batch file, usually the username . bat, (ie. johndoe.bat, janedoe.bat), then put them in the
WINNT\SYSVOL\DOMAIN\SCRIPTS folder.
Then go in AD Users and Computers... choose a user, go into properties, go to the Profile tab, and type in the name of the batch file (ie. johndoe.bat) There is no need to include a path.
AD may take a few minutes to replicate these shares throughout the Domain. The next time the user logs on all the drives and printers will be mapped and the system time of the server and the client will be identical which is great for AD.
If anyone reads this and wants a copy of the con2prt file just email me.
-Mike Ward, MCSE, MCP+I, CCNA