<UIPageSet ID="Community.PowerShellMonitoring.PageSet.Template.PowerShellAlert" TypeDefinitionID="Community.PowerShellMonitoring.Template.PowerShellRule.Alert">
<UIPageReferences>
<UIPageReference ID="Community.PowerShellMonitoring.PageSet.Template.PowerShellAlert.General" PageID="MSR!Microsoft.SystemCenter.RuleTemplates.RuleGeneralPage" Usage="CreationOnly">
<InputParameters/>
<InputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:element name="Category">
<xsl:copy>Alert</xsl:copy>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
</UIPageReference>
<UIPageReference ID="Community.PowerShellMonitoring.PageSet.Template.PowerShellAlert.Schedule" PageID="System!System.SimpleSchedulerPage" Usage="CreationOnly">
<InputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:element name="SimpleReccuringSchedule">
<xsl:element name="Interval"><xsl:attribute name="Unit">Minutes</xsl:attribute>15
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
</UIPageReference>
<UIPageReference ID="Community.PowerShellMonitoring.PageSet.Template.PowerShellAlert.Script" PageID="Windows!Microsoft.Windows.ScriptPage" Usage="CreationOnly">
<InputParameters>
<ScriptName>MyScript.ps1</ScriptName>
<ScriptBody><Script># Any Arguments specified will be sent to the script as a single string.
# If you need to send multiple values, delimit them with a space, semicolon or other seperator and then use split.
param([string]$Arguments)
# Example of use below, in this case return the length of the string passed in and we'll alert based on that.
# Since the alert comparison is string based in this template we'll need to create a result value and return it.
# Ensure you return a result even if an alert shouldn't be triggered, or the expression filter will error and the module will be unloaded.