locked
how to use powercfg to affect the CURRENT power scheme without assuming you know the name RRS feed

  • Question

  • I asked this on the other forum and got a moronic link by some moron who just did a bing search and blindly gave me the other two KB articles that were irrelivant to the question, so I thought I'd ask here.

    http://answers.microsoft.com/en-us/windows/forum/windows_xp-desktop/using-powrcfg-to-change-the-current-power-scheme/62f480bc-cb09-4da0-a90a-00412484f675?page=1&tm=1329016753407#footer

    The moron gave me these links:

    http://support.microsoft.com/kb/915160

    http://support.microsoft.com/kb/913622

    Here's the question,

    How do I use powercfg to change the time before the monitor blanks in the current power scheme, whatever that may be?

    In Vista, you use
    powercfg -change -monitor-timeout-ac 10

    This does NOT work in XP. I can NOT find a page detailing powercfg for XP, but I found one for Server 2003. It seems to indicate I need to include a /X somewhere, but I'll be darned if I can figure out how to get it to work.
    http://support.microsoft.com/kb/324347
    I also found this page that seems to indicate the same thing
    http://ss64.com/nt/powercfg-xp.html

    However, powercfg /? seems to indicate that /X is the same as /CHANGE
    /CHANGE, /X     Changes settings of the specified power scheme. Additional
                        switches specify the changes as follows:
                            /monitor-timeout-ac <minutes>
                           ==SNIP irrelivant options==
                        DC settings are used when the system is on battery power.
                        ==SNIP irrelivant options==
        /EXPORT, /E     Exports the power scheme with the specified name to a



    Could somebody please link me to the WINDOWS XP help file for powercfg? All I can find is the server2003 and the Vista version, and the Vista version is worse than useless.
    THIS LINK WILL NOT HELP ME: http://technet.microsoft.com/en-us/library/cc748940%28v=WS.10%29.aspx

    Alternately, please tell me how to get the same effect as
    powercfg -change -monitor-timeout-ac 10

    Here's the goal
    I'm trying to deploy a bunch of one line batch files into a toolbar (still trying to figure out how to get the toolbar named "sb" onto the taskbar of all users) named things like "1 minute", "5 minutes", "10 minutes", "30 minutes" and so on, to include 45, 1 hour, and 2 hours so anybody can change the amount of time before the monitor blanks at will. Only the admin will be able to choose more than "2 hours". The method isn't important, just as long as everyone has a nice quick menu to change the blank time. It can be done with the plug icon for changing power schemes, or with a small toolbar named SB right next to the notification area, doesn't matter to me as long as I get the job done.


    • Edited by SlickRCBD Sunday, February 12, 2012 3:25 AM
    Sunday, February 12, 2012 3:23 AM

All replies

  • Dude I believe this is in the registry

    HKCU\Control Panel\PowerCfg "CurrentPowerPolicy" then you give this a value of between 1 - 5 so what I would suggest to get the setting you want, is to manually set the power config to what you want, then inspect the registry export this key then use a tool like "NUTS" to create a custom .ADM file which you can then create your own GPO.

    Remember to please vote if helpful. Thanks

    Monday, February 13, 2012 9:52 PM
  • I'm sick with a sinus infection I've had since the 4th, I'm not going to worry about this until either the weekend or when I feel better. I'm going to bed early tonight.

    Sorry, I won't be replying until the weekend.

    Tuesday, February 14, 2012 12:08 AM