How to Set Up a PIN and Enable Auto-Lock After Inactivity in Windows 11 – BisonKB

How to Set Up a PIN and Enable Auto-Lock After Inactivity in Windows 11

Posted on 19-06-2025 | Category: General | Views: 8


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:

  1. Press Windows + I to open Settings.

  2. Navigate to Accounts → Sign-in options.

  3. Under “Ways to sign in”, click Set up next to PIN (Windows Hello).

  4. Verify your current account password.

  5. Enter and confirm your desired PIN (you can include letters and symbols if needed).

  6. 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

  1. Go to Settings → Accounts → Sign-in options.

  2. 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

  1. Go to Settings → System → Power & battery.

  2. 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

  1. Press Windows + R, type:

    nginx
    control desk.cpl,,1

    and press Enter.

  2. 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.

  1. Press Windows + R, type powercfg.cpl, and press Enter.

  2. Click "Choose what the power buttons do".

  3. Click "Change settings that are currently unavailable".

  4. Scroll down and uncheck “Turn on fast startup (recommended)”.

  5. 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.

  1. Press Windows + R, type netplwiz, and press Enter.

  2. If the checkbox “Users must enter a user name and password…” is unchecked, then:

    • Check it.

    • Click Apply, and confirm by entering your password.

  3. 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:

plaintext
Windows + L

This is the safest way to secure your PC when stepping away temporarily.


✅ Summary Table

TaskSteps
Set a PINSettings → Accounts → Sign-in options → PIN (Set up)
Lock screen after inactivityPower & battery → 5 min idle → Sleep + Sign-in options → "Every time"
Enable screen saver lockcontrol desk.cpl,,1 → Set to 5 mins → Require logon on resume
Disable Fast Startuppowercfg.cpl → Disable "Turn on fast startup"
Prevent auto loginnetplwiz → Enable login prompt for all users

Tags:
Windows 11 PIN setup Auto lock Windows 11 How to set PIN Windows Require password after sleep Windows Hello sign-in Screen timeout lock Windows PIN sign-in Windows 11 Sleep mode password prompt Set up PIN login Windows Screen saver password lock
Related Articles
AI-Recommended Articles
Was this article helpful?
← Back to Home
Advertisement