4 Posts

January 15th, 2021 08:00

Mike,

I might be able to help you.

You need your password and then open powershell 

First run:

Read-Host "Enter Admin Password" -AsSecureString | ConvertFrom-SecureString | Out-File "C:\Temp\Bios.txt" (It will ask you for the password so enter the password)

You now have an encrypted password in the Bios.txt file

If you want to use it you need to have the file on the system. For example C:\Temp\Bios.txt

Now run:

$pw = Get-Content "C:\Temp\Bios.txt" | ConvertTo-SecureString

You now have a variable that you can use in the Dell module. As example:

Set-Item -Path DellSMBIOS:\VirtualizationSupport\TrustExecution enabled -PasswordSecure $pw

Hope this helps you out

Regards,

DJITS

1 Message

February 23rd, 2021 15:00

 Hi,

I'm having an issue with this, when I run this command it sets the admin password as System.Security.SecureString and not what the secure string actually is.

 

In my code we have a password file and a key file. Were using the following code:

$pw = ( (Get-Content $PasswordFile) | ConvertTo-SecureString -Key (Get-Content $KeyFile) )

Later we go to use that $pw 

Set-Item -Path DellSMBIOS:\Security\Adminpassword $pw

The admin password then sets to "System.Security.SecureString"

26 Posts

February 24th, 2021 06:00

I have the same issue....password will become: "System.Security.SecureString"

No Events found!

Top