Windows

How to Shutdown or Sleep Windows 10 With a Keyboard Shortcut

Ben Stegner Updated 18-02-2020

Have you ever found yourself looking to turn your computer off or put it to sleep without a mouse? Maybe you’re in search of a Windows sleep shortcut because your mouse isn’t working, or perhaps you just want to work more efficiently.

Advertisement

We’ll show you how to put your computer to sleep with only the keyboard or shut it down just as easily.

Method 1: Use the Power User Menu Shortcut

The most reliable Windows 10 sleep shortcut isn’t a true keyboard shortcut—rather, it’s a quick sequence of keys. However, because it works without any setup and while using any app, it’s the best method in most cases.

Press Win + X to open the Power User Menu. You’ll notice underlined characters corresponding to shortcut keys for those actions. Press U, then use one of the following keys to shut down, sleep, or perform other power actions:

  • Press U again to shut down Windows.
  • Hit the R key to restart.
  • Press S to put Windows to sleep.
  • Use H to hibernate.
  • Hit I to sign out.

Windows 10 Power User Menu Shutdown

Method 2: Alt + F4 Sleep Mode Shortcut

As you might know, pressing Alt + F4 closes the current window, just like clicking the X in the top-right corner. However, if you don’t have a window currently selected, you can use Alt + F4 as a shortcut for sleep in Windows 10.

Advertisement

To make sure you don’t have any apps in focus, press Win + D to show your desktop. From there, tap Alt + F4 and you’ll open the Shut Down Windows dialog box.

Shut Down Windows Dialog

Depending on your system, you’ll likely see Shut down or Sleep in the dropdown box by default. If you’re happy with this, just hit Enter to confirm the selection. Otherwise, use the arrow keys to switch to other options, then hit Enter when you’re ready.

If you didn’t know this trick, have a look at other tips for enhancing the Windows 10 shutdown process How to Shut Down Windows 10: 7 Tips and Tricks You can customize almost every Windows feature. We'll show you seven ways to improve the shutdown process. Soon you'll terminate Windows like a geek. Read More .

Advertisement

Method 3: Create Your Own Shortcut to Sleep Windows 10

While there’s no built-in sleep shortcut for Windows 10, you can make your own keyboard shortcut pretty easily.

Creating a New Shortcut

To do this, start by right-clicking an empty spot on your desktop and choosing New > Shortcut.

In the resulting box, you’ll need to enter different text depending on whether you want a sleep shortcut key or one to shut down the computer. Use the following:

  • To shut down Windows immediately and force-close any open programs:
    • shutdown.exe -s -t 00 -f
  • To create a sleep shortcut:
    • rundll32.exe powrprof.dll,SetSuspendState 0,1,0

Windows Shutdown Shortcut

Advertisement

Unfortunately, there’s a small caveat with the sleep shortcut. If you have hibernation enabled on your computer, this command will cause the computer to sleep instead of hibernating. See our explanation of hibernation in Windows Should You Delete the Hiberfil.sys File in Windows 10? Hibernation in Windows 10 takes up a lot of disk space. You can delete hiberfil.sys, but should you? Here's what you need to know about hibernation. Read More to learn how to disable this.

After you enter the command, click Next, give the shortcut a name, and click Finish.

Assign a Keyboard Shortcut to the Command

Now that you have a shortcut to the option you want, you just need to assign it a key combination. To do this, right-click your new shortcut on the desktop and choose Properties. Select the Shortcut tab at the top and in the Shortcut key, enter a combination that you’d like.

Windows Shortcut Key

Advertisement

You should pick something that’s not already in use by other programs. In addition, make sure the shortcut combination you set isn’t easy to hit by accident, as you won’t want to suddenly shut down your system in the middle of working.

When you’re done, click OK and your Windows sleep keyboard shortcut or shutdown shortcut will be active. If you ever decide you don’t want it, just delete the shortcut file.

Sleep or Shut Down With Ease

Now you know several sleep mode shortcuts to easily shut down or put Windows to sleep. This makes it easy to access power options without fiddling around in menus.

If you’re looking for a non-keyboard method, check out how to customize the power button in Windows 10 How to Use Your Windows 10 Power Button You can shut down Windows using the physical button on your computer or the commands on the Start Menu. We explain what these options do and how to tweak them. Read More . We’ve also shown how to fix issues with Sleep Mode on Windows How to Fix Windows 10 Sleep Mode Issues Here are a few troubleshooting steps for when you need to know how to fix sleep mode issues in Windows 10. Read More if you’ve run into problems.

Related topics: Keyboard Shortcuts, Sleep Mode, Windows 10, Windows Tricks.

Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.

