VMware Cloud Community
NucleusVM
Enthusiast
Enthusiast

in which cluster a vm is located?

Hello

Using powercli, preferably get-view (because of the speed), what is the fastest way of finding out, in which cluster a vm is located?

I'll be processing 3000 machines, so I need a way to do this fast.

Thanks

Tags (1)
Reply
0 Kudos
1 Reply
aleex42
Enthusiast
Enthusiast

Try

Get-VM | Select-Object -Property Name,@{Name=’Cluster’;Expression={$_.VMHost.Parent}}

-- Alex (VMware VCAP-DCV, NetApp NCIE, LPIC 2)