Friday, August 16, 2013

PowerCLI: How to Find VMs with Change Block Tracking (CBT) Enabled

Our previous backup solution had a  interface which conveniently displayed which VMs had Change Block Tracking (CBT) enabled.  Unfortunately, our new solution does not...

To quickly find the VMs which have CBT enabled, run the following "one-liner" against your vCenter server:

Get-VM | Get-View | Sort Name | Select Name, @{N="ChangeTrackingStatus";E={$_.Config.ChangeTrackingEnabled}} > c:\cbt.txt


Depending on how large your environment is, it may take several minutes to complete.  I piped the output to a text file for documentation purposes.   Here's an example of its output:


No comments:

Post a Comment