Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
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 DC8300
Windows 7

Hi Guys,

 

I am trying to set BIOS password using PowerShell/WMI for HP DC8300 Desktop. I could be able to setup other changes to the BIOS such as After Power loss, Boot Order etc using HP_BIOSSettingInterface Class. However, get Access denied return code when run try the following script to setup the password.

 

$BIOS_Config= Get-WmiObject -Namespace root/hp/instrumentedBIOS -Class HP_BIOSSettingInterface -EnableAll
$BIOS_Config.SetBIOSSetting('Setup Password', 'newPasswor', 'currentPassword')  

 

The currentPassword is blank password.

 

Your help would be highly appreciated.

 

Faraz Amjad

2 REPLIES 2
HP Recommended


$passChange= Get -WMIObject -Namespace root\hp\instrumentedBIOS -Class HP_BIOSSettingInterface -ComputerName insertcomputername
$passChange.SetBIOSSetting('Setup Password', '<utf-16/> password')

 

 

 

Using the -ComputerName you can apply the password to any computer on your network.  Ensure you are running powershell as admin.

HP Recommended

I had to slightly modify this script to get it to work on my HP Elite 8300 SFF Desktop.

 

$passChange= Get-WmiObject -computername "Insert Computer name" -Namespace root/hp/instrumentedBIOS -Class HP_BIOSSettingInterface

 

$passChange.SetBIOSSetting('Setup Password', '<utf-16/> InsertPassword')

 

 

In my organization we have many different HP models that are laptops and desktops. My question is, what models will this work with? Will it be different per model?

 

I need to perform the same actions on these models:

 

HP Probook 6475b

HP Probook 6565b

HP Compaq 6005 Pro SFF

 

Any information on how I can get this working for these machines?

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>.