UNSOLVED

Mikey11784

updated

22 days ago

M

Mikey11784

1 Rookie

1 Message

0

2503

January 7th, 2021 09:00

Change BIOS setting with Admin password set

Hello,

Problem 1

I have created a script to make BIOS changes to Dell PC's in my labs, which works well and sets Admin and lockout password at the end of the script.  Although, I'm not thrilled about showing the BIOS password in the script and must delete the script after deployment.

Problem 2

However I do not know enough scripting to make the same changes (run same script) to Pc's that have the Admin and Lockout passwords already set.  All Pc's have the same BIOS password.

I do not want to use this;

si -path DellSmbios:\PostBehavior\Fastboot "Auto" -password "Beer"

I found a few search results that allow me to successfully create an a secure and an encrypted password file, but I don't know how to include or provide the password to my "Set-item" in my script file. 

ConvertTo-SecureString "Beer" -AsPlaintext -Force | ConvertFrom-SecureString | Out-File C:\dell\BIOS-Pwd.txt

I also understand their is a Read.dellBiospassword, but do not know how to use that either.

 

Any help would be great,

Mike