VMware Cloud Community
nlong12
Enthusiast
Enthusiast
Jump to solution

Attempting to find vlan's with no vm's

Good morning!

How would I go about finding vlan's with no vm's assigned to the vlan.  A report listing all vlan's with the number of vm's associated with the vlan would be helpful.

Thank you for your responses.

Norm

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

The simplest, not necessarily the fastest, way could be

Get-VirtualPortGroup |

Select Name,

   @{N='VM#';E={(Get-VM -RelatedObject $_).Count}}


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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

The simplest, not necessarily the fastest, way could be

Get-VirtualPortGroup |

Select Name,

   @{N='VM#';E={(Get-VM -RelatedObject $_).Count}}


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

0 Kudos
nlong12
Enthusiast
Enthusiast
Jump to solution

Hello Lucd;

Work's for me!!  Did not do my homework.

Thanks again.

Norm

0 Kudos