Win2003 server timed automatic restart command

  

first talk about the server situation: IBM e@server 3.0 4G memory client about 100. Peak memory utilization rate 3100M/5100M my company's server is open 24 hours a day, but Since many users connecting to the company's servers have also been hanging on it, the server's memory has been occupied by the inactive part of the room. So I want to automatically restart the server every day during the idle time, release the memory. I checked. The following information is as follows:

Timed automatic restart under win2003

1.win2003 can be automatically restarted like this: Create a new command line file such as reboot.cmd as follows: shutdown -r -t 30 Create a new task in the task, the program selects the above reboot.cmd file, the time is fixed, the user and password for executing the task are set 2.

Do you want to go to sleep or go out, but the computer is working again, can't now Just shut down, then you must use the timer to automatically shut down. Slowly and slowly, why do you always want to download it online? Don't you want to be an expert in the operating system. XP/2003 has this function. Let Dragon Dragon teach you a trick. Windows XP/2003 shutdown is controlled by the Shutdown.exe program, located in the Windows/System32 folder. Select “Start →Run”, if you want the computer to shut down after 3600 seconds (one hour), enter " shutdown -s -t 3600 " If you want the computer to shut down at 8:00 at a fixed time, enter " At 8:00 shutdown -s", pay attention to the time to 24 hours suddenly, you do not want to shut down regularly, want to cancel it, or you want to modify the shutdown time, then, enter "shutdown -a", the timing you just set Shutdown will be canceled, what? You want a timed shutdown of the interface operation. Well, Longlong meets your requirements. Enter "shutdown -i", so that any timed automatic shutdown settings are in your interface. Ok, the dragon dragon is finished, flash! ! ! 3. Usage: CODE:shutdown [/i |  /l |  /s |  /r |  /a |  /p |  /h |  /e] [/f][/m //computer][/t xxx][/d [whsong]

][Copy to clipboard]

No parameters Show help. This is the same as typing /? /? Show help. This is the same as not typing any options /i to display the graphical user interface (GUI). This must be the first option /l to log out. This cannot be used with the /m or /d option /s to shut down the computer /r to shut down and restart the computer /a to abandon the system shutdown. This can only be used to shut down the local machine with /p during the timeout period, with no timeout or warning. This can only be used with the /d option /h to hibernate the local machine. This can only be used with the /f option /e to log the unexpected cause of the computer to the document /m //computer Specifies that the target computer /t xxx setting timeout before closing is xxx seconds. The valid range is 0-600. The default is 30/c "comment" A comment for the reason for restarting or closing. Allow up to 127 characters /f to force a running application to close without warning the user /d [p:]xx:yy Provide a reason for restarting or shutting down p indicates that restarting or shutting down is the planned xx is the prime number (a positive integer less than 256) yy is a secondary cause number (a positive integer less than 65536)

Reasons on this computer: (E = expected U = unexpected P = plan, C = custom) category primary Minor title

U 0 0 Other (unplanned) E 0 0 Other (unplanned) EP 0 0 Other (planned) U 0 5 Other faults: System does not respond E 1 1 Hardware: Maintenance (unplanned) EP 1 1 Hardware: Maintenance (planned) E 1 2 Hardware: Installation (unplanned) EP 1 2 Hardware: Installation (planned) P 2 3 Operating System: Upgrade (planned) E 2 4 Operating System: Reconfigured (unplanned) EP 2 4 Operating System: Reconfigured (Planned) P 2 16 Operating System: Service Pack (Planned) 2 17 Operating System: Hot Patch (no plan) P 2 17 Operating System : hot repair Medium) 2 18 Operating System: Security Patch (no plan) P 2 18 Operating System: Security Patch (planned) E 4 1 Application: Maintenance (unplanned) EP 4 1 Application: Maintenance (planned) EP 4 2 Application: Installation (planned) E 4 5 Application: No response E 4 6 Application: Unstable U 5 15 System failure: Stop error E 5 19 Security issue U 5 19 Security issue EP 5 19 Security issue E 5 20 Loss of network connectivity (unplanned) U 6 11 Power failure: The cable is unplugged U 6 12 Power failure: Environment P 7 0 Legacy API shutdown

Copyright © Windows knowledge All Rights Reserved