Powershell write action with DPM server name as overridable parameter
Microsoft.Windows.SystemCenterDPM2010.ClientAutoDeployment.PowerShellWriteActionWithDPMServerParam (WriteActionModuleType)
Element properties: Member Modules:
Overrideable Parameters:
Source Code: <WriteActionModuleType ID="Microsoft.Windows.SystemCenterDPM2010.ClientAutoDeployment.PowerShellWriteActionWithDPMServerParam" Accessibility="Internal" Batching="false">
<Configuration>
<IncludeSchemaTypes>
<SchemaType>Windows!Microsoft.Windows.PowerShellSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element minOccurs="1" name="DPMServerFQDN" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="DPMServerFQDN" Selector="$Config/DPMServerFQDN$" ParameterType="string"/>
</OverrideableParameters>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<WriteAction ID="PowerShellWriteActionWithDPMParam" TypeID="Windows!Microsoft.Windows.PowerShellWriteAction">
<ScriptName>ModifyPGSettings.ps1</ScriptName>
<ScriptBody><Script> param($dpmServerName)
#Get the installpath for auto deployment
$installPath = Get-ItemProperty "HKLM:\software\microsoft\microsoft data protection manager\AutoDeployment" | ForEach-Object {Get-ItemProperty $_.InstallPath}
$localArgs = "/modifypgsettings " + $dpmServerName
#Generate the auto deployment bin path
$binPath = $installPath.FullName + "bin\autodeploymentexe.exe"
#Trigger the auto deployment process
Start-Process -FilePath $binPath -ArgumentList $localArgs -NoNewWindow -Wait
</Script> </ScriptBody>
<Parameters>
<Parameter>
<Name>dpmServerName</Name>
<Value>$Config/DPMServerFQDN$</Value>
</Parameter>
</Parameters>
<TimeoutSeconds>10800</TimeoutSeconds>
</WriteAction>
</MemberModules>
<Composition>
<Node ID="PowerShellWriteActionWithDPMParam"/>
</Composition>
</Composite>
</ModuleImplementation>
<InputType>System!System.BaseData</InputType>
</WriteActionModuleType>