• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Are you having HotKey issues? Click here for tips and tricks.
Check out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs, VIDEOS AND MORE.
HP Recommended
hp elite x2 1012 g2
Microsoft Windows 10 (64-bit)

I want to change a parameter in the bios which is password protected;
with this code it works fine


$Password = "<utf-16/>"+"mypassword"
$BIOS=gwmi -class hp_biossettinginterface -Namespace "root\hp\instrumentedbios"
$result = $BIOS.SetBIOSSetting("NumLock on at boot", "Enable", "$Password")


but I don't want to use clear password, I want to use encrypted password, how to do this please

Thank you.

1 REPLY 1
HP Recommended

@Badidou -- try searching the Internet: https://www.bing.com/search?q=windows+powershell+encrypt+file

 

for hints on using PowerShell.

 

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