How to Set Up a PIN and Enable Auto-Lock After Inactivity in Windows 11
Windows 11 offers advanced sign-in and security options to protect your system. Among the most useful features are the Windows Hello PIN and the ability to a...
Windows 11 offers advanced sign-in and security options to protect your system. Among the most useful features are the Windows Hello PIN and the ability to automatically lock your PC after a period of inactivity.
However, many users face two common issues:
-
Their PC doesn’t ask for a password after waking up.
-
They haven’t set up a PIN for faster login.
This guide explains how to set a PIN, ensure the system locks after 5 minutes of idle time, and prompts for a password every time — along with troubleshooting hidden settings like Fast Startup and automatic login via netplwiz.
? Step 1: How to Set a PIN in Windows 11
If no PIN is currently set, do this:
-
Press
Windows + Ito open Settings. -
Navigate to Accounts → Sign-in options.
-
Under “Ways to sign in”, click Set up next to PIN (Windows Hello).
-
Verify your current account password.
-
Enter and confirm your desired PIN (you can include letters and symbols if needed).
-
Click OK.
✅ You can now use this PIN to log in securely and quickly.
? Step 2: Enable Auto-Lock After Inactivity and Require Password on Resume
By default, Windows might not prompt for your PIN or password after waking from idle — unless you configure the following:
✅ A. Adjust Sign-In Options
-
Go to Settings → Accounts → Sign-in options.
-
Under “If you’ve been away, when should Windows require you to sign in again?”
-
Set to “Every time”.
-
✅ B. Set Idle Time for Screen Off and Sleep
-
Go to Settings → System → Power & battery.
-
Under Screen and sleep:
-
Set Turn off my screen after to 5 minutes.
-
Set Put my device to sleep after to 5 minutes.
-
✅ C. Use Screen Saver Lock as Backup
-
Press
Windows + R, type:control desk.cpl,,1and press Enter.
-
In the Screen Saver Settings window:
-
Choose a screen saver (e.g., Blank).
-
Set Wait time to 5 minutes.
-
✅ Check “On resume, display logon screen”.
-
Click Apply and OK.
-
⚙️ Step 3: Critical Settings to Check If Auto-Lock Still Fails
Even after configuring the above, your system might still skip the password screen. Here are two hidden reasons and their fixes:
? A. Disable Fast Startup
Fast Startup may bypass the lock screen after sleep or shutdown.
-
Press
Windows + R, typepowercfg.cpl, and press Enter. -
Click "Choose what the power buttons do".
-
Click "Change settings that are currently unavailable".
-
Scroll down and uncheck “Turn on fast startup (recommended)”.
-
Click Save changes.
✅ Now Windows will perform a full lock/resume cycle and ask for credentials.
? B. Turn Off Automatic Login (netplwiz)
Automatic login bypasses the PIN or password prompt.
-
Press
Windows + R, typenetplwiz, and press Enter. -
If the checkbox “Users must enter a user name and password…” is unchecked, then:
-
✅ Check it.
-
Click Apply, and confirm by entering your password.
-
-
Restart your system.
✅ You’ll now be prompted for a password or PIN after restart or idle.
? Bonus Tip: Manually Lock Your Screen
You can manually lock your system any time using:
Windows + L
This is the safest way to secure your PC when stepping away temporarily.
✅ Summary Table
| Task | Steps |
|---|---|
| Set a PIN | Settings → Accounts → Sign-in options → PIN (Set up) |
| Lock screen after inactivity | Power & battery → 5 min idle → Sleep + Sign-in options → "Every time" |
| Enable screen saver lock | control desk.cpl,,1 → Set to 5 mins → Require logon on resume |
| Disable Fast Startup | powercfg.cpl → Disable "Turn on fast startup" |
| Prevent auto login | netplwiz → Enable login prompt for all users |
Was this guide useful?
Your answer helps us keep BISONKB accurate and practical.