Restarting your computer from the command prompt (cmd) is a useful skill to have, especially if you’re troubleshooting a problem or want to perform a clean restart. Here’s how to do it:
Open the command prompt by pressing the Windows key + R, then typing “cmd” and pressing Enter.In the command prompt window, type the following command: