You can reboot a windows machine or shutdown it from the command line in Windows 10 using some of the built-in commands.
How to shutdown or reboot Windows machine from command line in Windows 10 ?
To shutdown the windows machine , we can use the following command.
Similarly , you can reboot or restart the windows machine using the following command
When you restart your machine , there are times when you will be prompted with a warning message to close the open applications. You can force the reboot of windows machine by closing the applications from the command prompt without any warning message using the below command.
shutdown /r /f