Hi Folks,Heres another great Freebie from Warren Simondson!JimHi All
I tapped out this little freeware utility the other day and thought it may be of some use to the community.You can download the utility from http://www.ctrl-alt-del.com.au/CAD_Utils.htm.
TSReboot is a command-line tool to reboot selected or all Citrix and Terminal Servers within a Domain with specified intervals.
This utility was written to replace reboot commands currently foundin the MS Windows Operating System. This utility offers an extrafeature that will be of benefit to all admins - the ALL switch.Using this switch, an admin can centrally reboot all Citrix/TS serverswithin a Domain with one command, and at specified intervals.An EXCLUDE switch is also available to exclude selected servers from theALL option. It is recommended that you run TSREBOOT LISTALL first tolist what Citrix/TS servers are available in the Domain.This command can also be used in a script. This command can only be usedwith administrative privileges.You can run this command as a scheduled task. If this command is executedwith the ALL option from a Citrix/ TS server within the domain, then theexecuting server will be rebooted last.Servers are not rebooted all at once with the ALL command. The delay betweenthe reboot of each server is set at the command line (default: 20 minutes).All users on each server are sent a message to logoff prior to the reboot.Any user failing to logoff 2 minutes prior to reboot will be gracefullylogged off by the system.
This utility is FREEWARE and was written by Warren Simondson ofCtrl-Alt-Del IT
. www.ctrl-alt-del.com.au Consultancy, Australia
Thankyou to the WINDOWS SDK available from http://msdn.microsoft.com/downloads
Usage:TSReboot [LISTALL] [wait_time] [/SERVER:servername | ALL [/EXCLUDE:]]
LISTALL [Optional] LISTS all TS and Citrix Servers inthe current Domain. DOES NOT REBOOT.wait_time [Optional] Minutes to wait after user notificationbefore rebooting each server (default is 20)./SERVER:servername [Optional] Specifies the server to reboot(default is current).ALL [Optional] Reboot ALL TS and Citrix Servers./EXCLUDE:servername [Optional with ALL] Exclude particular serversfrom reboot when ALL option is provided. Can acceptmultiple entries, seperated by comma. Must be lastcommand line argument./? This help information.
TSReboot with no parameters lists the help information.
E.G. TSReboot ALLThis command will reboot all TS or Citrix Servers in the current Domain.
E.G. TSReboot ALL /EXCLUDE:MyServer2,MyServer3This command will reboot all TS or Citrix Servers in the current Domainexcept for MyServer2 and MyServer3.
E.G. TSReboot 30This command will reboot the current TS or Citrix Server in 30 minutes.
E.G. TSReboot ALL 10This command will reboot all TS or Citrix Servers in the current Domain with10 minute intervals.
E.G. TSReboot 5 /SERVER:MyServerThis command will reboot MyServer in 5 minutes.
All the TS utilities I have written to date can be executed from a Windows XP or Vista PC.Warren SimondsonCtrl-Alt-Del IT Consultancy Pty LtdWebsite: http://www.ctrl-alt-del.com.au
Need a quick answer? Get one in minutes from people who know. Ask your question on Yahoo! Answers.