I wanted to reset CBT (Change Block Tracking) on a single VM to due to the VMware bug (KB2090639) which affects any VMs that have expanded disks over 128GB. Using this script over the manual option prevents the restart of the VM as the modification is performed online using a Power CLI script. In the below example the Read More…
Day: April 13, 2015
Script to Output to CSV and Email Disk Sizes of VMs
I wanted to get a list of all disk sizes, insert this into a .csv file then email the file to a couple of recipients. Using Powershell, I wanted to get a list of all the production severs from a vCenter 5.5 server which were all located in a "Production" folder. Add-PSSnapin VMware.VimAutomation.Core Connect-VIServer -Server Read More…