-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Desktops
- Desktop Software and How To Questions
- Setting Bios password through powershell

Create an account on the HP Community to personalize your profile and ask a question
05-12-2021 04:01 PM
Trying to create a powershell script that will set my bios password.
#Sets BIOS password
$passChange= Get-WMIObject -Namespace root\hp\instrumentedBIOS -Class HP_BIOSSettingInterface -ComputerName $env:computername
$passChange.SetBIOSSetting('Setup Password', '<utf-16/> Password')
I am getting the following returned when I run it:
__GENUS : 2
__CLASS : __PARAMETERS
__SUPERCLASS :
__DYNASTY : __PARAMETERS
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
Return : 5
PSComputerName :
Solved! Go to Solution.
Accepted Solutions
05-13-2021 12:37 PM
We're not permitted, by forum policy, to provide any assistance on means of changing passwords.
I am a volunteer and I do not work for, nor represent, HP
05-13-2021 12:37 PM
We're not permitted, by forum policy, to provide any assistance on means of changing passwords.
I am a volunteer and I do not work for, nor represent, HP
05-13-2021 12:40 PM
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