To make Windows 11 ask for your PIN or password after sleep, open Settings > Accounts > Sign-in options, and under Additional settings set If you've been away, when should Windows require you to sign in again? to the option that requires sign-in on wake.
If that setting is already right and the PC still wakes straight to the desktop, the fixes below cover the screen saver, Dynamic lock, the powercfg CONSOLELOCK setting, the registry value, Group Policy and the diagnostics that show what keeps the PC awake.

How to require sign-in after sleep in Windows 11
This is the setting most people need, and it takes under a minute.
- Select Start > Settings > Accounts > Sign-in options.
- Scroll to Additional settings.
- Open the list next to If you've been away, when should Windows require you to sign in again?
- Pick the option that asks for sign-in when the PC wakes, or the shortest time offered. Do not pick the option that turns the prompt off.
- Press Windows logo key + L, wait a moment, then put the PC to sleep and wake it to see the lock screen.
On Windows 10 the same choice sits under Require sign-in on the Sign-in options page.
Windows 11 sleep lock background
A short overview of the terms helps, because sleep, screen-off and lock are three separate events in Windows 11.
| Term | What it means | Does it lock the PC? |
|---|---|---|
| Lock | Windows shows the lock screen and keeps your apps open; a PIN, password or Windows Hello unlocks it | Yes, by definition |
| Sleep | The PC drops to a low-power state and resumes where you left off | Only if sign-in on wake is required |
| Screen off | The display turns off after the timeout under Power & battery | Only with the sign-in rule or a machine inactivity limit |
| Screen saver | An animation after a Wait time | Only with On resume, display logon screen ticked |
| Dynamic lock | Locks when your Bluetooth-paired phone moves out of range | Yes, within about a minute |
How Windows’ “lock on sleep” actually works
Behind the Settings page sits a hidden power setting called Prompt for password on resume. Its powercfg alias is CONSOLELOCK and its GUID is 0e796bdb-100d-47d6-a2d5-f7d2daa51f51.
| CONSOLELOCK value | What happens when the PC resumes from sleep |
|---|---|
| 0 (Disabled) | Windows returns straight to the desktop |
| 1 (Enabled) | Windows returns to the secure desktop and asks for a password |
Microsoft enables this setting by default on all Windows desktop editions. The value is stored separately for plugged-in (AC) and battery (DC) power, so a laptop can lock on battery and still skip the prompt on the charger.
A Group Policy setting overrides the local value, which is why Settings sometimes shows the right choice while the PC behaves differently.
The main controls for Windows 11 sign-in after sleep
| Control | Where it lives | What it changes |
|---|---|---|
| Sign-in after away/wake | Settings > Accounts > Sign-in options > Additional settings | Whether waking from sleep needs a sign-in |
| Screen and sleep timers | Settings > System > Power & battery > Screen, sleep, & hibernate timeouts | When the screen turns off and when the PC sleeps |
| Screen saver lock | Settings > Personalization > Lock screen > Screen saver | Wait time and On resume, display logon screen |
| Dynamic lock | Settings > Accounts > Sign-in options > Additional settings | Locks when your paired phone leaves Bluetooth range |
| CONSOLELOCK | powercfg from an administrator Command Prompt |
The AC and DC password-on-wake values per power plan |
| Group Policy | Computer Configuration > Administrative Templates > System > Power Management > Sleep Settings | Require a password when a computer wakes (plugged in) and (on battery) |
| Machine inactivity limit | Local Policies > Security Options in Local Security Policy | Locks after a set number of idle seconds |
Why Windows 11 sleep lock sometimes breaks
| Cause | What you notice | Fix to try |
|---|---|---|
| The away/wake option is set to not require sign-in | The PC wakes to the desktop every time | Fix 1 |
| The screen saver runs without On resume, display logon screen | The screen saver ends and the desktop is open | Fix 2 |
| The phone is not paired, or Bluetooth is off | Dynamic lock never locks the PC | Fix 3 |
| CONSOLELOCK is 0 on one power source | The prompt appears on battery but not when plugged in, or the other way round | Fix 5 |
| A policy disables the password on wake | Settings shows the choice greyed out or ignored | Group Policy section |
| An app or driver holds a power request | The screen never turns off and the PC never sleeps, so it never locks | Deeper diagnostics |
Power requests come from video playback, calls and similar activity. While one is active, Windows does not turn off the display or sleep on its idle timer.
Quick tip: Lock Windows 11 manually (immediate, safe)
Locking by hand works regardless of any power or policy setting, and it is the safest habit when you walk away.
- Press Windows logo key + L to lock at once.
- Or press Ctrl + Alt + Delete and select Lock.
- Or select Start, select your account picture, then select Lock.
Locking keeps your apps open. Signing out closes them.
Fix 1 — Re-enable “Require sign-in after sleep” in Settings (recommended first step)
Windows 10 called this setting Require sign-in. Windows 11 renamed it, so look for the question-style label instead.
- Press Windows logo key + I to open Settings.
- Select Accounts > Sign-in options.
- Under Ways to sign in, make sure a PIN, password or Windows Hello method is set up.
- Under Additional settings, open the list for If you've been away, when should Windows require you to sign in again?
- Choose the wake-from-sleep option or the shortest interval.
- Close Settings, put the PC to sleep and wake it.
If the list is greyed out, a policy controls it; go to the Group Policy section below.
Fix 2 — Check screensaver & lock-screen settings
A screen saver only locks the PC when its logon option is ticked. Its Wait time should be shorter than your sleep timer, or sleep arrives first.
- Open Settings > Personalization > Lock screen.
- Under Related settings, select Screen saver.
- Pick a screen saver from the list.
- Set Wait to the number of idle minutes you want.
- Tick On resume, display logon screen.
- Select Apply, then OK.
Then check Settings > System > Power & battery > Screen, sleep, & hibernate timeouts so the screen and sleep timers are not set to never. You can also lock Windows 11 automatically after a set time with the same screen saver approach.

Fix 3 — Dynamic lock and Bluetooth pairing
Dynamic lock uses a phone paired over Bluetooth. When the signal drops below a set level, Windows locks within a minute.
- Turn on Bluetooth on your phone and keep it near the PC.
- Open Settings > Bluetooth & devices and pair the phone.
- Go to Settings > Accounts > Sign-in options.
- Under Additional settings, expand Dynamic lock and turn it on.
- Take the phone with you when you step away, then return and check that the lock screen is showing.
Dynamic lock adds a lock when you leave; it does not replace the sign-in-on-wake rule. If the phone is unpaired or its Bluetooth is off, nothing triggers it.

Fix 4 — use the registry (advanced; proceed with caution)
The registry route writes the same values as the Group Policy setting, which makes it useful on Windows 11 Home. Export the key first so you can undo the change.
- Press Windows logo key + R, type
regeditand press Enter, then select Yes. - Go to
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Power\PowerSettings. Create thePowerorPowerSettingskey with Edit > New > Key if it is missing. - Create a key named
0e796bdb-100d-47d6-a2d5-f7d2daa51f51underPowerSettings. - Inside it, create a DWORD (32-bit) Value named
ACSettingIndexand set it to1for plugged-in power. - Create a second DWORD named
DCSettingIndexand set it to1for battery power. - Restart the PC, then sleep and wake it to check the prompt.
A value of 0 turns the password on wake off. Delete the 0e796bdb-100d-47d6-a2d5-f7d2daa51f51 key to hand control back to Settings.
Fix 5 — use Command Prompt and powercfg (precise control of power/lock timers)
Open Command Prompt as administrator: search for cmd, right-click it and select Run as administrator. These commands set CONSOLELOCK on the active power plan.
powercfg /setacvalueindex SCHEME_CURRENT SUB_NONE CONSOLELOCK 1
powercfg /setdcvalueindex SCHEME_CURRENT SUB_NONE CONSOLELOCK 1
powercfg /setactive SCHEME_CURRENT
/setacvalueindex sets the plugged-in value and /setdcvalueindex the battery value. SUB_NONE is the alias for settings with no subgroup, and 1 means the secure desktop asks for a password on resume. /setactive reapplies the current plan so the change takes effect.
You should see: Each command returns to the prompt without an error, and the PC shows the lock screen the next time it wakes from sleep.
Set the timers in the same window: powercfg /change monitor-timeout-ac 10 turns the screen off after 10 minutes on mains power, and powercfg /change standby-timeout-ac 15 sleeps the PC after 15. Use the -dc versions for battery. You can also stagger the screen, sleep and sign-in timers so the display turns off before the PC sleeps.
Deeper diagnostics — find what is preventing lock or sleep
When the PC never reaches sleep, it never locks on wake. These built-in powercfg reports name the culprit.
- Run
powercfg /requeststo list apps and drivers holding power requests that block display-off or sleep. - Run
powercfg /availablesleepstatesto see which sleep states the PC supports and why others are unavailable. - Run
powercfg /lastwaketo see what woke the PC from its last sleep. - Run
powercfg /waketimersto list timers that can wake the PC from sleep or hibernation. - On a Modern Standby laptop, run
powercfg /sleepstudyfor a three-day report saved in the current folder.
Close or update the app named under DISPLAY or SYSTEM in the /requests output, then test the sleep timer again.

Group Policy and enterprise-managed devices
On Windows 11 Pro, Enterprise and Education, the Local Group Policy Editor holds the policy behind the password on wake. If you enable it or leave it not configured, Windows prompts; if you disable it, Windows does not.
- Press Windows logo key + R, type
gpedit.mscand press Enter. - Go to Computer Configuration > Administrative Templates > System > Power Management > Sleep Settings.
- Double-click Require a password when a computer wakes (plugged in), select Enabled or Not Configured, then OK.
- Repeat for Require a password when a computer wakes (on battery).
- For an idle lock, go to Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options and set Interactive logon: Machine inactivity limit in seconds.
- Restart the PC so both policies apply.
The inactivity limit accepts 0 to 599,940 seconds, and 0 turns it off. On a work or school PC, an Intune or domain policy can override both settings and stop you changing power options.
Security trade-offs — what you gain vs what you risk
| Setting | What you gain | What you risk |
|---|---|---|
| Sign-in required on wake | Nobody can open your apps or files by tapping a key | One extra PIN or face scan each time |
| No sign-in on wake | Instant return to the desktop | Anyone with the device sees your open email, browser sessions and files |
| Short screen and sleep timers | The PC locks soon after you leave it | The screen may lock during long reading |
| Dynamic lock | A lock when you walk off without pressing Windows + L | Up to a minute unlocked, and no lock if the phone stays nearby |
| Machine inactivity limit | A fixed idle lock that users cannot loosen | Restart needed and less flexibility |
Windows Hello face or fingerprint keeps the sign-in fast, so the security setting costs very little time.
Windows 11 not asking for password after sleep: fixes from fast to deep
Apply the fixes in order. This prioritized list goes from the fast settings change to the deep policy checks, and most PCs are fixed at row one or two.
| Order | Your situation | Do this |
|---|---|---|
| 1 | Settings shows the wrong away/wake choice | Fix 1 in Sign-in options |
| 2 | The PC locks after sleep but not after a long idle stretch | Fix 2: screen saver and timers |
| 3 | You want a lock the moment you walk off | Fix 3: Dynamic lock |
| 4 | Settings looks right but one power source skips the prompt | Fix 5: powercfg CONSOLELOCK for AC and DC |
| 5 | Windows 11 Home and Settings will not hold the value | Fix 4: registry policy key |
| 6 | The PC never sleeps at all | Deeper diagnostics with powercfg /requests |
| 7 | The choice is greyed out | Group Policy section, or your IT team |
How to tell if Windows 11 asks for a password after sleep
- Save your work and select Start > Power > Sleep.
- Wait until the power light changes or the fans stop.
- Press a key or open the lid to wake the PC.
- Look for the lock screen; pressing a key should bring up the PIN, password or Windows Hello prompt.
- Unplug a laptop and repeat the test on battery, because AC and DC are stored separately.
- If one test fails, rerun the matching Fix 5 line for that power source and test again.
Advanced: Safe scripting and rollback
Back up the current power plan before you script any change, so you can restore it exactly. Run these lines in an administrator Command Prompt.
- Run
powercfg /getactiveschemeand note the GUID it prints. - Run
powercfg /export C:\plan-backup.pow <GUID>with that GUID to save the plan to a file. - Run the three Fix 5 commands, or save them in a
.cmdfile and run it as administrator. - To roll back only the lock prompt, run the same
/setacvalueindexand/setdcvalueindexlines with0, thenpowercfg /setactive SCHEME_CURRENT. - To roll back the whole plan, run
powercfg /import C:\plan-backup.pow, thenpowercfg /setactivewith the GUID it returns. - For the registry route, double-click the
.regfile you exported before the change, or delete the0e796bdb-100d-47d6-a2d5-f7d2daa51f51key.
Windows 11 sign-in after sleep not working
The sign-in after away/wake list is greyed out
A local or organization policy sets the password on wake, so Settings cannot change it.
- Open
gpedit.mscand check Require a password when a computer wakes under Sleep Settings. - Check for the
0e796bdb-100d-47d6-a2d5-f7d2daa51f51key underHKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Power\PowerSettings. - On a work or school PC, open Settings > Accounts > Access work or school to see which organization manages it, and ask that IT team.
The PC locks on battery but not when plugged in
CONSOLELOCK holds separate AC and DC values.
- Open Command Prompt as administrator.
- Run
powercfg /setacvalueindex SCHEME_CURRENT SUB_NONE CONSOLELOCK 1for plugged-in power. - Run
powercfg /setactive SCHEME_CURRENT, then test sleep on the charger again.
Dynamic lock does not lock the PC
The phone is not paired, its Bluetooth is off, or it never moves far enough away.
- Check the phone appears under Settings > Bluetooth & devices.
- Turn Dynamic lock off and on again under Sign-in options.
- Walk out of Bluetooth range with the phone and wait at least a minute.
The screen never turns off, so the PC never locks
An app, browser tab or driver holds a display or system power request.
- Run
powercfg /requestsas administrator. - Close or update the app it names.
- Check Screen, sleep, & hibernate timeouts is not set to never.
When a fix is not possible locally
Hand the problem to the device owner when a policy you cannot edit controls the lock. On a managed work or school PC, domain Group Policy or Intune settings reapply over local changes, and power options may be locked for users. The same applies to a family or shared PC where another account holds administrator rights. Until the owner changes it, press Windows logo key + L every time you step away.
Windows 11 sleep lock FAQ
Why does Windows 11 not ask for a password after sleep?
The away/wake option under Sign-in options is set to skip sign-in, the CONSOLELOCK power value is 0 for that power source, or a policy disables the password on wake. Check Settings first, then powercfg and Group Policy.
How do I make Windows 11 require a password after sleep?
Open Settings > Accounts > Sign-in options, and under Additional settings choose the option that requires sign-in when the PC wakes. Make sure a PIN, password or Windows Hello method is set up first.
Can I use Windows Hello instead of a password after sleep?
Yes. Windows Hello face, fingerprint or PIN unlocks the lock screen after sleep the same way a password does. Set it up under Settings > Accounts > Sign-in options > Ways to sign in.
What does powercfg CONSOLELOCK do?
CONSOLELOCK is the hidden Prompt for password on resume power setting. A value of 1 returns Windows to the secure desktop and asks for a password after sleep, and 0 returns straight to the desktop. AC and DC values are set separately.
Why is the sign-in after sleep setting greyed out in Windows 11?
A policy controls it. Either Require a password when a computer wakes is set in Group Policy, the matching registry policy key exists, or your organization manages the PC through Intune or a domain.
Does Dynamic lock work without Bluetooth?
No. Dynamic lock depends on a phone paired with the PC over Bluetooth and locks Windows within a minute after the phone's signal drops out of range. With Bluetooth off on either device, it never triggers.
Does Windows lock when the screen turns off?
It does when sign-in on wake is required or the Interactive logon: Machine inactivity limit policy is set. Microsoft notes that letting only the screen sleep is enough to activate the lock, while full sleep also saves power.
Is it safe to turn off sign-in after sleep?
Only on a desktop that never leaves a locked room. Without the prompt, anyone who wakes the PC sees your open apps, email and browser sessions. Windows Hello keeps the sign-in quick, so leaving it on costs little.
Final recommendations and best practices
Require sign-in on wake, set a 10 to 15 minute sleep timer, and press Windows logo key + L whenever you leave the desk. The Settings choice and CONSOLELOCK cover sleep, the timer makes sure sleep actually happens, and a manual lock covers the minutes in between. Add Dynamic lock on a laptop you carry around, and use Windows Hello so the prompt never feels like a chore.





