| Unstable applications can cause an unstable environment. Rebooting the system prevents the operating system from becoming unstable. This allows the system to recover from applications leaking memory and other system resources. The following procedures describe how to create and schedule the recycling of your MetaFrame servers. 1. Create a folder off the root of C: called REBOOT. 2. Open Notepad and enter the following script and save it as shutdown.cmd | change logon /disable msg * Please log off and save your work. The server is going down in 5 mins. sleep.exe 5 net stop spooler sleep.exe 120 del c:\WINNT\System32\spool\PRINTERS\*.* /q tsshutdn.exe /REBOOT | The SHUTDOWN.CMD script will do the following: Disable any additional users from logging on Waits five seconds Sends a message to all currently logged on users to notifying them the server will be rebooted in 5 minutes. Stops the Spooler server Waits 120 seconds for the spooler service to stop Deletes any print jobs in the print spooler directory NOTE: you might need to change this file path in case you changed the default spool directory as recommended above. Sends a message to all logged in users notifying them the server will be shutdown in 1 minute Sends a message to all logged in users notifying them the server will be shutdown in 30 seconds Logs off all logged in users Reboot the Server every night at 4:00 AM Note: TSSHUTDOWN.EXE is supplied natively with Microsoft Windows 2000. You can download the above script and sleep.exe from: http://www.dabcc.com/projectinabox/RebootScript.zip 3. Click on the Start button Settings Control Panel double click on the Scheduled Tasks icon double click on the Add Scheduled Task icon.  4. Click Next  5. Click Browse  6. Browse to the reboot folder you create in step 1 and select shutdown.cmd and click Open  7. Enter a name for the task and select how often you would like the task to run and click Next.  8. Select the time and day you want the server to be rebooted at and click Next.  9. Enter a username and password that has access to reboot the MetaFrame server and click Next.  10. Click Finish  You have now successfully scheduled the server to automatically reboot at 4:00 AM every night. |