Set password after sleep on Windows 11 – step by step guide
In this article
Go to Settings > Accounts > Sign‑in options and choose “Require sign‑in when PC wakes from sleep.” The whole process takes about two minutes and needs only your Windows 11 PC.
Why password on wake
When you leave a laptop or desktop unattended, anyone could open your files or change settings if the machine resumes without a lock. Requiring a password protects personal data, work documents, and saved passwords from casual access. It also complies with many workplace security policies.
Prerequisites
- Windows 11 installed and running.
- An account with administrator rights (the built‑in account you use to sign in is usually sufficient).
- A password, PIN, or picture password already set for the account. If you have only a local account without a password, create one first.
Set via Settings
This method uses the modern Settings app and works on all recent builds of Windows 11.
- Press Windows + I to open Settings.
- Click Accounts in the left navigation pane.
- Select Sign‑in options from the Account submenu.
- Scroll to the section titled “If you’ve been away, require sign‑in.”
- From the drop‑down menu, choose When PC wakes from sleep. The default is Never, which you will replace.
- Close Settings. The change is saved automatically.
After these steps, Windows will lock the screen each time the device wakes from sleep, prompting you for the chosen credential.
Set via Power Options (Control Panel)
If you prefer the classic Control Panel, or if the Settings app does not show the option, use Power Options.
- Press Windows + R, type
control, and press Enter to open the Control Panel. - Choose Hardware and Sound, then click Power Options.
- In the left column, select Require a password on wakeup.
- Click the link Change settings that are currently unavailable to unlock the options.
- Under “Password protection on wakeup,” select Require a password (recommended) for both “On battery” and “Plugged in.”
- Press Save changes. The system will now enforce a password on every wake event.
Test and troubleshoot
Verifying the setting ensures you won’t be surprised later.
- Close all open programs and press the power button briefly to put the PC to sleep (or select Start > Power > Sleep).
- Wait a few seconds, then press any key or move the mouse to wake the device.
- If the lock screen appears asking for your password, PIN, or picture, the configuration succeeded.
If the lock screen does not appear, try the following checks:
- Confirm you edited the correct account. Settings apply per‑user; switching to a different account may show a different behaviour.
- Make sure Fast Startup is not bypassing the lock screen. Open Settings > System > Power > Additional power settings, then click “Choose what the power buttons do.” Disable “Turn on fast startup” and test again.
- Check for group‑policy overrides. Press Windows + R, type
gpedit.msc, and navigate to Computer Configuration > Administrative Templates > System > Power Management > Sleep Settings. Ensure “Require a password when a computer resumes from sleep” is set to “Not Configured” or “Enabled.” - Restart the PC after changing any of the above options. Some settings only take effect after a reboot.
Maintenance and additional options
Once the password‑on‑wake setting is active, you can fine‑tune related security features.
- Use a PIN or Windows Hello facial recognition for quicker access while keeping the lock screen active.
- Enable Dynamic Lock: pair a Bluetooth device (your phone) with the PC, and Windows will automatically lock when the device moves out of range.
- Review the “Screen timeout” setting under Settings > System > Power & battery > Screen and sleep. Shorter idle times reduce the window in which the device stays unlocked.
- For shared computers, consider setting a separate local account for guests with no password requirement, while keeping the main account protected.
Symptom / Cause / Fix table
| Symptom | Possible cause | Fix |
|---|---|---|
| Device wakes without asking for credentials | Sign‑in option set to “Never” | Change to “When PC wakes from sleep” in Settings |
| Lock screen still absent after Settings change | Fast Startup bypasses lock screen | Disable Fast Startup in Power Options |
| Only some accounts require a password | Settings applied per user | Log into each account and repeat the configuration |
| Group policy forces “Never” | Local or domain policy overrides | Edit gpedit.msc or contact your IT admin |
Frequently asked follow‑ups
Can I use a PIN instead of a password?
Yes. After enabling the lock‑on‑wake requirement, go to Settings > Accounts > Sign‑in options and add a PIN. The PIN will be accepted at the lock screen just like a password.
What if I want the PC to stay unlocked for a short period after sleep?
Windows does not provide a timed exception for wake‑up. The closest alternative is to set the screen to turn off after a few minutes while keeping the session unlocked, but the lock screen will still appear on each wake.
How do I disable the password requirement temporarily?
Return to Settings > Accounts > Sign‑in options and change the drop‑down back to “Never.” Remember to re‑enable it when you leave the machine unattended.
Will a Microsoft account behave differently?
No. The same sign‑in options apply whether you use a local account or a Microsoft account. The only difference is the credential type you enter (password vs. PIN vs. picture).