VMware Cloud Community
KlonskyAdam
VMware Employee
VMware Employee

SRM script stopped working after upgrading PowerCLI from 6.5 to v 11.2

After upgrading  PowerCLi from 6.5 to 11.2 the SRM script stopped working  call $RecoveryPlan.GetRecoverySettings($moRef) produces error message "Exception calling"GetRecoverySettings" with "1" argument(s): "Object reference not set to an instance of an object"

Other calls such as :

$Vms = $ProtectionGroup.ListAssociatedVms()

$Rps = $ProtectionGroup.ListRecoveryPlans()

work just fine under both versions

I tested this function on multiple systems with same results

pastedImage_2.pngpastedImage_0.png

Any help would be appreciated

Thank you

Adam K

0 Kudos
1 Reply
LucD
Leadership
Leadership

There have been a few reports of issues with the SRM module in PowerCLI 11.2.0.
In several cases, downgrading the SRM module seems to have helped.
See Re: Connect-SrmServer fails when -RemoteCredential is used


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos