- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try changing the line to
$UniqueTags = $cmdbinfo | where {$_."$Name"} | Select -expand $Name | Sort-Object -Unique
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference