Need some help here with a Bios change via PS for HP Elitedesks…serious inquiries only.

Trying to change the Bios setting for HP Elitedesk; script runs and shows a return : 4. It appears to run fine but when I reboot the machine and go into the BIOS, the setting has not changed. Ruled out Group Policy setting preventing the change. Can anyone give me a hand here? The setting is for the “After Power Loss” and switch it to “Power On” as the default is “Power Off”:

$AfterPower= Get-WmiObject -Class HP_BIOSSettingInterface -Namespace roothpInstrumentedBIOS

$AfterPower.SetBIOSSetting (‘After Power Loss’,’On ‘)

submitted by /u/sirrealjames
[link] [comments]

Leave a Reply