How to shutdown or sleep PC using keyboard shortcut on Windows 10

During the process of using Windows 10, we will inevitably avoid the situation of not using the mouse, or simply wanting to use the keyboard to shutdown or put the device to sleep. The following article will give you a few ways to do this job quickly and simply. 

Windows 10

Get Windows 10

Use keyboard shortcuts in the Start menu

This is the easiest and easiest way to shut down or put your computer to sleep. 

Press Windows logo key + X on your keyboard to open the Power User Menu. Here, you can see the underlined characters in each line, which are the keys for users to quickly access that function without pressing the mouse. To Shut down or Sleep, we will press the U key to make the menu go to the Shutdown or sign out line then:

Press the S key  to enter sleep mode.

Press the U key  to shutdown (Shutdown). 

Windows + X

Use Alt + F4 mode

Most users know that pressing Alt + F4 will close the current window, just like clicking the X button in the upper right corner. However, if you are on the desktop and are not using any windows, this key combination will direct the user to the Windows Shutdown dialog box. In this dialog box, you can use the arrow keys to select Sleep or Shutdown mode from the drop-down menu, and then press the Enter key. 

Tip: To quickly go to the Desktop, press the Windows logo key + D combination on your keyboard. 

Shutdown Windows

Create your own keyboard shortcut

This is a more complicated way than the two above, but the advantage of it is that it only needs to do the settings once. From the next time, you just need to press the installed key combination to turn off or switch to sleep mode for PC. 

The first step is to right-click on an empty area on the Desktop (desktop) and select New -> Shortcut . 

Shortcut

In the Create Shortcut dialog box, enter one of the following two lines in the Type the location of the item box and click  Next . 

To turn off the computer: 

shutdown.exe -s -t 00 -f

To enter sleep mode:

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

Enter an order in the box

Name the shortcut file you just created, then click Finish . 

finish

Next, right-click on the shortcut file just created on the desktop and select  Properties . In the dialog box that appears, find the Shortcut key line and enter a character you want in the box to place the shortcut key combination. This key combination will have the default form Ctrl + Alt + * (* is the key you set). 

Properties

Click OK to save the settings. From now on, as long as you press the keyboard shortcut you set, you will run the shortcut file -> execute the file's command to shutdown or sleep. Very simple and fast, isn't it? 

I wish you all success!

Leave a Comment

Enable FIPS Mode on SLES 15 and Verify the Boot State

Enable FIPS Mode on SLES 15 and Verify the Boot State

Follow SUSE’s SP7 procedure to enable FIPS mode, reboot safely, verify the active policy, and check whether your compliance requirement calls for validated modules.

Set Up a LUKS-Encrypted Data Volume on SLES

Set Up a LUKS-Encrypted Data Volume on SLES

Compare YaST and cryptsetup for a new encrypted SLES data volume, choose LUKS1 or LUKS2, and verify unlock and mount behavior safely.

Build a Custom AppArmor Profile on SUSE Linux

Build a Custom AppArmor Profile on SUSE Linux

Create, refine, and verify a least-privilege AppArmor profile on SLES 15 SP7, with a clear note on SLES 16’s SELinux default.

Build a Local SUSE Update Server with RMT on SLES 15

Build a Local SUSE Update Server with RMT on SLES 15

Set up RMT on SLES 15, mirror entitled repositories, and verify HTTPS registration and package access from a test client.

Join SLES 15 to Active Directory with SSSD in YaST

Join SLES 15 to Active Directory with SSSD in YaST

Connect SLES 15 to AD with YaST’s SSSD-based logon management, then verify directory lookup, domain login, and Kerberos tickets.

Enable SLES Live Patching and Verify a Kernel Fix

Enable SLES Live Patching and Verify a Kernel Fix

Set up the right Live Patching path for SLES 16.0 or 15 SP7, apply eligible kernel fixes, and confirm what is active without confusing it with a reboot-required kernel update.

Install and Sign Custom Kernel Modules on SLES 15 Secure Boot

Install and Sign Custom Kernel Modules on SLES 15 Secure Boot

Load a custom SLES 15 kernel module without disabling Secure Boot. Match the running kernel, sign the .ko file, enroll a MOK key, and verify loading.

Keep Services Available During a SLES 15 SP5 to SP6 Upgrade

Keep Services Available During a SLES 15 SP5 to SP6 Upgrade

SLES 15 SP5 can migrate online to SP6, but each node must reboot. Use a tested rolling upgrade or blue-green cutover to keep workloads reachable.

Apply the SLES 15 STIG Safely with OpenSCAP

Apply the SLES 15 STIG Safely with OpenSCAP

Use SUSE’s supported STIG profile to scan SLES 15, test remediation, review remaining findings, and retain assessment evidence.

Restore Cockpit Access to SUSE Linux Enterprise Server

Restore Cockpit Access to SUSE Linux Enterprise Server

Trace a failed Cockpit connection through DNS, port 9090, the systemd socket, firewalld, TLS, and login settings using current SUSE guidance.