;logon.bat
Last updated on March 11, 2006
:File Name :Logon.bat
:File Location :\\Server_Name\NETLOGON
Share
:File Description :Single domain user logon.bat file
:ALLUSERS BEGIN
==========
:ALLUSERS last modified on:MM.DD.YY BK [...]
:ALLUSERS
@echo off
echo.
echo Hello %USERNAME%
echo Your
dir is:%HOMEDRIVE% %HOMESHARE%
echo Your
server is: %LOGONSERVER% in the %USERMAIN%
domain
echo.
:95_ARCH_TEST
if '%PROCESSOR_ARCHITECTURE%'=='
' goto Win9x
ECHO OS NT
detected
echo.
goto
95ARCHTESTEND
:Win9x
ECHO OS 9.x
detected
echo.
goto END
:95ARCHTESTEND
:SHORTCUTS
:echo
Verifying Desktop Shortcuts ...
:copy %logonserver%
netlogon\pcrefe~1.file_extension /r /d
%userprofile%\desktop
:IF EXIST %userprofile%\desktop\welcom~l.lnk
goto DEL_LNK
:If not errorlevel 1 goto UNIVERSAL_DRIVE_LETTER_DRIVE
:DEL_LNK
:del %userprofile%\desktop\welcom~l.lnk
:SHORTCUTS_END
:UNIVERSAL_DRIVE_LETTER_DRIVE
net use drive_letter: %logonserver%netlogon
/persistent:no
:UNIVERSAL_DRIVE_LETTER_DRIVE_END
:COMPUTING_CLIENTS
if not exist "%userprofile%\OS"
md "%userprofile%\OS" copy /y "%logonserver%\netlogon\ABCDEFG$.ini"
:COMPUTING_CLIENTS_END
:Electronic_Inventory
:Modified MM.DD.YY by HH
if exist $p$gnorun goto DONE
if exist drive_letter:\norun goto DONE
\\Server_Name\scan\scan.exe
:Electronic_Inventory_END
if exist $p$gnorun.txt goto done
start \\Server_Name\scan\scan.exe
goto done
:Done
:ALLUSERS END
==========
:END
==========
:END last modified on:MM.DD.YY rb [...]
:END
:END
==========
REM Company_Name Systems Management Server (start)
REM SMS Build Number
call %0\..\ smsls
REM Company_Name Systems Management Sever (end)