Microsoft Windows Server DNS 参数化 Powershell 探测

Microsoft.Windows.DNSServer.2016.ParametrizedPowershellProbe.PA (ProbeActionModuleType)

探测操作提供三个可替代参数,并将这些参数传递给 PowerShell 脚本。

Element properties:

TypeProbeActionModuleType
IsolationAny
AccessibilityInternal
RunAsDefault
InputTypeSystem.BaseData
OutputTypeSystem.CommandOutput

Member Modules:

ID Module Type TypeId RunAs 
PA ProbeAction Microsoft.Windows.DNSServer.2016.CommonPowershellProbe.PA Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
Parameter1string$Config/Parameter1$Parameter1远程任务的第一个参数
Parameter2string$Config/Parameter2$Parameter2远程任务的第二个参数
Parameter3string$Config/Parameter3$Parameter3远程任务的第三个参数
TimeoutSecondsint$Config/TimeoutSeconds$TimeoutSeconds工作流超时

Source Code:

<ProbeActionModuleType ID="Microsoft.Windows.DNSServer.2016.ParametrizedPowershellProbe.PA" Accessibility="Internal" Batching="false">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ScriptName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ScriptBody" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="PrincipalName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Parameter1" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Parameter2" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Parameter3" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TimeoutSeconds" type="xsd:int"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="Parameter1" Selector="$Config/Parameter1$" ParameterType="string"/>
<OverrideableParameter ID="Parameter2" Selector="$Config/Parameter2$" ParameterType="string"/>
<OverrideableParameter ID="Parameter3" Selector="$Config/Parameter3$" ParameterType="string"/>
<OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int"/>
</OverrideableParameters>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<ProbeAction ID="PA" TypeID="Microsoft.Windows.DNSServer.2016.CommonPowershellProbe.PA">
<ScriptName>$Config/ScriptName$</ScriptName>
<ScriptBody><Script>$Config/ScriptBody$</Script></ScriptBody>
<Arguments>"-PrincipalName $Config/PrincipalName$ -Parameter1 '$Config/Parameter1$' -Parameter2 '$Config/Parameter2$' -Parameter3 '$Config/Parameter3$'"</Arguments>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
</ProbeAction>
</MemberModules>
<Composition>
<Node ID="PA"/>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.CommandOutput</OutputType>
<InputType>System!System.BaseData</InputType>
</ProbeActionModuleType>