-
×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
07-06-2021 03:02 PM
Hello, I am trying to set my bios password through powershell as a test in order to deploy this for multiple computers in our organization.
My computer is a HP EliteDesk 800 G5 SFF
#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 :
07-06-2021 03:08 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,
MayS.