Shortcut to shutdown or restart Windows 10 in less than three keystrokes

66

17

On Windows XP we had Win , U + U

On Windows 7 we had Win , Right cursor + Enter

I never had Windows 8, so I am not sure what the shortcut is/was.

There is Alt+F4 and then Enter, but this only works from the desktop. I would like to do this from any 'position' or 'place' or within any program. If I were in an application and did this, I'd only close down that application.

My question is, is there a keyboard combination (which does not rely on creating scripting files and global shortcuts), to shutdown the PC in three or less keyboard keystrokes from any position/program. Also, is there a similarly short key sequence for restart?

MyDaftQuestions

Posted 2015-09-05T11:22:26.993

Reputation: 1 459

12Why don't you just configure the power button to shutdown? That's only 1 keystroke! ;) – DavidPostill – 2015-09-05T11:36:55.227

3I gave up & put bat files on my desktop, cos it's even harder over remote desktop :( – Tetsujin – 2015-09-05T11:37:05.243

Nothing's reliable on a headless machine, except the power button. Win U U was by far the best, as it worked in all circumstances [except having something beginning with U in your start menu] – Tetsujin – 2015-09-05T11:44:27.003

1There should be shutdown button on the (lock) screen when you press Ctrl+Alt+Delete (or Ctrl+Alt-End in Remote Desktop session). I'm not sure if it's reachable by another keystroke. – CodeManX – 2015-09-05T11:55:56.103

Ah, there is a shutdown... but no restart, which is what i most often need on remote. (anyway, this isn't my question, so I'll shut up now ;) – Tetsujin – 2015-09-05T12:09:55.753

4@Tetsujin <win>+<x>, <u>,<r> for a restart ... – DavidPostill – 2015-09-05T12:35:14.810

@DavidPostill, updated my question, can you move the restart comment into your answer please? – MyDaftQuestions – 2015-09-05T12:41:48.600

@DavidPostill - Love the Win+x commands - but they don't work over RDC, there's no restart or shutdown presented in the Shut Down menu. +1's for everybody on this one though - I'll stick with my bat files for remotes, but most helpful for local, even if headless. Thank you all. – Tetsujin – 2015-09-05T13:40:01.117

If you press the key on your power strip, your computer will shut down even faster than usual! – imallett – 2015-09-06T04:52:35.220

Another option is to create a shortcut for restart and shutdown, put the shortcuts in "C:\ProgramData\Microsoft\Windows\Start Menu\Programs" and simply use windows search. It's not perfect but with a little luck you can do both in 4 keystrokes; windows+re and windows+sh followed by ENTER – Stig Perez – 2016-03-01T20:58:39.527

Answers

84

How do I shutdown Windows 10 in 3 or less keystrokes?

There are three solutions (detailed below).

  1. Configure the Power button to perform a shutdown (1 button press)

  2. Win+D, Alt+F4, Enter (3 keystrokes/5 keypresses) or

  3. Win+X, U, U (3 keystrokes/4 keypresses)

    Note:

    • The U may need to be replaced with another keystroke depending on your language setting if you are not using an English version of Windows.

Solution 1 - Configure the Power button to perform a shutdown (1 button press)

Technically a button press is not the same as a keystroke, but I think it meets the spirit of the question.

  1. Click in Windows 10's Search field, type "power", and then click "Power Options" in the search results that appear.

  2. In the list of options on the left, click "Choose what the power buttons do."

    There are pull-down menus next to "When I press the power button"

    • "On Battery" (laptop only)
    • "Plugged In" (laptop and desktop).
  3. Click the pull-down menu(s), and select "Shut Down".

  4. Click "Save changes"

Now, whenever you press the power button, your PC should immediately shut down.

enter image description here

Source How to quickly shut down Windows 10


Solution 2 - Win+D, Alt+F4, Enter (3 keystrokes/5 keypresses)

Explanation:

  1. Win+D will show the desktop.

  2. Alt+F4 will open the shut down menu (when you are viewing the desktop.

    enter image description here

  3. Enter will press "OK".

Source 7 Ways To Shut Down Or Restart A Windows 10 PC Or Device


Solution 2 - Win+X, U, U (3 keystrokes/4 keypresses)

Explanation:

  1. Win+X will open the power user menu:

    enter image description here

  2. U will open the "Shutdown or sign out menu":

    enter image description here

  3. U will execute "Shut down".

    Notes:

    • The U may need to be replaced with another keystroke depending on your language setting if you are not using an English version of Windows.

    • The appropriate keystroke is underlined, as indicated by the _ in the menus you can see in the previous two screenshots.

Source 7 Ways To Shut Down Or Restart A Windows 10 PC Or Device


What if I want to Restart instead of Shutdown?

Use Win+X, U, R

  1. Win+X will open the power user menu.

  2. U will open the "Shutdown or sign out menu".

  3. R will execute "Restart".

    Note:

    • The U and R may need to be replaced with other keystrokes depending on your language setting if you are not using an English version of Windows.

    • The appropriate keystrokes will be shown by the _ symbol in the menus you can see in the previous two screenshots.

DavidPostill

Posted 2015-09-05T11:22:26.993

Reputation: 118 938

1On my Windows 10 Enterprise, Win + , only shows the desktop while the keys are being pressed, so Alt + F4 closes the foreground window instead of desktop. Maybe it is Win + D? – jingyu9575 – 2015-09-05T12:51:52.020

@jingyu9575 Good catch - you are correct - it is only temporarily showing the desktop... Answer updated. Thanks. – DavidPostill – 2015-09-05T12:54:29.633

@MartinSmith <shrug> I count two keys pressed together as one keystroke ... the Windows API considers it to be one keyboard event "The handler for KeyDown receives:

A KeyEventArgs parameter, which provides the KeyCode property (which specifies a physical keyboard button).

The Modifiers property (SHIFT, CTRL, or ALT).

The KeyData property (which combines the key code and modifier)."
 – DavidPostill  – 2015-09-05T21:36:19.163

1Win + X, U, U does not work on non-English distributions. – babca – 2015-09-06T10:35:07.487

@babca Thanks, good point. I have updated the answer to clarify. – DavidPostill – 2015-09-06T10:46:25.927

@MyDaftQuestions Thanks for your comment! I added "Technically a button press is not the same as a keystroke, but I think it meets the spirit of the question." ;) – DavidPostill – 2015-09-09T07:50:31.900

"The U may need to be replaced with another keystroke depending on your language setting if you are not using an English version of Windows." - It's even worse. When Czech language is set, there are more than one item with the same active letter in the poweruser menu, so pressing the letter selects another item first. A second press does select the correct item, but doesn't open the submenu. In this case, you have to press Win+X, V, V, Enter, Y instead of Win+X U U. It's not an universal shutdown shortcut at all. – babca – 2016-03-04T16:49:36.390

@babca That's a design fault in the Czech version of Windows. The alt shortcuts are meant to unique where possible. – DavidPostill – 2016-03-04T17:20:06.107

Win + M like Win + D can also switch to desktop – mvark – 2018-08-14T11:38:42.040

4

FYI, Windows 10 if you know you are on the login screen:

  1. Press any key, like the spacebar (to ensure you are past the facade and that the login prompt is active).
  2. Shift + Tab (shift the focus from the login prompt to the shutdown button
  3. Space (open the power menu/Sleep is selected by default)
  4. (select Shutdown)
  5. Enter (choose selection)

Not less than three keystrokes, but this is handy if you know you are on the login screen but for some reason your display is unavailable.

Michael Plautz

Posted 2015-09-05T11:22:26.993

Reputation: 253