Require PIN When Laptop Closes: Full Guide
In this article
Yes, you can require a PIN when your laptop lid closes by configuring Windows power and sign-in settings. This ensures your device locks automatically when closed and requires authentication when reopened, protecting your data even if someone takes it while you're away. This setup works on Windows 10 and Windows 11 and requires administrator access and a configured Windows Hello PIN.
What You'll Need
- A Windows 10 or Windows 11 laptop
- Administrator privileges on the device
- A Windows Hello PIN already set up
- Access to system settings (Settings app and Power Options)
Step-by-Step
- Open the Start menu and click on the gear icon to launch the Settings app. Alternatively, press Windows + I to open Settings directly.
- Navigate to Accounts > Sign-in options. Make sure you have a Windows Hello PIN set up under the PIN section. If not, click Add and follow the prompts to create one using your password.
- Go back to the main Settings menu and select System > Power & sleep (in Windows 11) or System > Power & battery (on some Windows 10 devices).
- Click on Additional power settings on the right side. This opens the classic Control Panel Power Options window. Note that menu labels may vary slightly depending on your Windows version or manufacturer.
- In the Power Options window, click Choose what closing the lid does from the left-hand menu.
- You may see a warning: Some settings are hidden or managed by your organization. If you're on a personal device and see this, click Change settings that are currently unavailable at the top. This unlocks the options for editing.
- Under When I close the lid, ensure both On battery and Plugged in are set to Do nothing, Sleep, or Hibernate. The exact sleep state doesn’t matter as long as it’s not Do nothing unless you want the laptop to stay on.
- Scroll down to the Require a password on wakeup section. Click the dropdown next to it and select Require a password for both battery and plugged-in states.
- Click Save changes at the bottom. You won’t get a confirmation, but the settings are now applied.
- To test, close your laptop lid and wait 10–15 seconds. Open it again. The device should wake and prompt you for your PIN. If it doesn’t, proceed to troubleshooting.
Common Mistakes
- Not setting up a PIN first: The system will still ask for a password if no PIN exists. A PIN must be configured in Sign-in options for PIN login to work.
- Leaving lid action as 'Do nothing': If the lid close action is set to 'Do nothing', the laptop stays on and won’t trigger a lock screen, bypassing the PIN requirement.
- Skipping 'Change settings that are currently unavailable': On many laptops, especially after updates, these settings are locked by default. Not unlocking them means changes won’t save.
- Confusing sleep with hibernate: Both trigger the lock screen, but hibernate uses less power. Either works for PIN enforcement.
- Using a Microsoft account without PIN: Some users assume being signed in with a Microsoft account is enough. Without a PIN, the system may fall back to password or no authentication.
Tips
- Use hibernate for better security: Set the lid close action to hibernate. This fully powers down the system and requires full authentication on startup, reducing cold boot attacks.
- Enable fast startup cautiously: Fast Startup can interfere with proper shutdown sequences. If your PIN isn’t prompting, try disabling it in Power Options > Choose what the power buttons do > Change settings that are currently unavailable > uncheck Turn on fast startup.
- Test after each change: Close and open the lid after adjusting settings to confirm the PIN prompt appears.
- Check group policies on work devices: If you're on a company-managed laptop, IT policies may override these settings. Contact your administrator if options are grayed out and can’t be changed.
- Combine with automatic lock: In Settings > Accounts > Sign-in options, set the device to require sign-in after fewer seconds of screen off (e.g., 30 seconds) for added protection.
Troubleshooting
If your laptop doesn’t prompt for a PIN when reopened:
- Restart the device: Some power setting changes require a reboot to take effect.
- Verify the PIN is set: Go to Settings > Accounts > Sign-in options and confirm a PIN is listed. If not, set one up.
- Recheck lid close settings: Return to Power Options > Choose what closing the lid does and ensure both power states have a sleep action and 'Require a password on wakeup' is enabled.
- Update Windows: Outdated systems may have bugs in power management. Install pending updates via Settings > Windows Update.
- Check for third-party power managers: Some laptops (e.g., Dell, Lenovo) include manufacturer utilities that override Windows settings. Open the vendor’s power app and look for lid close or auto-lock options.
- Sign out and back in: Sometimes, sign-in policies don’t apply until you restart your session. Sign out completely, then sign back in with your PIN.
Frequently Asked Questions
Does this work on all Windows laptops?
Yes, as long as it runs Windows 10 or 11 and you have admin rights. Manufacturer software may affect behavior, but core functionality is built into Windows.
Can I use a password instead of a PIN?
Yes, but a PIN is faster and more secure for local devices. The system will prompt for your password if no PIN is set.
Why doesn’t my laptop lock when I close the lid?
This usually happens if the lid close action is set to 'Do nothing' or if 'Require a password on wakeup' is disabled. Double-check both settings.
Will this drain the battery?
No. When set to sleep or hibernate, the laptop uses minimal or no power. Hibernate uses almost none, making it ideal for long closures.
Can I require a PIN only when on battery?
Yes. In the 'Choose what closing the lid does' menu, you can set different actions and password requirements for 'On battery' and 'Plugged in'.
What if my PIN doesn’t work on wake?
Try entering your Microsoft account password instead. If that works, go to Sign-in options and re-register your PIN. Corrupted PIN data can prevent login.