VMWare ESXi 6.6.5 hosts, export list of VMNICs and Port group mapping?

I have RVTools and pulled a report using that but can't seem to gather all the info I need in a easy to use format. Is there a tool or method that I can use to get a list of all hosts and their VMNIC and the specific port group they are assigned to?
Basically I need to know all hosts and VMNICs that are assigned to a specific set of port groups.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Is powercli installed could try:
Output to CSV VM host network details:

Get-VMHostNetworkAdapter | select VMhost, Name, IP, SubnetMask, Mac, PortGroupName, vMotionEnabled, mtu, FullDuplex, BitRatePerSec | Export-Csv C:\VMHostNetworkDetails.csv


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
REIUSAAuthor Commented:
Thanks for the link. I ran the command and it worked but it only shows the port group for VMK0 and VMK1. All of the VMNICs are blank under port group although it shows the VMNIC MAC address. Using PowerCLI 6.5.1.

Anyone have an idea why the VMNICs are blank under port group or how I can tweak it to show correctly? Thanks!
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

REIUSAAuthor Commented:
They are vDS.
REIUSAAuthor Commented:
Tried playing around with the get-vdswitch command and can't get anywhere.
REIUSAAuthor Commented:
Anyone have any ideas from a powershell powerCLI perspective?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.