Torgeir
Wed Jul 20 09:23:16 CDT 2005
Mooka wrote:
> Hello all,
>
> I'm trying to write a script to enable the power management features for a
> NIC, specifically to enable:
>
> allow the computer to turn off this device to save power
> allow this device to bring the computer out of standby
> Only allow management stations to bring the computer out of standby
>
> I have had a look thru WMI and cannot locate a value I can manipulate. This
> needs to be changed on 1000's of computers... Can it be scripted?
>
> Thanks in advance,
>
> John
>
Hi,
For the "Allow this device to bring the computer out of standby"
setting only:
SP2 for WinXP includes a new command line utility powercfg.exe that
can configure this setting.
This command line enables it for my NIC on my computer:
powercfg.exe /DEVICEENABLEWAKE "3Com 3C920 Integrated Fast Ethernet
Controller (3C905C-TX Compatible)"
This command will list out the strings you need to use for the
/DEVICEENABLEWAKE parameter:
powercfg.exe /DEVICEQUERY wake_programmable
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx