Created
July 5, 2013 08:12
-
-
Save quark-zju/5932871 to your computer and use it in GitHub Desktop.
Lock Windows.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem Enable Win+L, Lock Windows, Disable Win+L. | |
rem Useful as a workaround to disable Win+L while being able to lock. | |
rem This makes sence if you are using Win+L for other purpose, for example, use Win+L inside a virtual Linux system. | |
rem Run this as Administrator. If it is annoying, try UAC Trust shortcut from www.itknowledge24.com | |
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableLockWorkstation /t REG_DWORD /d 0 /f | |
rundll32 user32.dll,LockWorkStation | |
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableLockWorkstation /t REG_DWORD /d 1 /f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment