Featured - How to create a Windows 11 shutdown shortcut (or for Sleep, Hibernate, PC Lock)

It typically takes just few clicks to activate sleep mode in Windows 11, but why wait? In today’s tutorial, we’ll show you to create a Windows 11 shutdown shortcut that can do it in a double-click instead.

Even better, you’ll be able to use this method to create a shortcut to lock your computer, put it to sleep, lock it, hibernate it, and more.

Advertisement

Variations: Windows sleep shortcut or a shortcut to lock computer

It’s even possible to extend this functionality to create a shutdown, hibernate, restart, or sleep keyboard shortcut so that your hands never have to leave the keyboard.

Once you have your shortcut, it doesn’t need to stay on your desktop, either. You can pin it to your taskbar for access on any screen, put it on your start menu, and more. Let’s explore how to create such a shortcut, using a Windows 11 shutdown shortcut as an example.

How to Create a Shutdown Shortcut in Windows 11 (or Lock, Sleep, Hibernate, Restart)

To create our shutdown shortcut in Windows 11, all we need to do is point our shortcut to the relevant shutdown.exe in our Win32 folder and give it some additional instructions. The same theory applies if you want to create a Windows sleep shortcut or make your PC hibernate or restart on click.

Here’s how to do it step-by-step:

  1. Right-click your desktop and select “New > Shortcut”

    Windows 11 - Desktop - New - Shortcut

  2. In the location field, type your shutdown, restart, sleep, or hibernate command

    For example, we’re creating a Windows 11 shutdown command, so we’ll type:

    shutdown.exe /s /t 00

    The /s signals that we want to shutdown the computer, rather than restart it, while the /t 00 signifies how quickly we want it to happen. In our case, in 00 seconds, or instantly.

    Windows 11 restart shortcut

    If you want to create a Windows 11 restart shortcut instead, you’d type the following in the location field:

    Shutdown.exe /r /t 00

    Windows 11 sleep shortcut

    Windows 11 sleep, hibernate, and restart shortcuts use rundll32.exe rather than shutdown.exe, and your location field will look a little different as a result. To create a shortcut, type the following:

    rundll32.exe powrprof.dll,SetSuspendState 0,1,0

    Windows 11 hibernate shortcut

    The hibernate shortcut is the same as the sleep one, minus the 0,1,0 at the end:

    rundll32.exe PowrProf.dll,SetSuspendState

    Windows 11 Lock shortcut

    Finally, if you want to create a shortcut to lock your PC, past the following in the location field:

    rundll32.exe User32.dll,LockWorkStation

    You should know, however, that there’s already a built-in keyboard shortcut for lock – Windows + L.

    Once you have typed the relevant command in the location field, just hit “Next”.

    Windows 11 - Desktop - New - Shortcut - Type Location - Next

  3. Enter the name of your shortcut and click “Finish”

    In our case, we just called it “Shutdown”.

    Windows 11 - Desktop - New - Shortcut - Type Location - Next Type Name - Finish

  4. Double-click your Windows shutdown shortcut to activate it

    Windows 11 should immediately perform the action you specified.

    Windows 11 - Desktop - Shutdown Icon

How to Add a Keyboard Shortcut to Your Desktop Shortcut

Windows 10 - Desktop icon - Properties - Assign hotkey

As we mentioned previously, you can extend the usefulness of these shortcuts by adding a keyboard shortcut to them. If you want to learn how to restart or turn off computer with your keyboard you can follow the steps in our more general shortcut guide. It’s quite easy – just requiring you to modify the shortcut’s properties. You can even use this to create a sleep keyboard shortcut, which can be very handy indeed.

How to Auto Shutdown Windows

If doing anything at all is too much hassle for you, you can set your PC to shut down automatically instead. This can be at a time you specify, or after you leave your PC for a defined period. You can follow our how to auto shutdown Windows at night guide to find out how.

How to Use Windows 10 Disk Cleanup in Extended Mode using a Shortcut

02.3 Windows 10 - Extended Disk Cleanup - deletion

To maintain your drive as clean as possible, you can create a shortcut on your desktop to run the Disk Cleanup with all possible options activated with just a double-click.

How to Clear the Clipboard in Windows 11 / Windows 10 with a Shortcut

Windows 10 - Clipboard History

The Windows 10 / Windows 11 clipboard is a useful tool, but it also leaves a bit of a “paper trail” of your activity. If you’ve copied something sensitive, the next person to paste will see the text or image in plain sight. In our other tutorial, we show you how to create a clear clipboard shortcut for both the legacy clipboard and the cloud clipboard.

Advertisement