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: changing the power options from the command line

11 May 2011   #1
bethy1234

windows 7
 
 
changing the power options from the command line

I have found a method from this very site which when this command, "C:\Windows\System32\powercfg.exe /setactive a1841308-3541-4fab-bc81-f71556f20b4a" is attached to a shortcut icon, will change the power plan when i click on the shortcut icon. What I require to do now is somehow issue that very command from the command line, as i ultimately want it a a line in a bat file. However, the command does noting when typed at the command line. Anybody got any ideas as to how to get this to work?

Thanks

Andy


My System SpecsSystem Spec
.
11 May 2011   #2
Brink

64-bit Windows 10 Pro
 
 

Helly Andy,

You almost have it. You would just need to do it without the quotes instead.

C:\Windows\System32\powercfg.exe /setactive a1841308-3541-4fab-bc81-f71556f20b4a

Power Plan - Create Shortcut to Change Power Plan
My System SpecsSystem Spec
11 May 2011   #3
bethy1234

windows 7
 
 
Re:power plan command line

Hi Brink,

Yes indeed, you are correct.

Thanks - sorted
My System SpecsSystem Spec
.

11 May 2011   #4
Brink

64-bit Windows 10 Pro
 
 

You're most welcome Andy.
My System SpecsSystem Spec
Reply

 changing the power options from the command line




Thread Tools




Similar help and support threads
Thread Forum
Command Line - Help
Hi Guy's and Girls, Just first off I've never been too good with CMD and only an Apprentice in my company I work for. Now something I've wanted to do for awhile was to make the following but I don't necassirealy I know how to do this in one batch file: I would need a Batch file that is...
General Discussion
Command Line Task Scheduler Power Options
Hi everyone, I was trying to create a scheduled task via command line (schtask.exe) and I want it to run regardless of whether the user is on battery power or on AC power. I created an event and it runs fine on AC power but when I try it on the battery power, it doesn't work. I checked the task...
General Discussion
add folders in indexing options using registry or command line?
Hello, I'm trying to add folders in the indexing options by using either registry or command lines. This is for an unattended silent install. Any ideas ? Thanks.
Performance & Maintenance
Outlook 2010 Command-Line Switches & options
Friends I have a situation similar to or exactly same as described in this long ugly chronicle, apparently a flaw in Outlook 2010 which MS doesn't or didn't ack Complete Outlook 2010 Lock-Up when accessing archive pst files What I specifically am asking help with is a command-line-based way of...
Browsers & Mail
How to set Advanced options in Power Options (64 bit Ultimate)
I have an older Belkin F6C1500-TW-RK UPS and the mfg has not offered software management for the Win 7 64bit OS. I want to let Win 7 manage the battery and shutdown. I set the High Performance under Power Options to turn off display and put the computer to sleep after 3 minutes as a test. I yanked...
Performance & Maintenance
Command Line
Is there a cmd.exe /switch for “run as administrator” ? Thanks-
General Discussion


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 08:47.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App