Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 231085

Re: Show VMs with Multiple Tags in a Category

$
0
0

Try something like this

 

$tagCatName='Backup Job'

$tagCat=Get-TagCategory-Name$tagCatName

 

Get-VM|where {(Get-TagAssignment-Entity$_-Category$tagCat).Count -gt1} |

SelectName,

  @{N="Tags";E={[string]::Join(',',(Get-TagAssignment-Entity$_-Category$tagCat|%{$_.Tag.Name}))}} 

 


Viewing all articles
Browse latest Browse all 231085

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>