Whatsapp Pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Nina
    August 8, 2020 at 9:28 am

    Hi! I found this article really helpful. I tried using the first method but didn't work out on my windows 10. However, the third method worked out. Personalizing your own shortcut is cool and easy. Thank you so much!

  2. Will
    July 1, 2020 at 8:13 am

    Awesome solution! Thanks for sharing!

  3. Vinduja
    March 24, 2019 at 7:50 am

    Thnq so much

  4. Rishi
    February 19, 2019 at 11:56 am

    These shortcuts dont work on my laptop. Do I need to enable the shortcuts from somewhere first?

    • Brendan
      November 14, 2019 at 10:41 pm

      Rishi:
      These Shortcuts should work on any PC with Windows 10, it doesn't matter if it's a laptop or desktop PC.
      Remember to press the windows key + X simultaneously to open up the menu, then release the keys, then hit U and release it, then hit one of the keys U, R, H, or S for the action you want. You do not hold them down all at once or it won't work, they need to be pressed in sequence. You also need to be using Windows 10, otherwise it may not work.

  5. Corbin
    September 21, 2018 at 9:38 pm

    Beautiful. Thank you!

  6. Bryan
    July 12, 2018 at 2:03 pm

    Windows button.. up arrowx3, enter

  7. Anthony Crain
    March 8, 2018 at 11:04 pm

    On windows 10, two ctrl+alt+del doesn't seem to work. The first brings up the normal cad screen, the second seems to have no effect.

    Alt+F4 only works if you have all windows minimized. So in normal use, first you have to do a minimize all, then the Alt+F4. So that's clumsy.

    Windows key+x, u, r seems the best choice, but is still clumsier than prior versions of windows: windows, right, enter.

  8. Robert Chase
    December 7, 2017 at 6:13 pm

    Complete misrepresentation! You aren't describing "How to Shutdown or Sleep Windows 10 With a Keyboard Shortcut", you're providing a sequence of keystrokes (the first of which is a keyboard shortcut) that access the Windows power menu and then its options.

    • me
      January 20, 2020 at 5:09 pm

      yeah, that's what happens when I do that - I want a hotkey or combination that makes the device sleep right away! Otherwise why bother?

  9. Umair Bashir
    October 14, 2017 at 7:12 pm

    Is this converter working fine. Please check
    greenhathow.com/bigasoft-total-video-converter/

  10. Greg
    August 9, 2017 at 5:41 am

    Just restating the bloody obvious

  11. paul wildman
    July 21, 2017 at 10:00 pm

    too complicated and doesnt work all the time thx anyway ciao paul

  12. paul wildman
    July 21, 2017 at 10:00 pm

    too complicated thx all the same doesnt work all the time ciao paul

  13. Leeroy Jenkins
    February 11, 2017 at 4:14 pm

    you said alt and f4 would work but how come it always makes my internet thing crash! it always makes it crash when I try to put it to sleep D:

    I'm joking.

  14. Legion
    February 4, 2017 at 12:26 am

    With W7 I use Hotkeybind - no messing about pressing multiple keys, I simply hit the key that's never used ('logical negation' key below escape on UK layout). On W10 Hotkeybind isn't stable, so I'm looking for another programme.

  15. Millies
    January 3, 2017 at 10:54 pm

    Win-D (show desktop)
    Alt-4 (open "shut down windows"-window)
    Enter (to execute shutdown)

  16. Aaron Musk
    September 4, 2016 at 2:45 pm

    Thanks a million! I bookmarked you right away.

  17. Anonymous
    March 24, 2016 at 3:58 pm

    sleep mode: Fn and F2 at same time. Very easy.

    • QueNNch
      January 24, 2017 at 7:15 pm

      does not work on all computers, only certain laptops really...

  18. Anonymous
    March 24, 2016 at 3:57 pm

    ll

  19. Admiral Bacon McBaconface
    March 22, 2016 at 5:53 am

    tap windows+r then type shutdown /h to hibernate /s to shut off or /r to reboot

    same as I've been doing for a decade or more now.

  20. Mike Ellaby
    March 22, 2016 at 5:33 am

    Pressing the power button as Shahar says is the easiest and fastest way that's worked for the last 4 Windows operating systems.

    • Admiral Bacon McBaconface
      March 22, 2016 at 5:55 am

      some out-of-the-box PCs are pre-programmed for the power button to sleep or hibernate though...

  21. Anonymous
    March 21, 2016 at 4:07 pm

    I click Windows > Power > ... It only took 5 seconds and safe.

  22. Yiannis Zorbas
    March 21, 2016 at 11:10 am

    ahahahha

  23. Shahar
    March 21, 2016 at 10:57 am

    Short press on power button does the trick just as well.

    • Anonymous
      March 21, 2016 at 2:29 pm

      True, but that's a one-trick pony (unless you reprogram the button...at which point it's still a one-trick pony).