cancel
Showing results for 
Search instead for 
Did you mean: 
Faraz_pk
New member
6 2 0 0
Message 1 of 1
342
Flag Post

Powershell script failed for resetting BIOS password on newer HP desktops

HP Recommended
HP Prodesk 600 G1 and above, PowerShell
Microsoft Windows 10 (64-bit)

Hi guys,

 

The following script works perfectly on the older HP business pro machines such as HP  7900, 8100, 8300 desktops.


$Bios = Get-WmiObject -class HP_BIOSSettingInterface -Namespace "root\HP\InstrumentedBIOS" -ComputerName "xxx"
$Bios.SetBIOSSetting('Setup Password', '<utf-16/>test', '<utf-16/> ')

 

However, the script is unsuccessful with the newer machines such as HP Prodesk 600 G1, G2, G3, here is the output from the script. 

 

__GENUS : 2
__CLASS : __PARAMETERS
__SUPERCLASS :
__DYNASTY : __PARAMETERS
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
Return : 32768 (Failure)
PSComputerName :

 

So, kindly help me on this matter.

 

Faraz

Warning Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".
† 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