The perfect solution for Win2003 scheduled automatic restart

  

Although Win2003 is a relatively stable system, if the server is used for a long time, the system resources will be occupied with a large amount of resources, so the operation efficiency will be greatly reduced, and the response time for opening a web page will be particularly long. At this point we need to clean up some services, or restart the server. Manual manual operation is obviously complicated and unrealistic. How to simply implement automatic server restart?

In fact, in Windows Server 2003, we can use the shutdown command and its own tasks. Plan to simply achieve the purpose of remotely restarting the server system.

The specific method steps are as follows:

1. First, open the Notepad program and enter the following command code:

shutdown -r -f -t 30

Command Explanation: The r parameter specifies that the server system is restarted, the f parameter forces the stubborn process and application in the server system to be shut down, and the t parameter indicates the time when the system shuts down.

Then select "Save As", note that the file type is selected as "All Files", and the file name is entered as "Restart.bat", which is saved as a batch in the format of “.bat” File and save it to the right place.

2, then, click the "Start - Programs - Accessories - System Tools - Task Schedule" command (or find the task schedule option directly from the Control Panel and open), double-click the interface with the mouse In the "Add new task" icon, open the new task creation wizard interface.

Click the “Next” button to click the “Browse” button from the application list box to open the file selection dialog and select the previously generated “Restart.bat” file. Import into the wizard window.

Then take the appropriate name for the new scheduled task and set “the execution of the task to “Daily”. After clicking the “Next” button, enter the setting interface and specify the running start time of the new task as “ quo;4:00”.

Click "“Complete" to end the creation of the server scheduled restart task.

After detailed settings in the above steps, the server system will automatically restart at the time we set. To better use the Win2003 system, try the above.

Copyright © Windows knowledge All Rights Reserved