PowerShell Script Property Bag Probe
Microsoft.Windows.PowerShellPropertyBagProbe (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 would most commonly be used in an agent task, a diagnostic or as a part of a composition in a custom data source module type. The StrictErrorHandling parameter should only be set to "true" if the module is being used in an agent task. 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.PowerShellPropertyBagProbe" 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.PowerShellPropertyBagProbeBase">
<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>
<InputType>System!System.BaseData</InputType>
</ProbeActionModuleType>