Automatic Logon after resuming from Hibernation

E

emkay

I have created a XP embedded image with a custom shell. I am using the
Automatic Logon component to logon automatically. This works fine if it
is a fresh boot but if I see the logon box after I hibernate and resume
my system. Is there any specific registry key that can make this logon
box go away? I am aware of the manual way to achieve this from the
"Power Options properties" but I need a automated solution to this. I
am using WinLogon.
 
S

Slobodan Brcin \(eMVP\)

emkay,

Try disabling option and record registry value affected:

Power Options Properties->Prompt for password when computer resumes from
standby.

Regards,
Slobodan
 
S

Slobodan Brcin \(eMVP\)

Use filter option in regmon to filter out only successful writes.
Open power dialog uncheck box. Clear all garbage from regmon.
Press apply on power dialog. And stop regmon from accumulating more changes.

You will find some nasty binary entries with Policy/Policies in their name
but you will have to figure out how and what to change.

Some API function would be better for this but you will need to find it.
Also try gpedit.msc there might be simpler alternative there.

Regards,
Slobodan
 
E

emkay

This is the registry key that's needed to prevent the login box from
coming up after resuming from standby/hibernation:

[HKCU\Control Panel\PowerCfg\GlobalPowerPolicy]

MK
Vlead
 
K

KM

emkay,

You can also use powercfg.exe tool ("Power Configuration Tool" component).
Something like the following would do the job: "powercfg.exe /GLOBALPOWERFLAG on /OPTION RESUMEPASSWORD"
 
K

KM

I meant "powercfg.exe /GLOBALPOWERFLAG off /OPTION RESUMEPASSWORD" :)
^^^

Btw, you can always do the same through API. Just make sure to disable EnablePasswordLogon global flag in GLOBAL_USER_POWER_POLICY
structure with WriteGlobalPwrPolicy call.
http://msdn.microsoft.com/library/d...y/en-us/power/base/global_flags_constants.asp

--
Regards,
KM, BSquare Corp.

emkay,

You can also use powercfg.exe tool ("Power Configuration Tool" component).
Something like the following would do the job: "powercfg.exe /GLOBALPOWERFLAG on /OPTION RESUMEPASSWORD"

--
Regards,
KM, BSquare Corp.

This is the registry key that's needed to prevent the login box from
coming up after resuming from standby/hibernation:

[HKCU\Control Panel\PowerCfg\GlobalPowerPolicy]

MK
Vlead
 
E

emkay

The following registry key solved my problem:

[HKCU\ControlPanel\PowerCfg\GlobalPowerPolicy]

MK
Vlead
 
K

KM

emkay,

I know. I was just saying that it is the reg.key that gets modified by the command line utility or by the API I mentioned above :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top