My apologies for the blatent plagurisation of this script - will be real Script Author please stand up, please stand up, please stand up...
REM **************************************
REM * Citrix reboot file
REM * Reboot every Wednesday 12:00 P.M
REM ***************************************
REM * Disable logon so new users can't logon
change logon /disable
REM * Broadcast Server Shutdown
msg * Server will reboot in 5 minutes, please save all work and log off now!
REM * Pause first 3 minutes
C:\WINNT\sleep.exe 180
REM * Broadcast Server Shutdown again
msg * Server will reboot in 2 minutes, please log off.
REM * Pause for 60 seconds
C:\WINNT\sleep.exe 60
REM * Reset all ICA/TCP sessions
echo y | reset session ica-tcp
REM * Stop print spooler for 30 seconds
net stop spooler
C:\WINNT\sleep.exe 30
REM * Delete all stalled print jobs and delay for 20 seconds
Del /S /F /Q C:\Winnt\system32\spool\printers\*.*
C:\WINNT\sleep.exe 20
REM * Shutdown Server
C:\WINNT\Shutdown.exe /L /R /Y
REM Note: Remember the /Y after the shutdown command. Shutdown.exe and sleep.exe copied to the C:\WINNT directory from the win2k resource kit.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.