PowerCLI - Reset CBT of all VM's @ Once

Create a .PS1 script en fire it of in PowerCLI when connected to ESXi or VCenter

 

$vms=get-vm | ?{$_.ExtensionData.Config.ChangeTrackingEnabled -eq $true}
$spec = New-Object VMware.Vim.VirtualMachineConfigSpec
$spec.ChangeTrackingEnabled = $false

foreach($vm in $vms)
{
   $vm.ExtensionData.ReconfigVM($spec)
   $snap=$vm | New-Snapshot -Name 'Disable CBT'
   $snap | Remove-Snapshot -confirm:$false
}