Changing Wake On Lan Settings With Powershell (365 Views)
Reply
Occasional Visitor
TimeBandit
Posts: 1
Registered: ‎09-17-2010
Message 1 of 1 (365 Views)

Changing Wake On Lan Settings With Powershell

We have several 1000's notebooks currently being used and we would like to change the WOL setting on these notebooks using a Powershell script. I have tried but my skills set is limited with Powershell. I have seen were it can be done with a VBScript but nothing Powershell. Below is the lines I am using

$WOLObj = gwmi -namespace "root/hp/instrumentedBIOS" -query "select * from HP_BIOSSettingInterface"

$WOLObj.SetBIOSSetting("WakeOnLan","Disable")

Powershell does not give me any errors but it does not change the settings either. Thx
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation