Filter Element (HealthDefinition)
Applies To: Windows Server 2012 Essentials, Windows Home Server 2011, Windows Storage Server 2008 R2 Essentials, Windows Small Business Server 2011 Essentials
Specifies whether the health definition is applicable to the current version of the operating system.
<xs:element name="Filter" maxOccurs="1" minOccurs="0">
<xs:complexType>
<xs:choice>
<xs:element name="PowerShell" type="PowerShellActionElement" />
<xs:element name="Binary" type="BinaryActionElement" />
</xs:choice>
</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 script that returns a value to indicate whether the health definition applies to the current version of the operating system. The last line in the PowerShell script must evaluate to a Boolean value. |
Binary Element | Specifies a managed assembly that returns a value to indicate whether the health definition applies to the current version of the operating system. |
Note
The Filter element uses either a PowerShell element or a Binary element.
Parent Elements
Element | Description |
---|---|
HealthDefinition Element | Specifies alerts, health states, and repairs for the health add-in. |