none
DPM 2012 R2, Add Members to protection groups through DPM cmdlets RRS feed

  • Question

  • Hello All,

    Our firm recently started deployment of DPM 2012 R2 servers. Because of our rather large number of 'to be backed up servers', we would like to use the Powershell DPM commands to add members to protection groups. The code we are using to perform this:

    $pg = Get-ProtectionGroup -DPMServerName DPMSERVERNAME | Where-Object {$_.FriendlyName.ToUpper() -eq "SYSTEM STATE".ToUpper()}

     $Modpg = Get-ModifiableProtectionGroup -ProtectionGroup $pg

     $ps = Get-ProductionServer -DPMServerName "DPMSERVERNAME" | where{$_.Servername -eq "MEMBERSERVERNAME" }

     $ds = Get-Datasource -ProductionServer $ps | where {$_.name -eq "System Protection"}

     $po = Get-ChildDatasource -ChildDatasource $ds | where { ($_.logicalpath,$_.name) -contains "Bare Metal Recovery" }

     Add-ChildDatasource -ProtectionGroup $pg -ChildDatasource $po

    Set-ProtectionGroup -protectiongroup $pg 

    The error we receive is the following:

    Set-dpmProtectionGroup : The given key was not present in the dictionary. At line:1 char:1 + Set-dpmProtectionGroup -protectiongroup $iets + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [Set-DPMProtectionGroup], KeyN    otFoundException     + FullyQualifiedErrorId : System.Collections.Generic.KeyNotFoundException,    Microsoft.Internal.EnterpriseStorage.Dls.UI.Cmdlet.ProtectionCmdLets.Commi   tProtectionGroup 

    We tried a few different approaches but all failed. Which DPM genious can help us out? :)






    Friday, July 18, 2014 12:26 PM

All replies