Into Windows

  • Home
  • Windows 11
  • Windows 10
  • Windows 7
  • Privacy
You are here: Home » Windows 11 » How To Automatically Lock Windows 11 Screen After Inactivity

How To Automatically Lock Windows 11 Screen After Inactivity

Last Updated on April 10, 2025 by admin Leave a Comment

With the default installation settings, Windows 11 does not automatically lock your PC after a specific amount of idle time.

Although you can manually lock your PC or configure Windows 11 to automatically lock when you move away from it (by pairing your smartphone to your PC via Bluetooth), you might want your Windows 11 PC to automatically lock itself after a specified time of inactivity.

As you might have discovered by now, the Windows 11 Settings app does not offer an option to automatically lock your PC after a period of inactive time.

We need to use the Windows Registry or Local Security Policy Editor to configure Windows 11 to lock automatically when the PC is idle.

Once your PC is locked, you must sign in again using the password, PIN, or fingerprint to use your Windows 11 PC.

Tip: You can use the Windows logo + L keyboard shortcut to manually lock your Windows 11 PC.

Method 1 of 2

Automatically lock Windows 11 PC after inactivity via Registry

Step 1: Open the Registry Editor using the search.

Step 2: In the left pane of the Registry Editor, use the following path to reach the System key.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

Step 3: On the left pane, click the System key. Now, on the right side, look for InactivityTimeoutSecs.

automatically lock Windows 11 when inactive pic1

If InactivityTimeoutSecs is not present, right-click on an empty spot, click New, and then click DWORD 32-bit Value and name it InactivityTimeoutSecs.

automatically lock Windows 11 when inactive pic2

automatically lock Windows 11 when inactive pic3

Step 4: Double click the InactivityTimeoutSecs DWORD key and then enter the inactive time in seconds after which the Windows 11 PC should be automatically locked. For instance, if you want the PC to be automatically locked after two minutes of inactivity, then you need to enter value 120. Select the Decimal base.

Click the OK button. That’s it! From now on, your Windows 11 PC will automatically lock after the specified time of inactivity.

automatically lock Windows 11 when inactive pic5

Step 5: Reboot your PC to apply the new policy.

Method 2 of 2

Automatically lock Windows 11 PC after inactivity

This method uses the Local Security Policy Editor feature, which is not present in the Home edition of Windows 11. If using the Home edition, please refer to the directions in Method 1 (Registry method).

Step 1: Type secpol.msc in the Start menu or taskbar search field and then hit the Enter key to open the Local Security Policy window.

automatically lock Windows 11 PC when idle pic1

Step 2: On the left side, navigate to Local Policies > Security Options.

Step 3: Now, on the right side, look for Interactive logon: Machine inactivity limit policy. Once found, double-click on it to open its properties.

automatically lock Windows 11 PC when idle pic2

Step 4: In the “Machine will be locked after” field (under the Local Security Settings tab), type the number of seconds after which you would like the PC to be automatically locked.

Click the Apply button. Click OK.

automatically lock Windows 11 PC when idle pic3

Step 5: Reboot your PC once to apply the changes. That’s it!

Filed Under: Windows 11 Tagged: Lock Screen, Security

Related Posts

  • Automatically Change Lock Screen Background Picture In Windows 10
  • Can We Change The Clock’s Position On Windows 10/11 Lock Screen?

Leave a Reply

Your email address will not be published. Required fields are marked *

Advertisements

Search Into Windows

Recent posts

  • 5 Ways To Go To Desktop In Windows 11
  • How To Show Battery Percentage On Taskbar In Windows 11
  • Fix: AMD Software Adrenalin Edition Not Opening In Windows 11
  • How To Show Year On Windows 11 Taskbar
  • Windows 11 24H2 Is Available Now
  • How To Create 7z & TAR Files In Windows 11 Without Using Additional Apps
  • How To Remove Bell Icon From Taskbar In Windows 11
  • How To Reinstall Windows 11 Without Losing Apps And Files
  • How To Hide/Show Files & Icons On Desktop In Windows 10/11
  • How To Show Hidden Icons On Taskbar In Windows 11

About us

  • About Us
  • Contact Us
  • Privacy Policy

Copyright © 2025 · Into Windows