How to restart a Windows Server via command line
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