• ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
We have new content about Hotkey issue, Click here to check it out!
Check out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs, VIDEOS AND MORE.
HP Recommended

I'm trying to change the BIOS password of this device using WMI scripts, but the return code is always 6 (Access Denied), I am sure the password is right.

The password configured is the "Setup Password", the "Power-On Password" is empty.

 

The script I am using to change the password is:

 

#Connect to the HP_BIOSSettingInterface WMI class
$Interface = Get-WmiObject -Namespace root/hp/InstrumentedBIOS -Class HP_BIOSSettingInterface

#Change an existing setup password
$Interface.SetBIOSSetting("Setup Password","<utf-16/>" + "NewPassword","<utf-16/>" + "OldPassword")

 

But it returns error code 6

 

This same script works well on some HP Compaq 8100 Elite SFF PC (around 50%), I didn't found differences between the devices.

 

In this device, we have tried to remove the password and put it again, send the password encoded in KBD explained in this forum, and even execute this wrong WMI script to get an error code 5, but it still returns an error code 6:

 

#Connect to the HP_BIOSSettingInterface WMI class
$Interface = Get-WmiObject -Namespace root/hp/InstrumentedBIOS -Class HP_BIOSSettingInterface

#Change an existing setup password
$Interface.SetBIOSSetting("Setup Password","<utf-16/>")

 

 

There is some lock on the BIOS that does not allow me to change the BIOS password with WMI?

Or there is a way to reinstall corrupted HP WMI classes in this computer?

1 REPLY 1
HP Recommended

Hey @koraniar 🙂

 

Thank you for visiting the HP Support Community.

 

According to the Community's Rules of Participation:

 

4d. No posts shall include instructions or directions intended to bypass or subvert security measures, including passwords, locking mechanisms, fingerprint scans, etc., or to bypass any safety measures.

 

Therefore, this topic is being locked. If you would like help resetting the password on your product, please Contact HP support in your region. 

 

Regards,

 

MarcusC

I work on behalf of HP.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.