How i can disable Screen lock feature in Windows XP instantly?
I tried importing this to registery:
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System] "DisableLockWorkstation"=dword:00000001 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] "DisableLockWorkstation"=dword:00000001
But this doesn't work and user can still lock the computer.
I tried this on Windows 7 and surprisely it works fine!
Note: I know it can be done easily with
gpedit.msc and editing Group Policy setting, but I need a solution that can be done programatically easily (like registry modifying).
Note2: The solution should disable/enable lock feature instantly. It should not need any logoff/reboot to take effect. The registery editing work fine and immediately in Win7 but it doesn't work in my Windows XP.
I figured out when i disable
Fast User Switching feature, the problem solves and i can disable/enable
Lock feature instantly (the registry way).
But the question still holds when the
Fast User Switching is not disabled.