Easy Ways to Lock Windows 11 PC Automatically After Inactivity

21 October 2022

Home » Blogs » Windows » Tips and Tricks » Easy Ways to Lock Windows 11 PC Automatically After Inactivity

Did you know that can detect and lock your system after a few minutes of inactivity?

The security of the operating system is very important because it allows us to take care of important system data and user files while ensuring their integrity and availability. It is a common thing we leave the computer on, which allows other users to access and manipulate it.

For this reason, one of the integrated methods for this process is to block the system when no activity is detected in it. For example, you can set to display the login screen after 300 seconds of inactivity.

TOP TUTORIALS:  How to Create a Local Account in Windows 11

You can do this setting through the Local Security Policy or the 11 Editor. For more details, follow the following guide from Bardimin.

Lock Window 11 PC via Local Security Policy

  1. Open the “Local Security Policy“. You can open it by using the keyboard shortcut (WIN + R) to open the “Run” dialog box. Then type “secpol.msc” and click the OK button.
  1. Next, navigate to “Security >> Local Policies >> Security Options“.
TOP TUTORIALS:  How to Add or Remove Microsoft Print to PDF
secpol inactivity
  1. Then on the right-hand panel, double-click on “Interactive logon: Machine inactivity limit“.
  2. Type the amount of time in seconds. This time is the length of time it takes before locks the screen automatically after detecting no activity. For example, 300 seconds.

Lock Window 11 PC via Registry Editor

  1. Open the “Windows Registry“. You can open it by using the keyboard shortcut (WIN + R) to open the “Run” dialog box. Then type “” and click the OK button.
  2. Next, navigate to “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\\CurrentVersion\Policies\System“.
TOP TUTORIALS:  SSD Fresh 2022 - A tool to extend the life of SSDs
regedit inactivity
  1. Then on the right-hand panel, double-click on “InactivityTimeoutSecs“.
  2. Select “Decimal” and then add the value of “Value data:” to the length of time in seconds, for example, 300.  and click the OK button to save it.
  3. Restart your computer.

If you don’t already have an InactivityTimeoutSecs DWORD, just right-click or hold down the key while clicking on the free space in the right pane of the System key, select New, select DWORD Value (32-bit), enter InactivityTimeoutSecs as the name, and then press Enter.

0 Comments

Submit a Comment