Using Regedit to change Power Schemes

  • Thread starter Thread starter flahmeshess
  • Start date Start date
F

flahmeshess

I use regedit to change the power scheme. When I open Control Panel -
Power Options, I saw that while the name of the scheme has been
change, the values (eg System Standby) are not changed. It still
retains the values of the previous scheme.

I then went back to the registry and saw that the values of the new
scheme is also changed to the previous scheme. (it's was the case
before I open Control Panel -> Power Options).

Eg. I have 2 scheme, SleepMode and WakeMode.

I use registry to change from WakeMode to SleepMode. From the
registry, I saw that the number HKEY_CURRENT_USER\Control Panel
\PowerCfg has been change to point to the SleepMode. I check the
SleepMode scheme (HKEY_CURRENT_USER\Control Panel\PowerCfg
\PowerPolicies\6) and it's OK (meaning that it have the values for
Sleep).

When I open Control Panel -> Power Options, I see that the scheme is
changed to SleepMode but the values are still WakeMode. I then go
back to the registry and saw that the values in the SleepMode has been
changed to WakeMode. So now SleepMode inherited the values of
WakeMode. And it seems like Power Options changed the values in
SleepMode to WakeMode.

Anything I did wrong ? Thanks.
 
If you are going to try to do the changes via the registry the way to do
it is to do the changes in the Control Panel's Power Options applet then
export the contents of the HKEY_CURRENT_USER\Control Panel\PowerCfg key.
If you want to save different schemes do the changes again and then
export the contents of the HKCU key again and save it under a different
name. Then when you want to do changes instead of manually doing
changes in the registry just merge the proper .reg file.

John

PS. I'm 99.99% sure that Server 2003's powercfg.exe works on Windows
2000. Someone close to you must have a Server 2003 at work, you could
"borrow" it and try it to see if it works.
 
John, I've solved the problem.

Rundll32.exe powrprof.dll,LoadCurrentPwrScheme

Thanks very much.
 
And I thought that only worked on W9x... you learn something new every
day! Thanks for the follow-up and for letting us know how you got it to
work.

John
 
Back
Top