vmware - copy networking port groups to another host
You might be able to do this via “host profiles” but if you do not have the licensing for it, this is the alternative. Very handy if you have over 50 or so port groups. It can be re-run to add to additional hosts as needed.
Install powercli, run the following to obtain your current list of virtual port groups off existing host;
Get-VirtualPortGroup -VirtualSwitch vSwitch0 -VMHost esx-01
Grab the output and place into CSV file or copy straght into Excel…