White Papers

Active Directory Configuration
21
Appendix E : Sample WINRM Commands and Mapping to iDRAC
GUI Display Names
For the convenience of knowing the set command for each attribute, the commands are listed
individually. Dell suggests customers to use one command for SetAttributes() to setup all the
attributes together.
Before running the commands, customers must change the IP address to their iDRAC IP address and
use the iDARC username and password.
In the following commands, the name is the iDRAC GUI display name, the value is the value this
attribute should be set to, and the WSMAN command is the corresponding command to set the
value of the attribute.
Name: Register DRAC on DNS
Description: unchecked
Value: Disabled
Winrm command:
winrm invoke SetAttributes
"cimv2/root/dcim/DCIM_IDRACCardService?SystemCreationClassName=DCIM_Com
puterSystem+CreationClassName=DCIM_iDRACCardService+SystemName=DCIM:Com
puterSystem+Name=DCIM:iDRACCardService" -
r:https://192.168.0.120:443/wsman -u:root -p:****** -SkipCNcheck -
SkipCAcheck -SkipRevocationCheck -encoding:utf-8 -a:basic -
format:pretty -file:c:\users\zhan_liu\appdata\local\temp\tmpgloomo
<p:SetAttributes_INPUT
xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/root/dcim/DCIM_IDRACCardService">
<p:AttributeName>NIC.1#DNSRegister</p:AttributeName>
<p:AttributeValue>Disabled</p:AttributeValue>
<p:Target>iDRAC.Embedded.1</p:Target>
</p:SetAttributes_INPUT>
SetAttributes_OUTPUT
Message = The command was successful
MessageID = RAC001
RebootRequired = No
ReturnValue = 0
SetResult = Set PendingValue
Name: Static DNS domain name
Value: your domain name. in this example, ci.local
Winrm command:
winrm invoke SetAttributes
"cimv2/root/dcim/DCIM_IDRACCardService?SystemCreationClassName=DCIM_Com
puterSystem+CreationClassName=DCIM_iDRACCardService+SystemName=DCIM:Com
puterSystem+Name=DCIM:iDRACCardService" -
r:https://192.168.0.120:443/wsman -u:root -p:****** -SkipCNcheck -