Hi all,
I wrote this for my environment but it might be useful to someone else, I couldn't find one to suit me.
Basically it refreshes the Datastores and then checks them for less than 10GB free space(unless they have "storage in the name", thats unused local vmdk for my environment).
If they do it emails the csv to warn the admins.
Some of this code probably came from the forums so apologies if I stole anyones code. I just pieced together the parts I needed from sample scripts I had.
Hope its a help to someone.
Joe