• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Ready to level up? Join the Expert Program—
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
HP Recommended
HP Compaq 8100 Elite SFF PC
Microsoft Windows 10 (64-bit)

I'm trying to change the BIOS language (or any other setting) of this device using WMI scripts, but the return code is always 6 (Access Denied) with the right password.

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

 

The script I am using to change the setting is:

 

$Interface = Get-WmiObject -Namespace root\HP\InstrumentedBIOS -Class HP_BIOSSettingInterface

#Set a specific value for a specific setting when a BIOS password is set
$Interface.SetBIOSSetting("Setup Language", "English", "<kbd/>" + "020304050607")  

 

The password is "123456", I am parsing the password using this method, but the error code is 6.

 

In this device, we have tried to remove the BIOS password and put it again, send the password encoded in "<utf-16/>" (even when I am sure the encoding of this device is KBD), but the script only works when the BIOS does not have a Setup Password set.

 

There is some lock on the BIOS that does not allow me to change the BIOS configurations with WMI when the BIOS has a password set?

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

 

Thanks in advance 😄

Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† 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>.