Reference Guide

Modifying Attributes & BIOS Defaults.
10 Dell Agentless Client Manageability Technical Whitepaper | ID 413
[ValueMap{0,1,2,3,4,5,6}, Values{"Success", "Failed", "Invalid Parameter",
"Access Denied", "Not Supported", "Memory Error", "Protocol Error"}, OUT]
sint32 Status,
[ValueMap{0,1 }, Values{"NONE","PlainText"}, IN] uint32 SecType,
[IN] uint32 SecHndCount,
[IN ,WmiSizeIs ("SecHndCount"):Toinstance] uint8 SecHandle[],
[IN] string AttributeName,
[IN] string AttributeValue);
[WmiMethodId(5), Implemented, Description("Set value for the given
attributes")]
void SetAttributes(
[ValueMap{0,1,2,3,4,5,6}, Values{"Success", "Failed", "Invalid Parameter",
"Access Denied", "Not Supported", "Memory Error", "Protocol Error"}, OUT]
sint32 Status,
[ValueMap{0,1,2,3}, Values{"NONE","PlainText"}, IN] uint32 SecType,
[IN] uint32 SecHndCount,
[IN ,WmiSizeIs ("SecHndCount"):Toinstance] uint8 SecHandle[],
[IN] uint32 AttributeCount,
[IN, WmiSizeIs("AttributeCount"):Toinstance] string AttributeNames[],
[IN, WmiSizeIs("AttributeCount"):Toinstance] string
AttributeValueNames[]);
[WmiMethodId(6), Implemented, Description("Get Help string for the given
attribute")]
void GetHelpString(
[ValueMap{0,1,2,3,4,5,6}, Values{"Success", "Failed", "Invalid Parameter",
"Access Denied", "Not Supported", "Memory Error", "Protocol Error"}, OUT]
sint32 Status,
[IN] string AttributeName,
[OUT] string LangCode,
[OUT] uint32 HelpStrCount,
[OUT, WmiSizeIs("HelpStrCount"):Toinstance] uint8 HelpString[]);
};
To use this WMI class in PowerShell, first you need to enumerate an instance. To do so, execute the
following PowerShell command with Administrator privilege.
$BAI = Get-WmiObject -Namespace root/dcim/sysman/biosattributes -Class
BIOSAttributeInterface
Note that you are storing the instance in a PowerShell environment variable called $BAI. This will allow you to
use the same instance for future configuration settings. Once you have the class instance, executing a Set
operation becomes simple.
$BAI.SetAttribute(0,0,0,"UefiNwStack","Disabled")
Note that the first three arguments are set to zero if BIOS administrator password is not set on the system.