If you are using FR1 then you should be able to schedule it off the server settings (Individual servers) from within the CMC. Dead easy done through the GUI so messing around with switches and cmd scripts
The feature is available in the CMC... IF you have XPa or XPe, AND the "Resource Manager" option installed. (I think XPa is the minimum version required...)
I've got a batch file that I copied from this forum that logs off your users, stops the spooler services, deletes any print jobs that are hung and reboots the server.
Let me know if you need it and I will post it on the site.
Just reply to this post and let me know if you want it.
**************************************
REM * Citrix reboot file
REM * Reboot every Wednesday 12:00 P.M
***************************************
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, you may immediately log back in and continue working.
REM * Pause first 3 minutes
C:\WINNT\wait.exe 180 seconds
REM * Broadcast Server Shutdown again
msg * Server will reboot in 2 minutes, please log off.
REM * Pause for 120 seconds
C:\WINNT\wait.exe 120 seconds
REM * Reset all ICA/TCP sessions
echo y | reset session ica-tcp
REM * Stop print spooler for 30 seconds
net stop spooler
C:\WINNT\wait.exe 30 seconds
REM * Delete all stalled print jobs and delay for 20 seconds
Del /S /F /Q C:\Winnt\system32\spool\printers\*.*
C:\WINNT\wait.exe 20 seconds
REM * Shutdown Server
C:\WINNT\system32\tsshutdn.exe 0 /reboot /delay:00
BTY..you will need to download wait.exe from the internet or get it from a 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.