Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

How can i get the list of VMs with or without having tags assigned to them

$
0
0

This is the command i have been trying but not giving vms without tags

 

Get-VM | Get-TagAssignment
   where {($_.Tag -eq $null) -or ($_.Tag -ne $null)} |
   Select @{N='VM';E={$_.Entity.Name}},`
   @{N='TagName';E={$_.Tag}},`
   @{N="Cluster";E={Get-Cluster -VM $_.Entity.Name}},`
   @{N="ESX Host";E={Get-VMHost -VM $_.Entity.Name}}


Viewing all articles
Browse latest Browse all 175326

Trending Articles



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