@echo off
REM DRIVE MAPPING
@echo off
Echo .
Echo Login Script Starting...
Echo .
net time \\dc001 /set /yes
net use s: /delete
net use p: /delete
net use x: /delete
net use l: /delete
REM Cleanup
net use p: \\FS001\programs
net use s: \\FS001\shared
net use l: \\ap002\application
net use x: \\fs001\ENG_DATA
net use u: /home
REM The next line calls softbatline.bat which scans registry for registered programs & saves
REM the info to %computername%.sts (software tracking pickup)
REM Softbatline.bat must be in a writable directory because it creates temporary file
call l:\heohsoft\softbatline.bat > l:\HEOHSOFT\%COMPUTERNAME%.stp
REM this removed 011403 copy s:\software\fonts\ht*.* c:\winnt\fonts /y
copy L:\HEOHSOFT\font\system.ttf c:\winnt\fonts /y
REM call kix32.exe disclaim.kix
Kix32 "\\dc001\netlogon\disclaim.kix"
kix32 "\\dc001\netlogon\IE\W2W.scr"
If "%OS%" == "Windows_NT" goto EOF
:CHECKRAS95
@echo off
echo .
Echo Checking for Remote Connection
echo .
z:
rem following line should be "call z:\rtv95_98.bat ..etc"
call z:\rtv95_98.bat "remote connection" HKLM\SYSTEM\CurrentControlSet\services\remoteaccess RCONNECTION
IF NOT "%RCONNECTION%" == "KEY_NOT_FOUND" GOTO EOF
echo RAS Connection not detected....
goto runscript
:ENDCHECKRAS95
REM Tasks to run if not connected via RAS and win9x pc
:RUNSCRIPT
echo .
echo .
echo .
goto EOF
:ENDSCRIPT
:EOF
REM This is needed to let the login script finish
c: