PowerShell Script Serialized Object Probe (Trigger Only)
Microsoft.Windows.PowerShellPropertyBagTriggerOnlyProbe (ProbeActionModuleType)
Use this module as a probe action for running PowerShell scripts and the PowerShell script will return a property bag. This module returns data of type System.PropertyBagData. This module should be used for implementing OnDemandDetection for custom unit monitor types. The StrictErrorHandling parameter should almost always be set to "false" so that failures in the discovery will not result in the entire workflow being unloaded. For more information on this module refer to the "Operations Manager Module Types Reference" online.
Element properties: Member Modules:
Overrideable Parameters:
Source Code: <ProbeActionModuleType ID="Microsoft.Windows.PowerShellPropertyBagTriggerOnlyProbe" Accessibility="Public">
<Configuration>
<IncludeSchemaTypes>
<SchemaType>Microsoft.Windows.PowerShellSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element name="ScriptName" type="NonNullString"/>
<xsd:element name="ScriptBody" type="NonNullString"/>
<xsd:element name="SnapIns" type="SnapInsType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Parameters" type="NamedParametersType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="TimeoutSeconds" type="xsd:integer"/>
<xsd:element name="StrictErrorHandling" type="xsd:boolean" minOccurs="0" maxOccurs="1"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int"/>
</OverrideableParameters>
<ModuleImplementation>
<Composite>
<MemberModules>
<ProbeAction ID="PowerShellProbe" TypeID="Microsoft.Windows.PowerShellPropertyBagTriggerOnlyProbeBase">
<ScriptName>$Config/ScriptName$</ScriptName>
<ScriptBody><Script> $Config/ScriptBody$</Script> </ScriptBody>
<SnapIns>$Config/SnapIns$</SnapIns>
<Parameters>$Config/Parameters$</Parameters>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
<OutputType>PropertyBag</OutputType>
<StrictErrorHandling>$Config/StrictErrorHandling$</StrictErrorHandling>
</ProbeAction>
</MemberModules>
<Composition>
<Node ID="PowerShellProbe"/>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.PropertyBagData</OutputType>
<TriggerOnly>true</TriggerOnly>
</ProbeActionModuleType>