Simple Powercli Code to Consolidate all vms which are Consolidation Needed



Powercli Code to Consolidate all  vms  which are Consolidation Needed
Use the below command.

Get-VM |
Where-Object {$_.Extensiondata.Runtime.ConsolidationNeeded} |
ForEach-Object {
  $_.ExtensionData.ConsolidateVMDisks()
}

0 Comments