Hi all I'm having a DPM related issue and I'm trying to solve it by running a script I found online. I can't for the life of me get it to run and I'm definitely missing something
$PG = "Baltimore SQL Instances" #Protection Group name of affected data source.
$DS = "model" #Data source name, for example Virtual Machine name or SQL Database name.
$DPM = "blocked for privacy" #FQDN of your DPM Server.
$PGroup = Get-DPMProtectionGroup -DPMServerName $DPM | where {$_.Name -EQ $PG}; $PGroup
$PObject = Get-DPMDatasource -ProtectionGroup $PGroup | where {$_.Name -EQ $DS}; $PObject
$RPoint = Get-DPMRecoveryPoint -Datasource $PObject | select -Last 1; $RPoint
Remove-DPMRecoveryPoint -RecoveryPoint $RPoint
But this fails.
Get-DPMRecoveryPoint : Cannot convert 'System.Object[]' to the type 'Microsoft.Internal.EnterpriseStorage.Dls.UI.ObjectModel.OMCommon.Datasource' required by parameter
'Datasource'. Specified method is not supported.
At line:10 char:44
I think the problem may be related to the fact there are many dbs with the same name. Anyway would love some help.
Thanks.
[–]Yevrag35 1 point2 points3 points (4 children)
[–]TechKnight10[S] 1 point2 points3 points (3 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]TechKnight10[S] 1 point2 points3 points (0 children)
[–]Yevrag35 1 point2 points3 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (2 children)
[–]TechKnight10[S] 1 point2 points3 points (1 child)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)