Skip to content
Follow
Windows

How to Turn On or Off Automatic Lock on Your Windows 11 PC

Richard
Written by
Richard
Feb 17, 2026 Updated Jul 12, 2026 2 min read
How to Enable or Disable Automatic Lock on Your Windows 11 PC
How to Enable or Disable Automatic Lock on Your Windows 11 PC

Windows 11 can lock your computer automatically if you don’t use it for a while. This helps keep your files safe from others when you step away.

When your PC locks, you’ll see the lock screen. This is the screen that appears before you sign in. You can also lock your PC anytime by pressing Windows key + L.

⚡ Quick Answer

Control automatic PC locking in Windows 11 via Power & Sleep settings or Local Security Policy/Registry Editor. Adjust inactivity time in seconds or set to 0 to disable.

How to Change When Your PC Locks Automatically

You can set how long your computer waits before locking itself when you’re not using it. Or you can turn off this automatic lock if you want.

For 🪟 Windows 11 Pro, Enterprise, or Education Users:

Follow these steps to change the lock settings using the Local Security Policy:

  1. Click the Start Menu (Windows icon at the bottom left).
  2. Type Local Security Policy or secpol.msc in the search box and click on it to open.
Search for Local Security Policy in Windows 11
windows 11 local security policy search

In the window that opens:

  1. In the left panel, click the arrow next to Local Policies, then click Security Options.
  2. On the right side, find Interactive logon: Machine inactivity limit and double-click it.
Interactive logon: Machine inactivity limit setting
windows 11 interactive logon machine inactivity limit

In the box that appears:

  • Type the number of seconds you want your PC to wait before locking. For example, 600 means 10 minutes.
  • Type 0 to turn off automatic locking.
  • Click OK to save.
Set inactivity time in Local Security Policy
windows 11 interactive logon machine inactivity limit sittings

📝Note
The Local Security Policy tool is not available on Windows 11 Home edition.

For 🪟 Windows 11 Home Users:

If you have Windows 11 Home, you won’t see the Local Security Policy. Instead, you can change the lock time by editing the Windows Registry. Be careful when editing the Registry — making wrong changes can cause problems.

  1. Press Windows key + R to open the Run box.
  2. Type regedit and press Enter to open the Registry Editor.

In Registry Editor, go to this path:

🗝️Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

On the right side, look for a setting named InactivityTimeoutSecs.

  • If you don’t see it, right-click on an empty space, choose New > DWORD (32-bit) Value, and name it InactivityTimeoutSecs.
  • Double-click InactivityTimeoutSecs and select Decimal.
  • Enter the number of seconds you want your PC to wait before locking (for example, 600 for 10 minutes).
  • Enter 0 to turn off automatic locking.
  • Click OK and close Registry Editor.
Editing InactivityTimeoutSecs in Windows Registry
windows 11 inactivity timeout secs registry

Set inactivity timeout seconds in registry
windows 11 inactivitytimesecs options updated

Summary

  • Windows 11 locks automatically after a set time of no use to keep your PC safe.
  • If you want to change or stop this automatic lock, you can do it in Local Security Policy (for Pro and similar editions) or by editing the Registry (for Home edition).
  • Set the time in seconds (like 600 seconds = 10 minutes) or use 0 to turn off automatic locking.

That’s it! Now you can control when your PC locks automatically and keep your computer just the way you want.

Was this guide helpful?

100% of readers found this helpful (2 votes)

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Lock Your Windows 11 Computer
Windows How to Lock Your Windows 11 Computer
How to Turn On or Off the Lock Screen in Windows 11
Windows How to Turn On or Off the Lock Screen in Windows 11
How to Enable or Disable Lock Screen Background in Windows 11
Windows How to Enable or Disable Lock Screen Background in Windows 11
How to Enable Windows 11 Lock Screen Fun Facts
Windows How to Enable Windows 11 Lock Screen Fun Facts

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *