LucD
Leadership
Leadership

I normally use the TAG property, that seems to work for me.

This shows that property

Get-VirtualPortGroup -Distributed | 
Select
Name, @{N="TAG";E={$_.ExtensionData.Tag[0].Key}}
And this shows the property in action in a Where-clause

Get-VirtualPortGroup -Distributed |
where
{$_.ExtensionData.Tag[0].Key -match "UPLINK"} |
Select
Name


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference