Skip to content

Instantly share code, notes, and snippets.

@brootware
Last active February 1, 2024 06:56
Show Gist options
  • Save brootware/dc008eb8642fbdd975a46fd03c1b72cd to your computer and use it in GitHub Desktop.
Save brootware/dc008eb8642fbdd975a46fd03c1b72cd to your computer and use it in GitHub Desktop.

https://www.elevenforum.com/t/automatically-lock-computer-after-inactivity-in-windows-11.4774/

  • Open Local Security Policy (secpol.msc).
  • Double click/tap on Local Policies in the left pane to expand, and click/tap on Security Options to open it. (see screenshot below)

Automatically_lock_computer_after_inactivity_secpol-1.png

  • In the right pane of Security Options, double click/tap on the Interactive logon: Machine inactivity limit policy to open its properties. (see screenshot above)
  • Enter a number between 0 to 599940 for how many seconds of inactivity you want to automatically lock computer after, and click/tap on OK. (see screenshot below)
  • The default is 0 (zero) seconds to not automatically lock the computer.

Automatically_lock_computer_after_inactivity_secpol-2.png

  • Close the Local Security Policy window.
  • Restart the computer to apply.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment