PC Review


Reply
Thread Tools Rate Thread

Automatic Logon after resuming from Hibernation

 
 
emkay
Guest
Posts: n/a
 
      12th Apr 2005
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.

 
Reply With Quote
 
 
 
 
Slobodan Brcin \(eMVP\)
Guest
Posts: n/a
 
      12th Apr 2005
emkay,

Try disabling option and record registry value affected:

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

Regards,
Slobodan


"emkay" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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.
>



 
Reply With Quote
 
emkay
Guest
Posts: n/a
 
      12th Apr 2005
I tried using regmon but could not make much sense out of it.

Best Regards,
MK
Vlead

 
Reply With Quote
 
Slobodan Brcin \(eMVP\)
Guest
Posts: n/a
 
      12th Apr 2005
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

"emkay" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I tried using regmon but could not make much sense out of it.
>
> Best Regards,
> MK
> Vlead
>



 
Reply With Quote
 
KM
Guest
Posts: n/a
 
      12th Apr 2005
emkay,

Some solutions were suggested in this thread:
http://groups-beta.google.com/group/...e7bb9e6596e77a

KM

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



 
Reply With Quote
 
emkay
Guest
Posts: n/a
 
      12th Apr 2005
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

 
Reply With Quote
 
KM
Guest
Posts: n/a
 
      12th Apr 2005
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
>



 
Reply With Quote
 
KM
Guest
Posts: n/a
 
      12th Apr 2005
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/de..._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
> >

>
>



 
Reply With Quote
 
emkay
Guest
Posts: n/a
 
      12th Apr 2005
The following registry key solved my problem:

[HKCU\ControlPanel\PowerCfg\GlobalPowerPolicy]

MK
Vlead

 
Reply With Quote
 
KM
Guest
Posts: n/a
 
      13th Apr 2005
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 :-)

--
Regards,
KM, BSquare Corp.


> The following registry key solved my problem:
>
> [HKCU\ControlPanel\PowerCfg\GlobalPowerPolicy]
>
> MK
> Vlead



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows entere hibernation, after resuming from hibernation, only when idle cheeto81 Windows XP Help 0 6th Jan 2007 03:39 PM
Resuming from hibernation =?Utf-8?B?U2hhbmUgTWVhZ2hlcg==?= Windows XP General 1 18th Apr 2006 11:02 PM
Problems resuming from hibernation Jeff Windows XP General 0 8th Aug 2005 11:05 AM
trouble resuming from hibernation xp yaffe Windows XP Help 1 17th Nov 2004 05:22 PM
Resuming from hibernation CB Windows XP General 5 13th Jul 2003 10:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:29 PM.