Powercli consolidation script report

Powercli consolidation script report

If you have issue with consolidation on you vcenter platform this simple script will list all servers which needs consolidation.

 

 

add-pssnapin VMware.VimAutomation.Core
$vCenter = “vcenter01.lab.local”

Connect-VIServer $vCenter
Get-VM | where {$_.ExtensionData.Runtime.consolidationNeeded} | Select Name, @{N=”IP Address”;E={@($_.guest.IPAddress[0])}} |Export-Csv c:\Raport_konsolidacja.csv

 

 

Please Comment and Subscribe

Loading