Hello everyone,
I am trying to set the BIOS power-on password for HP using PowerShell /WMI. By going through the HP Client Management Interface technical white paper from HP, which describes the class and method to accomplish this task, and research. I came to know about the following command. I have set the setup password successfully. but unable to set power-on password.
$Interface = Get-WmiObject -Namespace root/hp/InstrumentedBIOS -Class HP_BIOSSettingInterface
$Interface.SetBIOSSetting("Power-on Password","<utf-16/>" + "pass","<utf-16/>" + "pass")
The command runs successfully, however, it displays the following output with the return code 1
__GENUS : 2
__CLASS : __PARAMETERS
__SUPERCLASS :
__DYNASTY : __PARAMETERS
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
Return : 1
PSComputerName :