You are on page 1of 4

Enable or Disable Automatically Lock Computer in Local

Security Policy

This option is only available in the Windows 10 Pro and Enterprise editions.

All editions can use Option Two below.

1. Open Local Security Policy (secpol.msc).

2. Expand open Local Policies in the left pane, and click/tap on Security Options. (see
screenshot below)

3. In the right pane of Security Options, double click/tap on Interactive logon: Machine
inactivity limit. (see screenshot above)

4. Enter a number between 0 to 599940 for how many seconds of inactivity you want to lock
after, and click/tap on OK. (see screenshot below)

The default is 0 (zero) seconds to not automatically lock the computer.


5. Close the Local Security Policy window.

6. Restart the computer to apply.

OPTION TWO
Enable or Disable Automatically Lock Computer in
Registry Editor
1. Press the Win+R keys to open Run, type regedit into Run, and click/tap on OK to open
Registry Editor.

2. Navigate to the registry key below in the left pane of Registry Editor. (see screenshot
below)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\P
olicies\System

3. In the right pane of the System key, double click/tap on the InactivityTimeoutSecs
DWORD to modify it. (see screenshot above)

If you do not have a InactivityTimeoutSecs DWORD, then right click or press and hold
on an empty space in the right pane of the System key, click/tap on New, click/tap on
DWORD (32-bit) Value, type InactivityTimeoutSecs for the name, and press Enter.

4. Select (dot) Decimal, enter a number between 0 to 599940 for how many seconds of
inactivity you want to lock after, and click/tap on OK. (see screenshot below)

The default is 0 (zero) seconds to not automatically lock the computer.


5. Close Registry Editor.

6. Restart the computer to apply.

You might also like