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

Leave a Comment

Contact Us

Call us on: 01332 890460 or Send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt