How to Shutdown and Restart Windows with shutdown.exe command-line application

By Detector | 17 July 2008



Shutdown.exe is a command-line (CMD) application that you can use to shut down or restart a local or remote computer directly from windows command prompt..

You can use this windows command line application for several actions:

1. To Schedule a computer to shut down and restart at a specific time, use Shutdown.exe in combination with Task Scheduler.

Examples:
Shut down the local computer in two minutes and display a “The computer is shutting down”:

shutdown /l /t:120 “The computer is shutting down” /y /c

Schedule the local computer to shutdown and restart at 10:00 P.M., type the following line at a command prompt, and then press ENTER:

at 22:00 shutdown /l /r /y /c

Schedule the local computer to shutdown and restart at 10:00 P.M., type the following line at a command prompt, and then press ENTER:

at 22:00 shutdown /l /r /y /c

2. To Shutdown or restart remote computers.

Example:
Shut down and restart a remote computer named “COMP1″ use the following line in a batch file or type it at a command prompt, and then press ENTER:

shutdown \\COMP1 /r

3. To Cancel the shutdown process (if it is scheduled)

Example:
To cancel the shutdown process, type the following line at the command prompt, and then press ENTER:

shutdown /l /a /y

Other features/parameters:
For other features of Shutdown.exe type the following line at the command prompt, and then press ENTER:

shutdown /?

Tags | , , ,

| |

Comments are closed.





Archives

Add to Technorati Favorites
website stats
TwitterCounter for @ukion