DPM Backup schedule report script

This PowerShell script helps to get a quick overview of all backup jobs defined in DPM by generating a html page, showing protection schedule in calender format.

dpm-schedule.ps1
 
 
 
 
 
5 Star
(1)
2,333 times
Add to favorites
System Center
9/11/2014
E-mail Twitter del.icio.us Digg Facebook
  • Multiple DPM Server
    1 Posts | Last post March 05, 2018
    • Hi,
      Does this work with multiple dpmservers?
      
      param(
      [string[]]$DPMServer = @('DPMS1','DPMS2','DPMS3','DPMS4'),
      [String]$OutputFile="c:\temp\reports\backup-schedule.htm")
      
  • Target a DPM Server
    3 Posts | Last post February 14, 2018
    • How do I specify the target DPM server within this script?  I currently run 15 DPM servers and would like to build and save custom scripts that I can run to get a schedule from each DPM server. 
      Thanks for your help and for posting the PowerShell commands included thus far.
    • Never mind.  I found that at the top, where the param is set, where you have...
      
      param(
          [String]$DPMServer=$null,
      
      ...I changed this to...
      
      param(
          [String]$DPMServer="MyDPMServer.MyDomain.Com",
      
      I didn't include quotes earlier, but found I needed to include quotes around it.
    • Appreciate any help I get below, although the html report does seem to run, can anyone help I am using uk date format so wonder if its something to do with this.
      
      You cannot call a method on a null-valued expression.
      At dpm-schedule.ps1:52 char:17
      + ...             $TimeTable.Item($ts) = $TimeTable.Item($ts) + $Protection ...
      +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
          + FullyQualifiedErrorId : InvokeMethodOnNull