Start client auto deployment

Microsoft.Windows.SystemCenterDPM2010.ClientAutoDeployment.AutoDeployClients (Rule)

Element properties:

TargetMicrosoft.SystemCenter.RootManagementServer
CategoryCustom
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
Scheduler DataSource System.Scheduler Default
AutoDeployClients WriteAction Microsoft.Windows.PowerShellWriteAction Default

Source Code:

<Rule ID="Microsoft.Windows.SystemCenterDPM2010.ClientAutoDeployment.AutoDeployClients" Enabled="true" Target="SC!Microsoft.SystemCenter.RootManagementServer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Custom</Category>
<DataSources>
<DataSource ID="Scheduler" TypeID="System!System.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval Unit="Days">1</Interval>
<SyncTime>03:00</SyncTime>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="AutoDeployClients" TypeID="Windows!Microsoft.Windows.PowerShellWriteAction">
<ScriptName>TriggerAutoDeployment.ps1</ScriptName>
<ScriptBody><Script>#Get the installpath for auto deployment
$installPath = Get-ItemProperty "HKLM:\software\microsoft\microsoft data protection manager\AutoDeployment" | ForEach-Object {Get-ItemProperty $_.InstallPath}

$localArgs = "/autodeployclients"

#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>
<TimeoutSeconds>21600</TimeoutSeconds>
</WriteAction>
</WriteActions>
</Rule>