Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wake On lan Script

Status
Not open for further replies.

muralisai25

IS-IT--Management
Jul 20, 2002
51
US
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?
>
 
• Power management settings are user specific. This could, therefore, have roaming profile implications.
• Power management settings are held in the registry. These registry settings live in both the Machine and User areas of the registry.
? HKLM\Software\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg
? HKLM\System\CurrentControlSet\Control\Session Manager\Power
? HKCU\Control Panel\PowerCfg
• In order to configure power management the user context needs to have permissions to the appropriate registry keys.

Microsoft has supplied a command line utility, powercfg.exe, to manage power schemes. Most online documentation illustrates the use o powercfg.exe at logon to manage power management in the enterprise. The use of powercfg.exe is described in Microsoft’s KB324347.

It is possible to modify the registry directly. However, in order to configure power management fully, after one has modified the registry one needs to inform windows that something in its environment has changed. This can be done using Win32 API calls.

Microsoft has provided a power management API. This gives access to setting which are not available via the control panel.
 
Muralisai25 - Did you get this to work using powercfg or another tool? Please share - I need to do the same...

 
in addition, the motherboard must support wake on lan feature, which i'm sure, you know, it's obvious.
 
Hi Barny,
Yes i know and it does support the wake on lan feature, else i would not bother to make this work :)

Mark07,
yes i have simple batch script that uses the powercfg tool to change this setting and works like a charm in windows "XP" only. Unfortunatly i have about 4000 PC's running Windows 2000 and like 500 with XP. I only wish MS or someone has a simple solution or a workable solution for this.
Thank you all. Keep me posted if you guys find anything :)
Cheers!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top