Skip to content
Follow
Windows

How to Enable or Disable Lock Computer in Windows 11

Richard
Written by
Richard
Mar 27, 2026 Updated Aug 12, 2026 2 min read
How to Enable or Disable Lock Computer in Windows 11
How to Enable or Disable Lock Computer in Windows 11

Turning off the lock screen option prevents other accounts from walking away without signing out entirely.

⚡ 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.

Fastest Way to Lock Your PC

💡Tip
Press the Win+L on your keyboard at any time to lock your computer instantly.

Why Lock Your Computer?

Stepping away safely requires a secure lock screen, which hides your active desktop while keeping all background apps running until you return. Other users can still sign in from the sign-in screen if needed.

What Happens When You Disable Lock?

Disabling the feature forces users to sign out or shut down instead. Removing the lock option affects several system locations:

Using the Command Prompt

  1. Open the Start menu and type cmd
  2. Click on Command Prompt in the search results
  3. Type rundll32.exe user32.dll,LockWorkStation and press Enter
  • The Start menu
  • Power menus
  • Ctrl+Alt+Del screen
  • Alt+F4 Shut Down Windows locations

Important

Administrator privileges are required to change these settings. This applies to Windows 11 Pro, Enterprise, and Education editions.

How to Enable Lock Computer for All Users

This represents the default system configuration.

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

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

Summary

The lock feature in Windows 11 lets you protect your computer while keeping your work open. Modifying a registry setting enables or disables this behavior. Only administrators can make this change. When lock is disabled, users must sign out or shut down instead of locking the screen.

⚠️Edition Limitations
The Local Group Policy Editor only works on Windows 11 Pro, Enterprise, and Education. If you use Windows 11 Home, you must use the Registry Editor instead.

Troubleshooting Lock Screen Issues

If your lock screen is disabled or missing options, check your Windows activation status and ensure no organization policies are blocking your settings.

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 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 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 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 *