List DPM job status using PowerShell

About:

This code is to list the status of all the jobs running at the moment. It will list all errors if there is any too.

You run it on the DPM server

 

 

Code:

 

$dpmerror = Get-DPMAlert -DPMServerName $env:COMPUTERNAME

 

foreach ($dpm in $dpmerror)

{

Start-DPMDatasourceConsistencyCheck -Datasource $dpm.datasource

}