This Blog is to share our knowledge and expertise on Linux System Administration and VMware Administration

Saturday, September 16, 2017

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()
}

No comments:

Post a Comment