Skip to content
Follow
Windows

How to Enable or Disable Lock Computer in Windows 11

Richard
Written by
Richard
Mar 27, 2026 Updated Oct 5, 2026 3 min read
How to Enable or Disable Lock Computer in Windows 11
How to Enable or Disable Lock Computer in Windows 11

Locking your computer hides your desktop when you step away. Your apps and files stay open in the background, so you can pick up where you left off.

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

Advertisement

Fastest Way to Lock Your PC

To lock your PC at any time, press Win+L. The screen switches to the lock screen at once. Press any key or click the mouse to get to the sign-in box, then enter your PIN or password to return to your desktop.

Why Lock Your Computer?

A locked PC keeps every app and background process running until you return. Other people who have an account on the PC can still use the sign-in screen to sign in with their own account. Your session stays open in the background while they do.

What Happens When You Disable Lock?

If you disable the lock feature, users can no longer lock the PC. When they step away, they must sign out or shut down, and any unsaved work in open apps is at risk. Turn this off only if you have a specific reason, such as a kiosk or shared-use setup.

Removing the lock option affects several places in Windows:

Using the Command Prompt

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

To open the tool you will use for the change, follow these steps:

Advertisement
  1. Open the Start menu and type cmd.
  2. Right-click Command Prompt in the search results and choose Run as administrator. If a User Account Control prompt appears, click Yes. A Command Prompt window opens.
  3. Type rundll32.exe user32.dll,LockWorkStation and press Enter. Command Prompt should report that the command completed successfully.

Important

You need administrator privileges to change these settings. If you are signed in with a standard account, the change will be refused. Sign in with an administrator account or enter administrator credentials when prompted. This applies to Windows 11 Pro, Enterprise, and Education editions.

How to Enable Lock Computer for All Users

This is the default system configuration. If nobody has changed the setting on your PC, the lock option is already available and you do not need to change anything.

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

How to Disable Lock Computer for All Users

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

Summary

You can enable the lock computer setting in Windows 11 to secure your screen without closing your apps. To do this, you edit the Windows registry to turn the lock feature back on or off. Back up the registry or create a restore point before you edit it, so you can undo the change if something goes wrong.

When the lock feature is turned off, you have to sign out of your user account or shut down your PC entirely if you step away. If the change does not show up right away, sign out and back in, or restart the PC, and then check the Start menu and the Ctrl+Alt+Del screen again.

⚠️Edition Limitations
The Local Group Policy Editor (a tool for managing system settings) is only available on Windows 11 Pro, Enterprise, and Education editions. 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 make sure no organization policies are blocking your settings. On a work or school PC, an administrator may manage these settings through policy, and a local change can be overwritten the next time policies refresh. In that case, ask your IT department.

Have a question about this guide?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

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

Leave a Comment

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