Consolidate snapshots for multiple VMs


Target Type: Virtual Machine
Output format: action
Possible to consolidate snapshots for multiple selected VMs in the webclient.

param
(
[Parameter(Mandatory=$true)]
[VMware.VimAutomation.ViCore.Types.V1.Inventory.VirtualMachine[]]
$vParam
);

$vm = Get-VM $vParam
$vm.ExtensionData.ConsolidateVMDisks_Task()