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)
0 Kudos
1 Reply
Enthusiast
Enthusiast

Try

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

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