I've used regmon.exe to check which registry entries get modified when
you apply the setting change but it is not clear which registry key is
for the "Disable Prompt for password when computer resumes from
I've also had a look through the WMI classes and although there is a
Win32_PowerManagementEvent class, I can't spot anything that looks
relevant to this setting.
POWERCFG /GLOBALPOWERFLAG on /OPTION RESUMEPASSWORD
POWERCFG /GLOBALPOWERFLAG off /OPTION RESUMEPASSWORD
This might help you pinpoint the registry changes, or just use
wscript.shell or call it directly from PowerShell to modify.
Microsoft MVP - Windows PowerShell
:\>POWERCFG.EXE /G OFF /OPTION RESUMEPASSWORD
However it is a REG_BINARY value that I am not sure how it is broken down.
ScreenSaverIsSecure (reg_sz type) - values 0 or 1
It may be similar on XP.
but you'll probably need more than a registry change, for it to take effect.
<marti...@gmail.com> wrote in message