Reference Guide
Modifying Attributes & BIOS Defaults.
11 Dell Agentless Client Manageability Technical Whitepaper | ID 413
But if the password is set to PASSWORD, for example, then the commands look like
$pwd = ”PASSWORD”
$encoder = New-Object System.Text.UTF8Encoding
$bytes = $encoder.GetBytes($pwd)
$BAI.SetAttribute(1,$bytes.Length,$bytes,"UefiNwStack","Disabled")
The first three commands above encode the plaintext password to bytes, and the SetAttribute() method’s first
argument is 1(Plain Text) instead of 0 (None). The second argument is the length of the byte array, and the
third parameter is the byte array itself which contains the encoded BIOS administrator password.
This is how you can use the rest of the methods to Set, Reset to default value, or Reset to BIOS defaults for
all attributes. For the SetBIOSDefaults method to succeed on UserConf1 or UserConf2, these configurations
must be already saved or created in Setup.