[THIN] Re: Script to reboot servers
- From: "Schneider, Chad M" <CMSchneider@xxxxxxxxx>
- To: "'thin@xxxxxxxxxxxxx'" <thin@xxxxxxxxxxxxx>
- Date: Fri, 26 Jan 2007 08:12:55 -0600
For PS 4.0
@echo off
cls
@Title Citrix XP Server Cleanup and Reboot Script.
Change logon /disable
msg * Citrix will be shutting down for maintenance in 15 minutes. Please
Logoff in 10 minutes, OR risk damaging your files. You may log back on in
25 minutes.
SLEEP 300
msg * Citrix will be shutting down for maintenance in 10 minutes. Please
Logoff in 5 minutes, OR risk damaging your files. You may log back on in 20
minutes.
SLEEP 300
msg * Citrix will be shutting down for maintenance in 5 minutes. Please
Logoff in 0 minutes, OR risk damaging your files. You may log back on in 15
minutes.
SLEEP 60
net stop cpsvc /y
net stop spooler /y
msg * Citrix will be shutting down for maintenance in 4 minutes. Please
Logoff NOW, OR risk damaging your files. You may log back on in 15 minutes.
SLEEP 60
msg * Citrix will be shutting down for maintenance in 3 minutes. Please
Logoff NOW, OR risk damaging your files. You may log back on in 15 minutes.
SLEEP 60
msg * Citrix will be shutting down for maintenance in 2 minutes. Please
Logoff NOW, OR risk damaging your files. You may log back on in 15 minutes.
SLEEP 60
msg * Citrix will be shutting down for maintenance in 1 minutes. Please
Logoff NOW, OR risk damaging your files. You may log back on in 15 minutes.
SLEEP 60
msg * Citrix is shutting down for maintenance NOW! Please Logoff NOW, OR
risk damaging your files. You may log back on in 15 minutes.
C:\WINNT\system32\logoff.exe ica-tcp < yes
C:\WINNT\system32\logoff.exe rdp-tcp < yes
del C:\WINNT\system32\spool\printers\*.* /q
del C:\WINNT\jet*.tmp /q
delprof /q /i /d:1
Change logon /enable
shutdown /r /f /T 30 /C "Server Rebooting for Weekly Reboot!"
_____
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf
Of Minero, Hector B CIV NSWCDD, K55
Sent: Thursday, January 25, 2007 3:53 PM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Script to reboot servers
Does anyone have a daily reboot script that checks if users are logged in
before rebooting the Citrix servers? And maybe send them a warning message?
Thanks,
_________________________
Hector Minero
NSWCDD Code K55
Ph: 540.653.8859
Email: hector.minero@xxxxxxxx
Other related posts: