How to Stop Windows 11 from Locking Automatically
In this article
Yes, you can stop Windows 11 from locking automatically by adjusting power and screen timeout settings, modifying sign-in options, and changing what happens when you close your laptop lid. This prevents the system from entering lock screen mode after inactivity, which is useful if you're using your PC continuously and don’t want repeated authentication interruptions. Before making changes, ensure you're logged into an administrator account and aware of the security trade-off: disabling automatic lock reduces protection against unauthorized access if you step away from your device.
What You'll Need
- Administrator access to the Windows 11 device
- Access to Settings or Control Panel (via search bar)
- Approximately 5 minutes to adjust settings
Step-by-Step
- Open the Settings app by pressing Windows + I or searching “Settings” in the taskbar.
- Navigate to System > Power & battery. On desktops, this may appear as “Power & sleep” instead.
- Under the “Screen and sleep” section, locate the two drop-down menus: “When plugged in, turn off my device after” and “When on battery, turn off my device after.” Set both to Never.
- Go back to the main Settings menu and select Personalization > Lock screen.
- Click on Screen saver settings at the bottom of the page. This opens the classic Desktop Screen Saver Settings window.
- In the screen saver window, set the “Wait” time to a high number (e.g., 9999 minutes) or select None from the dropdown. Uncheck the box labeled “On resume, display logon screen” if it’s enabled.
- Click OK to save changes.
- Return to Settings and go to Accounts > Sign-in options.
- Under “Require sign-in,” select Never from the dropdown menu. This ensures Windows does not prompt for a password after waking from sleep or screen timeout.
- To adjust lid behavior (for laptops), search “Power & sleep settings” in the taskbar, then click “Additional power settings” > “Choose what closing the lid does.” Change both “On battery” and “Plugged in” settings under “When I close the lid” to Do nothing, then click Save changes.
- Optionally, disable lock-on-idle via Group Policy (only available on Pro or Enterprise editions): press Windows + R, type
gpedit.msc, navigate to Computer Configuration > Administrative Templates > System > Logon, and set “Always use custom logon background” or disable “Hide entry points for Fast User Switching” if applicable. However, this is not typically required for basic lock prevention. - Restart your PC to ensure all changes take effect.
Common Mistakes
- Only adjusting screen timeout but ignoring the “Require sign-in” setting, which still forces a password prompt after inactivity.
- Forgetting to change settings for both “On battery” and “Plugged in” modes, leading to inconsistent behavior.
- Not disabling the screen saver’s “On resume, display logon screen” option, which re-enables locking despite other changes.
- Assuming Group Policy settings are needed on Home editions—
gpedit.mscis not available on Windows 11 Home, so relying on it causes confusion. - Changing power plans without saving them as active, so settings revert after reboot.
Tips
- Use a custom power plan: create a new power plan in Control Panel > Power Options to preserve your settings if defaults are reset.
- Set a static wallpaper or slideshow instead of a screen saver to maintain visibility without locking.
- If you share the device, consider using a guest account rather than disabling lock security for your main profile.
- Use Windows + L manually when stepping away to lock the device temporarily.
- Check for third-party software (like remote desktop tools or kiosk apps) that may override power settings.
Troubleshooting
If Windows 11 continues to lock despite changes, first verify all settings are correctly applied in both Power & sleep and Sign-in options. Some devices, especially corporate-managed ones, may have group policies enforced by an organization that override local settings. In such cases, contact your administrator. If on a personal device, ensure no third-party security software (like endpoint protection tools) is enforcing screen lock policies. Restart the PC after changes to ensure settings register. If the screen still locks, check Event Viewer under Windows Logs > System for power-related events. Run powercfg /requests in Command Prompt (as admin) to see if any apps are forcing the system to stay awake or sleep. If using a laptop, ensure battery saver mode isn’t resetting power settings automatically. Finally, reset power plans to default and reconfigure them if settings fail to stick.
Frequently Asked Questions
Does stopping Windows from locking reduce security?
Yes. Disabling automatic lock means anyone can access your device if left unattended. Use only on secure, private networks or personal devices you control physically.
Can I stop locking without turning off the screen?
Yes. Set the screen to turn off after a delay but configure “Require sign-in” to “Never” so it doesn’t lock when the display sleeps.
Why does my PC still lock after changing all settings?
This may be due to enforced group policies, domain settings, or third-party software. Check if your device is managed by an organization or has security tools overriding local preferences.
Is there a keyboard shortcut to prevent locking temporarily?
No direct shortcut prevents locking, but moving the mouse or pressing a key every few minutes resets inactivity. Use third-party tools like “Caffeine” to simulate activity if needed.
Can I automate this with a script?
Yes. Use a batch file or PowerShell script to run powercfg /setactive with a custom power scheme, or toggle settings via registry edits (HKLM\SOFTWARE\Policies\Microsoft\Windows\System), but proceed with caution.
Does this work on Windows 11 Home edition?
Yes. All critical settings are accessible via Settings or Control Panel. Group Policy Editor (gpedit.msc) is not available on Home, but it’s not required for basic lock prevention.