My question is what int represents the ASCII password encoding? I looked into the MOF of the method and to be honest I did not understand its explanation.
Please make sure the parameters you are passing to SetBIOSAttributes are correct.
1st and 2nd parameters are always $null.
3rd parameter is the value of AttributeName from DCIM_BIOSEnumeration class, and 4th parameter is anyone of the value from PossibleValues property of same class and instance.
If there is any bios password already exist on system, provide that as 4th parameter, otherwise you can keep it $null or leave this parameter itself.
@MBallin, Can you provide the system and setup configuration details so that we could investigate into the issue. It should cover importatnt information like the system model number, BIOS version, OS version. Also If you could dump the SMBIOS table and attach the same to the post would be very helpful.
Prasanna Jayabal
1 Rookie
•
16 Posts
1862
0
Posted October 7th, 2013 22:00
Hi MBALLIN,
DCIM_BIOSService doesn't SetBIOSAttribute method. It support only SetBIOSAttributes.
Powershell command to set BIOS attribute value using DCIM_BIOSService.SetBIOSAttributes is as follow,
(Get-WmiObject -ComputerName $ComputerName -Namespace root/dcim/sysman -Class DCIM_BIOSService).SetBIOSAttributes($null, $null, , , )
Example:
$ComputerName = $env:COMPUTERNAME
(Get-WmiObject -ComputerName $ComputerName -Namespace root/dcim/sysman -Class DCIM_BIOSService).SetBIOSAttributes($null, $null,"Num Lock","2","dell")
Thanks/Prasanna