Home > Data Center, Virtualization > Script to remove VMs that have been off more than 30 days

Script to remove VMs that have been off more than 30 days

August 14th, 2014

My users developed a habit to keep their un-used VMs for too long and it slowly eat up our storage. I need a way to enforce our 30 days retention policy. A bit of searching and I end up with this script. Oh and it sends emails too.


l>