How to restart a Windows Server via command line

 In Server Core

How to restart a Windows Server via command line

So, you’re wondering “How to restart a Windows Server via command line”. To do this we’re going to use the SHUTDOWN command

I normally like to restart my computer as opposed to shutdown and I want it to happen straight away. The command therefore reads

Code:

shutdown /r /t 1

The /r is to restart, change to a /s if you want it to just shutdown

The /t is the time in which to do it. I followed this with a 1, so in 1 second the computer will start to shutdown / reboot.

Done

Recent Posts

Leave a Comment

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt

Start typing and press Enter to search