Get a list of VLANs or port groups from an ESXi host using PowerCLI

Problem:

How do I get a list of VLANs or port groups from an ESXi host?

Solution:

Get-VirtualPortGroup -VMHost esxi01.earthport.com | export-csv c:\temp\portgroups.csv 

Leave a Reply

Your email address will not be published. Required fields are marked *