Command to reboot windows computer
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 computer
To abort computer reboot
To force reboot by closing applications without warning s’hutdown /r /f’ Open the shutdown GUI ‘shutdown /i’ ‘Reboot windows using WMIC’ wmic os where Primary=‘TRUE’ reboot