Skip to content
Follow
Windows

How to Enable or Disable Lock Computer in Windows 11

Richard
Written by
Richard
Mar 27, 2026 Updated Jul 10, 2026 1 min read
How to Enable or Disable Lock Computer in Windows 11
How to Enable or Disable Lock Computer in Windows 11

Here’s how you can turn the lock computer feature on or off for everyone in Windows 11.

⚡ Quick Answer

To enable or disable the lock computer feature in Windows 11, you need to modify a registry setting as an administrator. Open Command Prompt as administrator and use the `reg add` command with a value of 0 to enable or 1 to disable the `DisableLockWorkstation` DWORD.

Why Lock Your Computer?

Locking your computer in Windows 11 keeps your files private when you’re away from your desk, allowing you to step away without losing your place in any open programs.

What Happens When You Disable Lock?

Disabling the lock computer option in Windows 11 removes the ‘Lock’ button from your computer. You won’t find the lock button in the Start menu, power options, or when you press Ctrl+Alt+Del. This means you must sign out or shut down your PC instead of locking it.

  • The Start menu
  • Power menus
  • Ctrl+Alt+Del screen
  • Alt+F4 Shut Down Windows locations

Important

📝Good to Know
You must be signed in as an administrator to turn the lock computer feature on or off.

How to Enable Lock Computer for All Users

This is the default setting.

🗝️Registry
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DisableLockWorkstation /t REG_DWORD /d 0 /f

How to Disable Lock Computer for All Users

🗝️Registry
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DisableLockWorkstation /t REG_DWORD /d 1 /f

Summary

You can manage the lock computer function in Windows 11 to protect your PC while keeping apps open. This change requires administrator access and affects how users sign out.

Was this guide helpful?

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 Add or Remove the Sign-In Screen Power Button in Windows 11
Windows How to Add or Remove the Sign-In Screen Power Button in Windows 11
How to Add Phone Link to Windows 11 Start Menu
Windows How to Add Phone Link to Windows 11 Start Menu
How to Customize the 'All' Apps View in Windows 11 Start Menu
Windows How to Customize the 'All' Apps View in Windows 11 Start Menu
How to Add or Remove Apps from Windows 11 Start Menu
Windows How to Add or Remove Apps from Windows 11 Start Menu

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

Leave a Comment

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