PowerShell Element
Applies To: Windows Server 2012 Essentials, Windows Home Server 2011, Windows Storage Server 2008 R2 Essentials, Windows Small Business Server 2011 Essentials
Specifies a PowerShell script that performs a specific action. PowerShell scripts can be used to determine the compatibility of the add-in with the operating system, report the condition of a feature, or perform a notification or repair action.
<xs:element name="PowerShell" type="PowerShellActionElement" />
<xs:complexType name="PowerShellActionElement">
<xs:sequence>
<xs:element name="Script" type="xs:string" maxOccurs="1" minOccurs="1" />
<xs:element name="Detail" type="xs:string" maxOccurs="1" minOccurs="0" />
</xs:sequence>
</xs:complexType>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child Elements
Element | Description |
---|---|
Script Element | Specifies the script that performs the action. |
Detail Element | Specifies a description for the action that is performed by the script. |
Parent Elements
Element | Description |
---|---|
Filter Element (Feature) | Specifies whether the health add-in is applicable to the current version of the operating system. |
Filter Element (HealthDefinition) | Specifies whether the health definition is applicable to the current version of the operating system. |
Condition Element | Specifies the action that is performed to check the condition of a feature. |
AlertAction Element | Specifies the notification action that is performed when the specified condition occurs. |
RepairAction Element | Specifies the action that is performed to fix a problem. |