Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Scripting for power scheme settings?

HTVi
TV Discussion Newsgroups

Scripting for power scheme settings?
"Linn Kubler" <lkubler[ at ]chartwellwisc2.com> 6/11/2007 3:23:55 PM
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


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen