Disable computer lock on "wake-up"

  • Thread starter Thread starter VijayS
  • Start date Start date
V

VijayS

Upon waking up from Hibernation and standby my XPe computer asks for
the administrator password to unlock the computer. The system by
default logs into the administrator account. If I logged in with a user
account, would the computer not lock?

As users will not have a keyboard to enter the password, I want to stop
the computer being locked altogether. How can I do this?

I've looked through security policies for the machine, but cannot find
the right parameter.

Thanks,

-V
 
VijayS,

I assumed you've got ACPI HAL (otherwise you wouldn't play with Hibernation on the target).
If you go to Power Options Control Panel applet and switch to "Advanced" tab there you will see "Prompt for password when computer
resumes from standby" option. You have to uncheck the flag.

You can set this option:
- manually at run time
- through registry value ([HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power\DcPolicy],
[HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power\AcPolicy]). You would probably better off clear up the option on XP Pro
and grab the registry values to put them in your XPe image.
- through API to change the global user policy (SetActivePwrScheme,
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/power/base/setactivepwrscheme.asp, the EnablePasswordLogon contant
of the GLOBAL_USER_POWER_POLICY.GlobalFlags flag ,
http://msdn.microsoft.com/library/d...y/en-us/power/base/global_flags_constants.asp)
 
Thanks KM,

I did the first option and installed the Power Meter Control Panel
component.

I'll try the run-time solution next version because I'll want to change
what the power button does while the XPe system is running.
 
Back
Top