Filter Element (HealthDefinition)

Filter Element (HealthDefinition)

Published: December 17, 2010

Updated: October 9, 2012

Applies To: Windows Home Server 2011, Windows Server 2012 Essentials, Windows Small Business Server 2011 Essentials, Windows Storage Server 2008 R2 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.

noteNote
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.

See Also

Show:
© 2016 Microsoft