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
Try
Get-VM | Select-Object -Property Name,@{Name=’Cluster’;Expression={$_.VMHost.Parent}}
Get-VM
|
Select-Object
-Property
Name,@{Name=’Cluster’;Expression={
$_
.VMHost.Parent}}