Users Guide
Setting BIOS attributes using WSMan
You can set BIOS attributes on the systems running Linux using the WSMan. The procedure is explained below using a task of enabling the
Trusted Platform Module (TPM) as an example. For detailed information, see Managing Dell client systems remotely.
NOTE: Make sure the TPM option is cleared in the BIOS before following the procedure to enable the TPM.
1 Get the selector set by enumerating the DCIM_BIOSService class. Run:
wsman invoke –a “SetBIOSAttributes” http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/
DCIM_BIOSService?Name=”DCIM:BIOSService”, SystemCreationClassName=”DCIM_ComputerSystem”,
SystemName=”<system name from DCIM_BIOSService class>”, CreationClassName=”DCIM_BIOSService”
–N root/dcim/sysman –h <system IP/name> –P 5985 –u <user name> –p <password> –y basic –v –
V –k “AttributeName=AdminPwd” –k “AttributeValue=<password>”
2 Set the BIOS password on the system if not set already using the following command:
wsman invoke –a “SetBIOSAttributes” http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/
DCIM_BIOSService?Name=”DCIM:BIOSService”, SystemCreationClassName=”DCIM_ComputerSystem”,
SystemName=”<system name from DCIM_BIOSService class>”, CreationClassName=”DCIM_BIOSService”
–N root/dcim/sysman –h <system IP or system name> –P 5985 –u <user name> –p <password> –y
basic –v –V –k “AttributeName=Trusted Platform Module” –k “AttributeValue=1” –k
“AuthorizationToken=<password>”
3 Enable TPM security using the following command:
wsman invoke –a “SetBIOSAttributes” http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/
DCIM_BIOSService?Name=”DCIM:BIOSService”, SystemCreationClassName=”DCIM_ComputerSystem”,
SystemName=”<system name from DCIM_BIOSService class>”, CreationClassName=”DCIM_BIOSService”
–N root/dcim/sysman –h <system IP or system name> –P 5985 –u <user name> –p <password> –y
basic –v –V –k “AttributeName=Trusted Platform Module Activation” –k “AttributeValue=2” –k
“AuthorizationToken=<password>”
4 Restart the system.
5 Activate the TPM using the following command:
wsman invoke –a “SetBIOSAttributes” http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/
DCIM_BIOSService?Name=”DCIM:BIOSService”, SystemCreationClassName=”DCIM_ComputerSystem”,
SystemName=”<system name from DCIM_BIOSService class>”, CreationClassName=”DCIM_BIOSService”
–N root/dcim/sysman –h <system IP/name> –P 5985 –u <user name> –p <password> –y basic –v –
V –k “AttributeName=AdminPwd” –k “AttributeValue=” –k “AuthorizationToken=<password>”
Changing the boot sequence
To change the boot sequence follow the steps:
:
1 Check for the boot order type (Legacy or UEFI) by using the following command:
• WMIC Command: wmic /namespace:\\root\dcim\sysman path dcim_BootConfigSetting get
ElementName/format:list.
• PowerShell Command: gwmi -namespace root\dcim\sysman -class dcim_BootConfigSetting -Property
ElementName.
2 Check for the current boot order type (Legacy or UEFI) by using the following command:
• WMIC Command: wmic /namespace:\\root\dcim\sysman path dcim_ElementSettingData.IsCurrent=1
get SettingData /format:list .
• PowerShell Command: gwmi -namespace root\dcim\sysman -class dcim_elementSettingData -Filter
"IsCurrent=1" -Property SettingData
.
3 Changing boot-order by using the following command:
• WMIC Command: wmic /namespace:\\root\dcim\sysman path dcim_bootconfigsetting call
ChangeBootOrder /?:full
.
• PowerShell Command: (gwmi -namespace root\dcim\sysman -class
dcim_bootconfigsetting).getmethodparameters("ChangeBootOrder")
.
Using Dell Command | Monitor
21