Advertisement

How to Automatically Lock Windows 10 Computer

You can lock your screen to protect your PC from unauthorized use when you walk away for a short time and do not want to sign out from your user session or turn off your computer. In Windows 10, there is a special Interactive logon: Machine inactivity limit security policy setting that can be used to set how many seconds of inactivity to wait for before your user session will be locked.

Advertisement

When Windows 10 is locked, it shows the lock screen.

Windows 10 Lock Screen

If you have disabled the lock screen, then a sign-in screen will be displayed instead.

If a CTRL+ALT+DEL security screen is enabled, the user must press Ctrl + Alt + Del before signing in to unlock it.

Windows 10 Lock Screen With Ctrl Alt Del

When your account is password protected, other users won't be able to unlock your user session without knowing your password. However, if they have their own accounts on your PC, they will be able to sign in with them from the lock screen. Your account will remain locked and your data will stay private.

By default, Windows 10 is set to not automatically lock your computer. Here is how to change this behavior.

To Automatically Lock a Windows 10 Computer,

  1. Open Registry Editor.
  2. Go to the following Registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

    Tip: See how to jump to the desired Registry key with one click.

    If you do not have such a key, then just create it.

  3. Here, modify or create a new 32-bit DWORD value InactivityTimeoutSecs. Note: Even if you are running 64-bit Windows you must still create a 32-bit DWORD value.
  4. Set its value data to a number between 0 to 599940 to set how many seconds of inactivity the OS will wait before locking your session. Enter the value in decimals.Automatically Lock Windows 10 Computer Tweak
  5. Restart Windows 10.

Note: The default value data of the InactivityTimeoutSecs value is 0, means the automatic lock feature is disabled.

If you are running Windows 10 Pro, Enterprise, or Education edition, you can use the Local Security Policy app to configure the options mentioned above with a GUI.

Enable Automatic Lock in Windows 10 using Secpol.msc

  1. Press Win + R keys together on your keyboard and type:
    secpol.msc

    Press Enter.Windows 10 Secpol

  2. Local Security Policy will open. Go to User Local Policies -> Security Options.Windows 10 Local Security Policy
  3. On the right, scroll to the option  Interactive logon: Machine inactivity limit.
  4. Set it to a number between 0 to 599940 to specify how many seconds of inactivity the OS will wait before locking your session.Automatically Lock Windows 10 Computer
  5. Restart Windows 10.

That's it.

Articles of interest:

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.