@%LOGONSERVER%\NETLOGON\logevent -m %logonserver% -s I -r "Logon" "Logon of %USERNAME% @ %COMPUTERNAME%" >nul :: Write the logon event to the eventlog, this should be the first line :: so that when the user kills the logon script, this will nevertheless :: be executed (at least we hope so!) :: FILE: Logon.bat :: :: Logon script :: :: Uses sleep.exe and logevent.exe from :: the Windows NT/2000 Server Resource Kit :: :: AUTHOR: Parcifal Aertssen :: http://www.aqtronix.com @ECHO OFF CLS ECHO 2S77rrrrrrrrrrrrr, .irrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrXW ECHO MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM@MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ECHO S . .. MMM 7. :ii Z . X.X ZS., ,;@ ECHO MMMMM MMMMMMMMa MMMr MMMMMMMM MMMMMMMMM MMMM: MMM: MMM MMMSMMM8 ECHO MMMZMM MMMM MMM MMMr MMMi MMMr:MMM MMMX MMMMM MMM a X MMMMM ECHO 8MM. MMM @MMM MMMa MMMr MMMMMMMi SMMM MMMW MMM,MMMMM MMM 0MMMM ECHO MMMMMMMM; MMMMMMMMM MMM7 MMM8MMM: MMMMMMMMM MMM :MMMM MMM MMM2MMM ECHO MMMM @MMM MMMMMMMMM MMMM MMMM MMMM WMMMMMW MMM 8MMM2 MMM2MMMM .MMMM ECHO : echo. echo. echo. echo Hello %USERNAME%, welcome to the network! echo You are accessing the network from %COMPUTERNAME% echo And you are running the %OS% os. echo Your are logged on to the domain %USERDOMAIN% echo verified by the server %LOGONSERVER% echo. %logonserver%\NETLOGON\sleep 6 cls ver echo. %logonserver%\NETLOGON\sleep 2 :: set local time same as server (W9x & NT4 only, :: for win2000: w32time service takes care of this!) :: uncomment line below ::net time %LOGONSERVER% /set /yes echo. ::user defined script (e.g. for users with no roaming profiles) CALL "%HOMEDRIVE%%HOMEPATH%\%USERNAME%.bat" %logonserver%\NETLOGON\sleep 8 ::PAUSE