I am running a post-script and passing parameters %ZertoVCenterIP% and %ZertoVPGName%. What I want to obtain is VM list in %ZertoVPGName% and edit their VMX. I have majority of script down. I am unable to pull VM names in from %ZertoVPGName%. Is there a direct powershell command to pull VM names from the VPG? Any help would be appreciated.
Can you clarify exactly what you’re attempting to achieve here? Do you want the name of each VM that you are failing over one at a time or all at once?
So what I am doing is running a post-script to enable hardware virtualization feature on the VM once they are on the target side. Is there a way to get list of VMs in the VPG from the parameter %ZertoVPGName% ?