changing the power options from the command line


  1. Posts : 74
    windows 7
       #1

    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 Computer


  2. Posts : 72,052
    64-bit Windows 11 Pro for Workstations
       #2

    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 Computer


  3. Posts : 74
    windows 7
    Thread Starter
       #3

    Re:power plan command line


    Hi Brink,

    Yes indeed, you are correct.

    Thanks - sorted
      My Computer


  4. Posts : 72,052
    64-bit Windows 11 Pro for Workstations
       #4

    You're most welcome Andy. :)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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:09.
Find Us