Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Power Options - Disable Prompt for password when computer resumesfrom standby

Reply
 
Old 02-10-2008   #1 (permalink)
martinh.reg


 
 

Power Options - Disable Prompt for password when computer resumesfrom standby

Is there any way to script enabling and disabling of this setting on
the Advanced tab of the Power Options control panel applet? The script
needs to apply to Windows XP Professional SP2.

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
standby" setting.

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.

My System SpecsSystem Spec
Old 02-11-2008   #2 (permalink)
Marco Shaw [MVP]


 
 

Re: Power Options - Disable Prompt for password when computer resumesfrom standby

martinh.reg@xxxxxx wrote:
Quote:

> Is there any way to script enabling and disabling of this setting on
> the Advanced tab of the Power Options control panel applet? The script
> needs to apply to Windows XP Professional SP2.
>
> 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
> standby" setting.
>
> 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.
To enable:
POWERCFG /GLOBALPOWERFLAG on /OPTION RESUMEPASSWORD
To disable:
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.

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 02-11-2008   #3 (permalink)
Marco Shaw [MVP]


 
 

Re: Power Options - Disable Prompt for password when computer resumesfrom standby

martinh.reg@xxxxxx wrote:
Quote:

> Is there any way to script enabling and disabling of this setting on
> the Advanced tab of the Power Options control panel applet? The script
> needs to apply to Windows XP Professional SP2.
>
> 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
> standby" setting.
>
> 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.
To enable:
POWERCFG /GLOBALPOWERFLAG on /OPTION RESUMEPASSWORD
To disable:
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.

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 02-13-2008   #4 (permalink)
Jon


 
 

Re: Power Options - Disable Prompt for password when computer resumes from standby

Registry key on Vista is

ScreenSaverIsSecure (reg_sz type) - values 0 or 1

at

HKEY_CURRENT_USER\Control Panel\Desktop

It may be similar on XP.

but you'll probably need more than a registry change, for it to take effect.

--
Jon





<martinh.reg@xxxxxx> wrote in message
news:1c529cde-fefa-434c-b4ae-ededc7fa50a6@xxxxxx
Quote:

> Is there any way to script enabling and disabling of this setting on
> the Advanced tab of the Power Options control panel applet? The script
> needs to apply to Windows XP Professional SP2.
>
> 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
> standby" setting.
>
> 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.
My System SpecsSystem Spec
Old 02-13-2008   #5 (permalink)
Jon


 
 

Re: Power Options - Disable Prompt for password when computer resumes from standby

Sorry ignore that one. I misread your question - that was for resume after
screen savers. Use powercfg as Marco suggested

--
Jon

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Solved Power Options Corrupt (power plan unavailable) General Discussion
Useful tool for power enthusiasts on the go (advanced power options) General Discussion
Power Management/Power Options in Vista Vista General
Changed Power Options now computer will not wake up. Vista General
Standby And hibernate options gone! Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46