|
|
Hi,
I wrote a little script to set the power settings of my user's computers but am having trouble getting it to work the way I want it to. Here is the script:
powercfg /c cmw powercfg /s cmw powercfg /x cmw /monitor-timeout-ac 25 /disk-timeout-ac 0 /standby-timeout-ac 0 /monitor-timeout-dc 10 /disk-timeout-dc 10 /standby-timeout-dc 15 powercfg /h off powercfg /g off /option:resumepassword powercfg /setactive cmw
This runs if I run it as the administrator but as a normal user I don't have rights make these adjustments. I tried to use it as a scheduled task running during boot up as system but only the lines: powercfg /h off powercfg /g off /option:resumepassword
work. Presumably this is because creating and modifying a power scheme is a user level change and the system does not have that context.
Anyone have experience with this or any ideas how to make it work? Or is there a better approach?
Does anyone know a command line tool that will also let me set the "When I press the power button on my computer:" option?
BTW, this is primarilly for Windows XP sp2 but Windows 2000 solutions are welcome as well.
Thanks in advance, Linn
|
|
|