Software >> OS >> Windows >> Registry >> How to enable/disable lock computer from registry

To enable 'Lock Computer' button set HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System DisableLockWorkstation=0 (REG_DWORD) To disable 'Lock Computer' button set HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System DisableLockWorkstation=1 (REG_DWORD)