Power Management

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Power Management

Post by armsys » Thu Dec 26, 2002 10:33 pm

Hi,

Is it possible to adjust power saving parameters (eg, Turn Off Hard Disk, Turn Off Monitor, System Standby, Monitor Brightness,...etc.) through Macro Scheduler? Many thanks for your help in advance.

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

powercfg windows command changes power settings

Post by adroege » Wed May 19, 2010 2:50 pm

Try using the powercfg windows command like so:

Run>powercfg /???? /???? /?????

Note: fill in the ???? with appropriate settings for your situation


To see all the switches and parameters execute:

c:\>powercfg /?

JeffDaruecan
Newbie
Posts: 18
Joined: Thu Mar 25, 2010 11:00 am
Location: Vancouver

Post by JeffDaruecan » Wed May 19, 2010 4:18 pm

executefile>%sys_dir%\powercfg.exe,?

Enter this into a script and it should pop right up with the list of options you can enter. change the ? parameter accordingly.

Same as adroege said, but this method quickly opens it in macro even if your OS isn't installed on C:/ ;)

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

powercfg is a console application

Post by adroege » Wed May 19, 2010 5:44 pm

executefile>%sys_dir%\powercfg.exe,?
This isn't helpful because powercfg is a console application without a GUI, so all you see is a flash of a black box cmd window opening and then closing. Nothing is left on the screen to look at.

Sure you could make a cmd window open up and then stay open with
cmd /k powercfg /?

But it really is just for reference to see the parms, so I think it's easiest to just open a cmd window manually and type the command. It's located in
Windows\System32 folder by default, and this folder is in the cmd path by default also, so it should be no problem for the OS to find and execute this exe no matter what the current directory is.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts