-
1
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
1
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Archived Topics
- Desktops (Archived)
- Setup BIOS password using PowerShell/WMI

Create an account on the HP Community to personalize your profile and ask a question

12-28-2014 10:56 PM
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
05-07-2015 11:58 AM
$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.
02-05-2016 01:52 AM - edited 02-05-2016 02:15 AM
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?
