Helping millions of people navigate the world of technology.

Windows 11 Doesn’t Lock in Sleep – What to Do? 

Quick Tips
  • Windows 11 might automatically disable the Lock in Sleep function.
  • To re-enable it, you can use Settings.
  • You can also change the lock timer via the Registry or Command Prompt.

If you use your Windows 11 computer a great deal, you know that sometimes you’ll have to get up from the computer to deal with some other issue – an important phone call, a crying baby – which might require you to put your computer to sleep for a while. When you do that, your computer should lock so no key on the keyboard can be pressed and ruin all your valuable work.

But what if you’ve got a PC or laptop that won’t lock after it enters sleep mode? Not doing so leaves your computer vulnerable to unfriendly eyes seeing your work on the screen and strange fingers tapping on your keyboard. In this article, we’ll show you how to re-enable this setting so your computer locks as it should.

Windows 11 Doesn’t Lock While Sleeping – How to Fix

If your screen isn’t locking when your machine sleeps, you need to enable this ability ASAP to protect your machine. We’ve got a few fixes below for you to try.

Lock via Keyboard

Let’s start with a quick fix. If you ever want to lock your screen, you can do so by pressing the keyboard shortcut (Win + L). You won’t be signed out, and all your programs and processes will keep running in the background. But it should also keep the lock screen in place even if your machine enters and leaves sleep mode.

Enable via Settings

This fix uses Settings to enable the lock screen on sleep and is pretty easy to apply. Here’s what to do:

Step 1. Open up Settings (Win + I) and click on “Accounts” in the sidebar.

Windows 11 Doesnt Lock in Sleep – What to Do 1

Step 2. In the next screen, click “Sign-in options.”

Windows 11 Doesnt Lock in Sleep – What to Do 2

Step 3. Navigate down to the “Additional settings” subsection and next to the “If you’ve been away, when should Windows require you to sign in again?” option, choose When PC wakes up from sleep.

Windows 11 Doesnt Lock in Sleep – What to Do 3

Fix via the Registry

The Registry holds many of the key settings that allow your operating system to run smoothly. You should always be careful when editing files inside it if you don’t know what you’re doing. Don’t worry, though, we’ve got instructions.

This fix will adjust the time before your computer locks the screen due to inactivity. It’s a good way to ensure your machine’s safety. To enable the lock screen:

Step 1. Open the Run Dialog and type “regedit” before pressing (Ctrl + Shift + Enter) to run the utility as an Administrator.

Step 2. In the Registry, navigate to the following path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

Step 3. Navigate to “InactivityTimeoutSecs” and double-click it. If it doesn’t exist, create a new keyword by right-clicking in the main window and creating a new DWORD file.

Windows 11 Doesnt Lock in Sleep – What to Do 4

Step 4. In the pop-up that appears when you click it, change the number of seconds (not minutes) before your screen locks when inactive. You can make it coincide with your Sleep Mode timer if you want.

Windows 11 Doesnt Lock in Sleep – What to Do 5

Using Command Prompt

Another quick, yet powerful way to fix the lock screen is via the ever-versatile Command Prompt. Here’s what to do:

Step 1. Open the Run dialog (Win + R), type “cmd” and press (Ctrl + Shift + Enter) instead of clicking “OK” to run as admin.

Step 2. In the Command prompt, type the following: “powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK [seconds number].” The last part is how many seconds before the screen locks. Press “Enter.”

Windows 11 Doesnt Lock in Sleep – What to Do 6

Step 3. To finalize, type “powercfg.exe /SETACTIVE SCHEME_CURRENT” and press “Enter”.

Windows 11 Doesnt Lock in Sleep – What to Do 7

Was this helpful?

Thanks for your feedback!

Last updated on 21 September, 2025

Leave a Reply

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

The article above may contain affiliate links which help support Guiding Tech. The content remains unbiased and authentic and will never affect our editorial integrity.