Mapping drives in logon.bat
Posted on 2004-09-15
Im having issues with getting dirves to map when a user logs into the doman.
My logon.bat looks like this:
My welcome.bat looks like this:
ECHO Welcome to the Network, %USERNAME%.
ECHO You are at computer %COMPUTERNAME% running Windows XP Pro os.
ECHO Please wait, authenticating %USERNAME% with the %USERDOMAIN% domain.
AND the mapdrivers.bat looks like this:
REM Exit if user has logged on to the server
IF %COMPUTERNAME%.==Server2003. GOTO END
REM Delete pre-existing drive mappings
NET USE H: /DELET >nul
REM MAP H: To Users
NET USE H: \\Server2003\Temp
I made that Temp folder in the ROOT dire and set it up so "Everyone" had full access.
The bat files are all stored in the windows\sysvol\domain\scripts folder
When I go to my test client PC and log into the domain. I see NO welcome message and no hard drive is mapped.
Any Idea on where I went worng?