MSEndpointMgr / ModernBIOSManagement

MIT License
45 stars 22 forks source link

Support for multiple BIOS passwords #12

Open amitgulyani opened 2 years ago

amitgulyani commented 2 years ago

We have multiple BIOS passwords (different BIOS passwords for different sites), will this script support this scenario? If not, how can we get it working?

Stuart42 commented 2 years ago

Since not every HP flash utility supports being passed a password, we ended up adding a password removal step in our task sequence before applying HP BIOS', then a password add step after the reboot.

Stuart42 commented 2 years ago

We ended up finding not every model removes the password successfully, so we ended up forking the HP script and adding support for a password parameter that leverages the HpqPwd utility present in every BIOS package we've seen. This generates a password bin file on the fly from the supplied password and uses that with the HP upgrade tool.

https://github.com/MSEndpointMgr/ModernBIOSManagement/blob/e236dc52006642f395c445a680408db4043a5806/Invoke-HPBIOSUpdate.ps1