I would change the reset sessions tcp-ica to logoff. That way profiles, = etc are dealt with a little nicer. We use the chgcdm to delete client created printers and we also go = through a clean up any rogue cached profiles that did not delete = properly when the user logged out. -----Original Message----- From: Murphy, Brian [mailto:bmurphy@xxxxxxxxxxxxxxxxxxx] Sent: Friday, November 22, 2002 2:46 PM To: 'thin@xxxxxxxxxxxxx' Subject: [THIN] Reboot Script? Hi everyone, I'm getting ready to test this script out on a text Citrix system. I've compiled this script from recommendations made earlier (thanks for all = the advice). Take a look and see if anyone has any suggestions or recommendations. Thanks. ECHO ** Reboot report for Server ** > d:\apps\reboot\reboot.txt ECHO ********************************* >> d:\apps\reboot\reboot.txt 1. change logon /disable=20 2. msg * This server will be rebooted in 10 minutes. Please log out and reconnect to continue. You will be redirected to another system automatically. 3. sleep 300 4. msg * Warning...Server will reboot in 5 minutes. By logging off and back on you will be redirected to another server automatically. 5. sleep 180 6. msg * Warning...Server will roboot in 2 minutes. By logging off and back on you will be redirected to another server automatically. 7. sleep 120 8. net stop spooler=20 9. del %windir%\system32\spool\printers\*.* /q=20 10. echo yes | reset session ica-tcp 11. d:\apps\reboot\sendm32 -q -h1.1.1.1 -tnetreports@*.org -fServer -sReboot_Report d:\apps\reboot\reboot.txt 12. del d:\apps\reboot\reboot.txt /q 13. psshutdown.exe -r -t 10 -m "System Shutting down" * I have another script that runs at boot (configured as service) that replicates some information and notifies me that the server is backup. I've schedule this script above to run M-Su using the AT schedule = service. ***********************************************=20 This Weeks Sponsor: Wyse Technologies Get a free whitepaper on how to secure your corporate data from Wyse. Click Below.=20 http://thethin.net/wyse.cfm=20 ***********************************************=20 For Archives, to Unsubscribe, Subscribe or=20 set Digest or Vacation mode use the below link. http://thethin.net/citrixlist.cfm *********************************************** This Weeks Sponsor: Wyse Technologies Get a free whitepaper on how to secure your corporate data from Wyse. Click Below. http://thethin.net/wyse.cfm *********************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link. http://thethin.net/citrixlist.cfm