Adatforrás a PowerShell-parancsfájl futtatásához, amely tulajdonságcsomagot ad vissza

Microsoft.ActiveDirectoryFederationServices2012R2.ScriptDataSourceType (DataSourceModuleType)

Element properties:

TypeDataSourceModuleType
IsolationAny
AccessibilityInternal
RunAsDefault
OutputTypeSystem.PropertyBagData

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource System.CommandExecuterPropertyBagSource Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
IntervalSecondsint$Config/IntervalSeconds$Időköz (másodperc)Időköz (másodperc)
TimeoutSecondsint$Config/TimeoutSeconds$Parancsfájl időtúllépése (másodperc)Parancsfájl időtúllépése (másodperc)

Source Code:

<DataSourceModuleType ID="Microsoft.ActiveDirectoryFederationServices2012R2.ScriptDataSourceType" Accessibility="Internal" Batching="false">
<Configuration>
<xsd:element name="PowerShellPath" type="xsd:string"/>
<xsd:element name="ScriptName" type="xsd:string"/>
<xsd:element name="ScriptBody" type="xsd:string"/>
<xsd:element name="IntervalSeconds" type="xsd:integer"/>
<xsd:element name="TimeoutSeconds" type="xsd:integer"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
<OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int"/>
</OverrideableParameters>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<DataSource ID="DS" TypeID="System!System.CommandExecuterPropertyBagSource">
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<ApplicationName>$Config/PowerShellPath$</ApplicationName>
<WorkingDirectory/>
<CommandLine> -Command "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force;&amp; {.\$Config/ScriptName$}"
</CommandLine>
<SecureInput/>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files>
<File>
<Name>$Config/ScriptName$</Name>
<Contents><Script>$Config/ScriptBody$</Script></Contents>
<Unicode>true</Unicode>
</File>
</Files>
</DataSource>
</MemberModules>
<Composition>
<Node ID="DS"/>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.PropertyBagData</OutputType>
</DataSourceModuleType>