Compartilhar via


2.2.4.9 CommandStateType

This type describes the status of the executing command.

 <xs:complexType name="CommandStateType">
   <xs:sequence>
     <xs:element name="ExitCode"
       type="ExitCodeType"
       minOccurs="0"
      />
   </xs:sequence>
   <xs:attribute name="CommandId"
     type="xs:anyURI"
    />
   <xs:attribute name="State"
     type="CommandStateEnumeration"
    />
 </xs:complexType>
  

Element

Exit Code: This optional element contains a Shell processor-specific exit code.<7>

Attributes

CommandId: Attribute indicating the identity of the command for which status is being reported. This attribute MUST be present when status is being reported for a command and this attribute MUST NOT be present when status is being reported for a shell.

State: This required attribute MUST contain the specific state of the command for which status is being reported and it MUST be one of the following values:

  • http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Done

  • http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Pending

  • http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Running