Partager via


RepairAction Element

 

Applies To: Windows Server 2012 Essentials, Windows Home Server 2011, Windows Storage Server 2008 R2 Essentials, Windows Small Business Server 2011 Essentials

Specifies the action that is performed to fix a problem.

  
<xs:element name="RepairAction" maxOccurs="1" minOccurs="0">  
  <xs:complexType>  
    <xs:sequence>  
      <xs:choice>  
        <xs:element name="PowerShell" type="PowerShellActionElement" />  
        <xs:element name="Binary" type="BinaryActionElement" />  
      </xs:choice>  
    </xs:sequence>  
  </xs:complexType>  
</xs:element>  

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

Element Description
PowerShell Element Specifies a PowerShell script that performs actions to repair a problem with a feature.
Binary Element Specifies a managed assembly that performs actions to repair a problem with a feature.

Parent Elements

Element Description
HealthDefinition Element Specifies alerts, health states, and repairs for the health add-in.

See Also

How to: Create a Definition XML File