Pages

mandag 1. juli 2013

DPM: List Schedules

If you would like to list all ProtectionGroup Schedules with PowerShell, start DPM Management Shell and execute commands (valid for DPM 2012):

ShortTerm:
$PGlist = Get-DPMProtectionGroup -DPMServerName $Env:COMPUTERNAME
foreach ($PG in $PGlist){$PG.FriendlyName;Get-DPMPolicyObjective -ProtectionGroup $PG -ShortTerm | select Schedules | Format-Table -HideTableHeaders}

LongTerm:
$PGlist = Get-DPMProtectionGroup -DPMServerName $Env:COMPUTERNAME
foreach ($PG in $PGlist){$PG.FriendlyName;Get-DPMPolicyObjective -ProtectionGroup $PG -LongTerm Tape | select Schedules | Format-Table -HideTableHeaders}