Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: View/Change Power Plan via Registry?

10 Sep 2011   #1
kornfan71

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
.
11 Sep 2011   #2
SIW2

Microsoft Community Contributor Award Recipient

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
11 Sep 2011   #3
kornfan71

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
.

12 Sep 2011   #4
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

You're welcome.
My System SpecsSystem Spec
Reply

 View/Change Power Plan via Registry?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Power Plan Settings - Change
How to Change Power Plan Settings in Windows 7 This will show you how to change the settings for the power plan that you have selected to reflect how you want your Windows 7 computer to manage power usage. Here's How: 1. Open the Start Menu, and type powercfg.cpl in the search...
Tutorials
Trying to change Power Plan details
Always get a message "Your power plan information isn't available". I can change the plan (normal one is Balanced) and I can see it change (radio buttons that is), but I can never look at any plan itself. System is shutting off the monitor (video that is) and there is no way to change the...
Hardware & Devices
How can I change power plan and run scripts based on power state?
I overclock my CPU by changing its FSB and I have scheduled (Task Scheduler) this script to run every time I logon to Windows. But I would like to schedule it to downclock when I pull the power cord and then overclock as I plug it back in. Is this possible? It would also be nice if Windows changed...
General Discussion
Power Plan - Create Shortcut to Change Power Plan
How to Create a Shortcut to Change Power Plans in Windows 7 and Windows 8 This tutorial will show you how to create or download shortcuts that will allow you to change or switch to the High Performance, Balanced, Power Saver, or a custom power plan instantly without having to go through Power...
Tutorials
Changing power plan also change wallpaper.
Hello to all, As my title says i just want to do that particular thing, if possible. I have a samsung laptop that has a preintalled program that changes to silent mode(low consumption)- normal mode and speed mode (high cunsuption plan). When i change to low or high plan i want to also change to...
Themes and Styles
Do a registry change to power down usb devices after safely remove?
hello, is it very highly recommended to do a registry change - USB Port Remains Active for Disabled or Safely Removed USB Device to power down usb devices like external hard drives after clicking safely remove on windows 7? Any problems with external hard drives while on that amended...
Hardware & Devices


Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 03:21.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App