What to do when Windows 11 won't lock in Sleep mode?

When you enable Sleep mode on Windows 11 , the computer automatically locks so that no one can press any keys on the keyboard. But what if the computer does not lock when entering Sleep mode? Not locking the computer in Sleep mode will greatly affect your privacy. Below are the settings to lock the computer in Sleep mode Windows 11.

 

Lock computer in Sleep mode via shortcut key

If you want to lock your screen, you can do so by pressing the Win + L shortcut key.

Lock computer in Sleep mode via Settings

Step 1:

Open Settings on your computer then click on Accounts in the sidebar.

What to do when Windows 11 won't lock in Sleep mode? Picture 1

 

Step 2:

Look to the side and click on Sign-in options .

What to do when Windows 11 won't lock in Sleep mode? Picture 2

Scroll down to the Additional settings section , at If you've been away, when should Windows require you to sign in again? We click on When PC wakes up from sleep .

What to do when Windows 11 won't lock in Sleep mode? Picture 3

 

Enable computer lock in Sleep mode via Registry

Step 1:

Type regedit in the Run dialog box and press Ctrl + Shift + Enter to open Registry Editor as Admin. Access the path below. Then look to the side and select InactivityTimeoutSecs .

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem

What to do when Windows 11 won't lock in Sleep mode? Picture 4

If not, create a new one by right-clicking on the main window and creating a new DWORD file.

What to do when Windows 11 won't lock in Sleep mode? Picture 5

 

Next, double-click on the InactivityTimeoutSecs value.

What to do when Windows 11 won't lock in Sleep mode? Picture 6

Step 2:

In this interface you enter the number of seconds before the screen locks when inactive.

What to do when Windows 11 won't lock in Sleep mode? Picture 7

Using Command Prompt

Step 1:

You type cmd in the Run dialog box and then press Ctrl + Shift + Enter to open Command Prompt under the Admin account.

Step 2:

You enter the command powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK [seconds] and press Enter.

Seconds and time before screen locks.

What to do when Windows 11 won't lock in Sleep mode? Picture 8

Step 3:

To complete, type the command 'powercfg.exe /SETACTIVE SCHEME_CURRENT' and press Enter.

What to do when Windows 11 won't lock in Sleep mode? Picture 9

4 ★ | 2 Vote