
How reboot Windows from CMD
Command to reboot windows computershutdown /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
To shutdown a Windows computershutdown /s
To abort computer rebootshutdown /a
To force reboot by closing applications without warningshutdown /r /f
Open the shutdown GUIshutdown /i
Reboot windows using WMICwmic os where Primary='TRUE' reboot