Get a list of all VM in a cluster, that dosen’t hve Limit CPU For migration set to true:
1 2 3 4 5 6 7 |
Import-Module -Name "virtualmachinemanager" Get-Vmmserver localhost $hc = Get-VMHostCluster -Name CLUSTERNMAE $hosts =get-vmhost -VMHostCluster $hc foreach($h in $hosts) { get-vm -vmhost $h |Where { $_.LimitCPUForMigration –eq $FALSE } | select Name } |