Win2003 server restarts on time

  

Although the Win2003 system is stable and secure, the operation that has to be restarted after a while is indeed a headache, as is the server. If you have to manually restart each time and feel particularly troublesome, then is there any good trick to allow the system server to restart automatically? Two methods are shared with everyone.

Method One:

WINDOWSSERVER2003 has a command called shutdown.exe. I don't know if the public has noticed it. The detailed parameters are as follows:

Usage: shutdown[-ilsra] [-f][-m\\computername][-txx][-c"comment"][-dp:xx:yy]

No parameters to display this audio (similar to ?)

-i displays the GUI interface, it must be the first option

-l undo (cannot be used with option -m)

-s close this computer

-r Turn off this computer

-a discard system shutdown

-m\\computernameremote computer shutdown/restart/discard

-txx configuration off timeout is xx seconds< Br>

-c"comment"Close annotation (maximum 127 characters)

-f Forced operation is closed without warning

-d[p]:xx:yy Close the original code

u is the user code

p is a program's closing code

xx is a primary source code (a positive integer less than 256)

yy is a secondary origin (a positive integer less than 65536)

u is a user code

p is a scheme closing code

xx is a primary source code (a positive integer less than 256)< Br>

yy is a secondary source code (a positive integer less than 65536)

Use this command such as: shutdown /r to complete the windows restart operation, with this command, to make it daily Automated operation is even simpler, and the task of using WINDOWS can be used.

Careful partners can find that there is no shutdown command under Windows2000, then what to do! Oh! From Windows2003, COPY is not on the list!

For the sake of simplicity, I wrote a Batch processing is used to configure these operations. It can be automatically set to restart at 4 am every day. After the system is installed, it can only be run once. If you don't want it now, you can delete the corresponding item in the scheme task in the control panel.

@echooff

echo┌────────────────────────┐

Server scheduled restart

echo│--------------------------------------- ---------│

Echo│ Platform: w2k/w2k3 Test Resolve

Echo│ Homepage: www.ghost9.com

Echo└── ──────────────────────┘

Echo is configuring ……

at4:00/every:M, T,W,Th,F,S,Sushutdown.exe/r

After the echo configuration is complete, press the 键 键 button to exit ……

pause>nul

Two:

iisreset.exe /reboot to complete, the method is as follows:

At the beginning - control panel - program task, point add program task

in the browsing order Select c:windowssystem32iisreset.exe, then select daily,

After the addition is complete, click the properties of this task, and then enter

C:WINDOWSsystem32iisreset.exe/reboot

It will work after it is determined.

The above two methods can make the Win2003 server restart on time. If you use the Win2003 system, you need to manually restart it every time, and you feel that it is very troublesome. Then follow the steps above to solve it.

Copyright © Windows knowledge All Rights Reserved