Hi, Does this work with multiple dpmservers? param( [string[]]$DPMServer = @('DPMS1','DPMS 2','DPMS3','DPM S4'), [String]$Output File="c:\temp\r eports\backup-s chedule.htm")
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]$DPMSer ver="MyDPMServe r.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 : InvalidOperatio n: (:) [], RuntimeExceptio n + FullyQualifiedE rrorId : InvokeMethodOnN ull