If there a way to retrieve the vmnicX name that is connected to dvUplinkX fior a given host via powershell?
In particular what is ideal is a way to identify the vmnic(s) associated to a particular portgroup.
Have a look at 2. Re: Script for DVSwitch Configuration
The vmnic are attached to the switch, in the portgroup you can only override the order afaik.
Is that what you want ?