Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - View/Change Power Plan via Registry?

 
09-10-2011   #1


Windows 7 Home Premium x64
 
 

View/Change Power Plan via Registry?

Hello all,
I'm working on a little Visual Basic .NET program that simply changes the power plan based upon the AC power status and battery percentage status (something that Windows 7 should already do...)
Anyway, it's coming along well enough, except that I need to have my program run the 'powercfg' command line utility to change plans. I have yet to find a way for my program to determine which plan is in use.
Is there a registry key that changes the current power plan or something similar, or do I need to play around with grabbing outputs from the command line?

Thanks in advance!

My System SpecsSystem Spec
09-11-2011   #2


Vista x64 / 7 X64
 
 


You can find which is the current plan here:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\Default\PowerSchemes]
"ActivePowerScheme"="381b4222-f694-41f0-9685-ff5bb260df2e"

For the description:

D:\Windows\System32>REG QUERY HKLM\SYSTEM\CurrentControlSet\Control\Power\User\D
efault\PowerSchemes\381b4222-f694-41f0-9685-ff5bb260df2e

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\Default\PowerSche
mes\381b4222-f694-41f0-9685-ff5bb260df2e
Description REG_EXPAND_SZ @%SystemRoot%\system32\powrprof.dll,-14,Auto
matically balances performance with energy consumption on capable hardware.
FriendlyName REG_EXPAND_SZ @%SystemRoot%\system32\powrprof.dll,-15,Bal
anced (recommended)
My System SpecsSystem Spec
09-11-2011   #3


Windows 7 Home Premium x64
 
 


GAH!

Thank you!!!
This is going to be a whole lot easier now!

(I can't believe I didn't see that...)
My System SpecsSystem Spec
.


09-12-2011   #4


Vista x64 / 7 X64
 
 


You're welcome.
My System SpecsSystem Spec
Reply

 View/Change Power Plan via Registry? problems?



Thread Tools



Similar Threads for: View/Change Power Plan via Registry?
Thread Forum
Power Plan Settings - Change Tutorials
Power Plan - Create Shortcut to Change Power Plan Tutorials
Power Plan not functioning Performance & Maintenance
Power plan Performance & Maintenance
Power Options/Power plan settings? Performance & Maintenance


All times are GMT -5. The time now is 06:37 PM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30