AlertAction Element

 

Updated: October 9, 2012

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

Specifies the notification action that is performed when the specified condition occurs. The action can be a PowerShell script or a managed assembly.

  
<xs:element name="AlertAction" 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>  

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

Attributes

None.

Child Elements

ElementDescription
PowerShell ElementSpecifies a PowerShell script that provides the notification action that is performed when the specified condition occurs.
Binary ElementSpecifies a managed assembly that provides the notification action that is performed when the specified condition occurs.

Parent Elements

ElementDescription
HealthDefinition ElementSpecifies alerts, health states, and repairs for the health add-in.

How to: Create a Definition XML File

Community Additions

ADD
Show: