Hopefully this will help someone as I have been looking around for a while and just decided to tackle it myself. Took some snippets from the PowerPack to put this together. I am no coder by any ...
See more...
Hopefully this will help someone as I have been looking around for a while and just decided to tackle it myself. Took some snippets from the PowerPack to put this together. I am no coder by any means so suggestions are welcomed however it has been working great for us. It generates an email if the amount of space used on a VM's partition is over 89%. There are 3 files needed: email-template.txt , global-volume-ignore.txt , and systems-to-ignore.txt. email-template.txt - Is the body of the email, this is a code sample to put in: Disk utilization is " + ("{0:P0}" -f $percentfree) + " on " + $VM.name + " partion is " + $Disk.DiskPath + " and space free is " + ($freespace / 1000) + " GB. global-volume-ignore.txt - Helpful to exlude certain volumes (/boot, etc) systems-to-ignore.txt - Put VM names in here you want to exclude I run it as scheduled task on a daily basis.