Tuesday, August 26, 2014

Windows Server/PC Force Shutdown or Restart from Command Line

Shutdown

Normal Shutdown
To perform a normal Shutdown, open Run (Start >> Run) and type in Shutdown –s . Your PC will shutdown just as it would when you click Shutdown from the Start menu

Force Shutdown
To perform a Force Shutdown, type in Shutdown –s –f. Notice a new parameter –f? This parameter is responsible for Fore Shutdown.

Force Shutdown with Time
To perform a Timed Force Shutdown, type in Shutdown –s –f –t 00. This will Force Shutdown your PC in 00 seconds (waiting time). Setting it to 05 will shutdown your PC after 05 seconds i.e after waiting for 5 seconds.

Restart

To restart, simply replace –s with –r. If you are unsure, proceed reading.
Normal Restart
To perform a normal Restart, open Run (Start >> Run) and type in Shutdown –r . Your PC will reboot just as it would when you click Restart from the Start menu

Force Restart
To perform a Force Restart, type in Shutdown –r –f.

Force Restart with Time
To perform a Timed Force Restart, type in Shutdown –r –f –t 00.


GOODLUCK !!!!

0 Comments: