Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Restart Windows computer from command line (CMD)

We can Reboot a Windows computer from command line using the in-built shutdown command.  Below you can find syntax of this command for various use cases.

Command to Reboot Windows computer:

shutdown /r

The above command will set a time out of 30 seconds to close the applications. After 30 seconds, windows reboot will start.

If you want to reboot Windows with your own time out value you can use the below command.

shutdown /r /t timeout_in_seconds (0 will restart it right away)

To Shutdown a Windows computer:

shutdown /s

To abort computer reboot:

If you have issued a reboot command and have changed mind, you can stop Windows reboot by running the below command.

shutdown /a

To force applications to close without warning

shutdown /r /f

Open the shutdown GUI

shutdown /i

Add reason for the reboot of the computer

shutdown /r /c "This is the reason for the reboot of the computer"

The above commands for system reboot work on all Windows releases – Windows 7, Windows 8, Windows XP, Vista, Windows server 2003 and 2008.

Reboot Windows using WMIC commands:

You can run the below wmic command to reboot Windows OS.

wmic os where Primary='TRUE' reboot

For additional help contact Long Island Computer Repair

Related posts:

No related posts.



This post first appeared on IT Consultants Long Island | Computer Repair Long, please read the originial post: here

Share the post

How to Restart Windows computer from command line (CMD)

×

Subscribe to It Consultants Long Island | Computer Repair Long

Get updates delivered right to your inbox!

Thank you for your subscription

×