Other HPE Product Questions
1748156 Members
4165 Online
108758 Solutions
New Discussion юеВ

Re: Powershell script failed for resetting BIOS password on newer HP desktops

 
fraz_pk
Occasional Collector

Powershell script failed for resetting BIOS password on newer HP desktops

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

2 REPLIES 2
Parvez_Admin
Community Manager

Re: Powershell script failed for resetting BIOS password on newer HP desktops

Hi  @fraz_pk  ,

You have reached the wrong company for HP products. 

This community is for customers and friends of Hewlett Packard Enterprise, which is an independent company.

For HP products, you may have to register and post in the HP Support Forums: https://h30434.www3.hp.com/ or Please visit www.hp.com.


Thanks,
Parvez_Admin
I work for HPE
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
CM_Cert_Logo_Color.png
fraz_pk
Occasional Collector

Re: Powershell script failed for resetting BIOS password on newer HP desktops

Ops, my apologies! and thanks for the direction.

Faraz