Lock Windows 11 Computer After Inactivity

Lock Windows 11 Computer After Inactivity

If you are security conscious, you may be interested in setting your computer to automatically lock the user session after a period of inactivity. For example, if you walk away from your desk to grab a coffee but forget to lock it, after a period of 300 seconds you could force Windows 11 to present the logon screen. This is especially useful in workplaces or public areas where you would want to protect data.

There are two ways to achieve this and both are reasonably complicated. To simplify the steps, we have generated a .reg file which you can run and perform the changes automatically. Inside this attached .zip file are 3 files - one which disables the inactivity lock and two files with preconfigured timeouts of 120s and 300s.

To use our registry modification files:

  1. Download the attached .zip file.
  2. Extract the files to a folder.
  3. Look at the filename for the disable, 120s and 300s timeout choices.
  4. Run the .reg file that corresponds to the timeout you would like.
  5. Accept the warning for running a .reg file (I suggest you never run a .reg file without inspecting the contents).
  6. Reboot the computer once the registry modification is complete.

To manually modify the registry:

  1. Run "regedit"
  2. Browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
  3. Search for a DWORD value of "InactivityTimeoutSecs" in the right column and double click it.
  4. Edit the Value Data and enter a Decimal number, relating to the number of seconds of inactivity before locking Windows 11.
Author
Ian
Downloads
1,898
First release
Last update

More resources from Ian

Top