Ah, but there's a gotcha - if an administrator session is active, it doesn't reboot the server and leaves it in a incommunicative state. Here is my script to avoid that (credit to Rick Mack for getting me started in the right direction): :ts1_reboot set checkadmin=1 for /f "tokens=1" %%i in ('"quser /server:iceberg-ts1 | find /i "administrator""') DO set checkadmin=%%i if %checkadmin% == administrator goto Else tsshutdn /server:iceberg-ts1 /reboot goto ts3_reboot :Else net send mear "administrator logged into TS1. Reboot failed." goto ts3_reboot :ts3_reboot ad infinitum Cheers, -- Michael Earley Citrix, Windows, Exchange Administrator Ext: 244 ; Mobile: 0400 508 040 -------------------------------------------- Queensland Studies Authority -------------------------------------------- Level 7/295 Ann Street, Brisbane, QLD Australia 4000 Ph: (+617) 3864 0299 Fax:(+617) 3221 2553 E-mail: Michael.Earley@xxxxxxxxxxxxxx ------------------------------------------------------------------- You cannot achieve what you have not first imagined ... ------------------------------------------------------------------- Many that live deserve death. And some that die deserve life. Can you give it to them? Then do not be too eager to deal out death in judgement. For even the very wise cannot see all ends. -Gandalf, Fellowship of the Ring ------------------------------------------------------------------- -----Original Message----- From: Anders Hansen-Øvre [mailto:Anders.Hansen-Ovre@xxxxxxxxx] Sent: Tuesday, 15 October 2002 10:21 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Reboot scripts On Windows 2000 you can use the build-in tsshutdn Shut down a server in a controlled manner. TSSHUTDN [wait_time] [/SERVER:servername] [/REBOOT] [/POWERDOWN] [/DELAY:logoffdelay] [/V] wait_time Seconds to wait after user notification before terminating all user sessions (default is 60). /SERVER:servername The server to shut down (default is current). /REBOOT Reboot the server after user sessions are terminated. /POWERDOWN The server will prepare for powering off. /DELAY:logoffdelay Seconds to wait after logging off all connected sessions (default is 30). /V Display information about actions being performed. --- mvh/yours Anders Hansen-Øvre, Seniorkonsulent Mail : anders.hansen-ovre@xxxxxxxxx Cell : (+47) 90 98 17 78 Konsulenthuset Contra as http://www.contra.no > -----Original Message----- > From: Michael Woodward [mailto:Mwoodward@xxxxxxxxxxx] > Sent: 15. oktober 2002 14:24 > To: 'thin@xxxxxxxxxxxxx' > Subject: [THIN] Reboot scripts > > > I am looking for reboot scripts. I checked www.thethin.net > and I guess I was looking for a repository of scripts. Is > there anything like that on the site? If not could I get an > example of someone's scripts that includes warning messages > at time intervals before reboot. > > C. Michael Woodward, MCSA, CCA > Citrix/Database Administrator > Brisben Companies > Cincinnati, Ohio > 513-489-1990 > > > ********************************************** > This weeks sponsor New Moon Canaveral IQ > New Moon Canaveral IQ is an intelligent > alternative to Citrix® MetaFrame (tm) for > delivering and managing centrally-deployed > Windows-based applications > http://www.newmoon.com > *********************************************** > > For Archives, to Unsubscribe, Subscribe or > set Digest or Vacation mode use the below link. > http://thethin.net/citrixlist.cfm ********************************************** This weeks sponsor New Moon Canaveral IQ New Moon Canaveral IQ is an intelligent alternative to Citrix® MetaFrame (tm) for delivering and managing centrally-deployed Windows-based applications http://www.newmoon.com *********************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link. http://thethin.net/citrixlist.cfm -- Binary/unsupported file stripped by Ecartis -- -- Type: application/ms-tnef ********************************************** This weeks sponsor New Moon Canaveral IQ New Moon Canaveral IQ is an intelligent alternative to Citrix® MetaFrame ? for delivering and managing centrally-deployed Windows-based applications http://www.newmoon.com *********************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link. http://thethin.net/citrixlist.cfm