Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Power Options - Disable Prompt for password when computer resumesfrom standby

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 11-02-2008
martinh.reg@gmail.com
 
Posts: n/a
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.

Reply With Quote
  #2  
Old 11-02-2008
Marco Shaw [MVP]
 
Posts: n/a
Re: Power Options - Disable Prompt for password when computer resumesfrom standby

martinh.reg@gmail.com wrote:
> 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
Reply With Quote
  #3  
Old 11-02-2008
Marco Shaw [MVP]
 
Posts: n/a
Re: Power Options - Disable Prompt for password when computer resumesfrom standby

martinh.reg@gmail.com wrote:
> 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
Reply With Quote
  #4  
Old 11-02-2008
J Ford
 
Posts: n/a
RE: Power Options - Disable Prompt for password when computer resumes

There is a cmd line tool in XP SP2 called POWERCFG.EXE that you can set that
option.

:\>POWERCFG.EXE /G OFF /OPTION RESUMEPASSWORD



"martinh.reg@gmail.com" wrote:

> 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.
>

Reply With Quote
  #5  
Old 11-02-2008
J Ford
 
Posts: n/a
RE: Power Options - Disable Prompt for password when computer resu

For the registry location it is:
HKCU\Control Panel\PowerCfg\GlobalPowerPolicy\Policies

However it is a REG_BINARY value that I am not sure how it is broken down.

"J Ford" wrote:

> There is a cmd line tool in XP SP2 called POWERCFG.EXE that you can set that
> option.
>
> :\>POWERCFG.EXE /G OFF /OPTION RESUMEPASSWORD
>
>
>
> "martinh.reg@gmail.com" wrote:
>
> > 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.
> >

Reply With Quote
  #6  
Old 13-02-2008
Jon
 
Posts: n/a
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@gmail.com> wrote in message
news:1c529cde-fefa-434c-b4ae-ededc7fa50a6@i12g2000prf.googlegroups.com...
> 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.


Reply With Quote
  #7  
Old 13-02-2008
Jon
 
Posts: n/a
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

Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Power Options - Disable Prompt for password when computer resumesfrom standby"
Thread Thread Starter Forum Replies Last Post
- How to disable usb power during standby / sleep mode in Lenovo Ideapad Z570 JoJoRun Portable Devices 7 26-11-2011 03:27 PM
Power management grayed out; power options in control panel won't Norika Windows Security 2 04-02-2011 09:41 PM
How to disable the password prompt feature while installing new software in linux Nekeitha Operating Systems 4 19-01-2011 08:03 PM
Command prompt not working and Folder options not showing efyuze Operating Systems 1 25-01-2010 10:23 AM
Why am I asked for password prompt when connecting to a workgroup computer? Dharitree Window 2000 Help 1 12-02-2007 03:50 AM


All times are GMT +5.5. The time now is 09:22 AM.