Hi hharold
I have the same problem in my SRM Activ-Activ concept. I solved this with a Workarround....
Each Site have a Datastore which is used for the Placeholder-VM's. Site A: Placeholder_Disk_RZ / Site B: Placeholder_Disk_Delta.
Now when i execute a get-vm statement i excluede all VMguests where resides on the Placeholder Disk...
Like this:
Get-VM | sort | where { $_.Harddisks -ne "Placeholder"}
If you like to get all VMguets from both vCenter:
$VC = "vCenterA"
Connect-VIServer $VC
Get-VM | sort | where { $_.Harddisks -ne "Placeholder"}
Disconnect-VIServer -confirm:$false
$VC = "vCenterB"
Connect-VIServer $VC
Get-VM | sort | where { $_.Harddisks -ne "Placeholder"}
Disconnect-VIServer -confirm:$false
I know it's not realy fast... but it works for me.
Let me know if you find a better way.
Greetings
Hoschi