Prevent Windows 10/11 Auto Lock
In this article
Yes, you can prevent Windows 10 and 11 from automatically locking by adjusting power and screen timeout settings, disabling lock screen activation on wake, and modifying group policy or registry settings if needed. This keeps your device accessible without requiring a password each time it wakes, which is useful for trusted environments like home offices. Before starting, ensure you're signed in with an administrator account, as some settings require elevated permissions. Also, be aware that disabling auto-lock reduces security—only do this on personal or secure devices where unauthorized access is unlikely.
What You'll Need
- Administrator access to your Windows 10 or 11 device
- Ability to access the Settings app and Control Panel
- Optional: Access to Local Group Policy Editor (available in Pro, Education, or Enterprise editions)
- Optional: Basic familiarity with the Windows Registry (for advanced users)
Step-by-Step
- Open the Start menu and go to Settings > System > Power & sleep. Menu labels may vary slightly depending on your Windows version or device manufacturer.
- Under the "Screen" and "Sleep" sections, set both On battery power and When plugged in to Never. This stops the display from turning off and the device from sleeping, which can trigger a lock.
- Navigate to Settings > Personalization > Lock screen. Click on Screen saver settings at the bottom.
- In the Screen Saver Settings window, ensure a screen saver is not selected, or set the wait time to a high value. Uncheck the box labeled On resume, display logon screen if it's checked. This prevents Windows from requiring a password after inactivity.
- Press Win + R, type control, and press Enter to open the classic Control Panel. Go to Hardware and Sound > Power Options.
- Click Change plan settings next to your selected power plan, then click Change advanced power settings.
- In the new window, expand Power buttons and lid, then expand Lid close action and Power button action. Set both to Do nothing for battery and plugged in if desired.
- Still in advanced settings, expand Resume from sleep and ensure Require a password (on wakeup) is set to No for both power states.
- If you're using Windows 10/11 Pro or higher, press Win + R, type gpedit.msc, and press Enter to open the Local Group Policy Editor.
- Navigate to Computer Configuration > Administrative Templates > System > Power Management > Sleep Settings.
- Double-click Require a password when the computer wakes (on battery) and (plugged in), set both to Disabled, then click Apply.
- For all Windows editions, you can use the Registry Editor: Press Win + R, type regedit, and press Enter. Navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\Default\PowerSchemes\. This path leads to power scheme subkeys. Look for the active scheme (often identified by a GUID) and locate the subkey ending in\Sub_Sleep\HibernateAfterand\SleepAfter. Set both values to0to disable sleep. Also check\Sub_FastStartup\HiberBootand ensure it’s not forcing wake authentication. - Reboot your PC to ensure changes take full effect, especially after group policy or registry edits.
Common Mistakes
- Only changing screen timeout but leaving sleep settings enabled—both must be set to Never to prevent lock triggers.
- Forgetting to uncheck "On resume, display logon screen" in screen saver settings, which forces a password even if sleep is disabled.
- Editing the wrong power plan in Control Panel—ensure you're modifying the active plan.
- Using the Registry Editor without backing up first, risking system instability if incorrect values are changed.
- Assuming these settings apply universally—some laptops or corporate-managed devices may override local settings via firmware or domain policies.
Tips
- Use the Ultimate Performance power plan if available—it often has more aggressive wake and sleep defaults.
- Disable Dynamic Lock in Settings > Accounts > Sign-in options if you use Bluetooth devices, as it can lock your PC when your phone moves out of range.
- On shared or public devices, consider using a shorter password or Windows Hello instead of disabling the lock entirely.
- After making changes, test by letting the PC sit idle for several minutes and then moving the mouse or pressing a key to confirm it doesn’t lock.
- Use powercfg -requests in Command Prompt to see if any apps are forcing the system to stay awake or preventing sleep changes.
Troubleshooting
If your PC still locks automatically, first restart it to ensure all settings are applied. Check if your device is managed by an organization—domain policies can override local settings. Run gpupdate /force in Command Prompt as admin to refresh group policies. If the lock persists, verify no third-party security software is enforcing screen locking. Use Settings > System > Notifications to check if any apps are triggering lock-related alerts. If you used the Registry Editor and face issues, restore from a backup or use System Restore to revert changes. On some devices, firmware settings (like Intel Context Sensing) may enable auto-lock—check your manufacturer’s support site for utilities to disable them.
Frequently Asked Questions
Does disabling auto-lock make my PC unsafe?
Yes, it reduces security by allowing access without authentication after inactivity. Only disable it on private, secure devices.
Why doesn’t the Local Group Policy Editor open on my PC?
It’s only available in Windows Pro, Education, and Enterprise editions. Home edition users must use Registry Editor or Settings.
Can I stop the lock screen without turning off sleep?
Yes—go to Screen Saver Settings and uncheck "On resume, display logon screen." The PC can sleep but won’t require a password.
Will these settings affect battery life?
Yes, setting screen and sleep to "Never" increases power use. Plug in your device or adjust settings when on battery.
Does this work on laptops and desktops?
Yes, but laptop lid-close actions may still trigger sleep or lock unless changed in Power Options.
Can I automate this with a script?
Yes—use powercfg commands in a batch file to set timeouts and disable password prompts on startup.