Last Updated on April 22, 2020 by Next Century
Solution A – GUI + keyboard
If your a keyboard shortcut fan, you may have already known that Alt+F4 closes the currently selected Windows application.
When your desktop is selected, it stands to reason that typing Alt+F4 has the effect of telling Windows that you’d like to close Windows itself. Simple and easy to remember.
Press Win+D to minimized all open Windows to show your desktop, alternatively, you can left-click the lower-right corner
Press Alt+F4 to bring up the Shut Down Windows – What do you want the computer to do? dialog, where you can now choose any of the following list of actions:
Disconnect
Sign out
Shut down
RestartSelect which option you want, then press Enter or click OK
Solution B – Command Prompt
To initiate a Shut down, type
shutdown /s /t 0
Then press Enter
To initiate a Restart, type:
shutdown /r /t 0
Then press Enter
NOTE: Because of the 0 second delay you specified, you'll want to be very sure you really intend to do this immediately, before you press that Enter key!