Microsoft Windows Server DNS パラメーター化された Powershell プローブ
Microsoft.Windows.DNSServer.2016.ParametrizedPowershellProbe.PA (ProbeActionModuleType)
3 つの上書き可能なパラメーターを指定し、PowerShell スクリプトに渡すプローブ操作。
Element properties:
Member Modules:
Overrideable Parameters:
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>