Getting the last powered on time of a VM

I have been going through our VMware infrastructure and cleaning up the storage and found a large number of VMs that were powered off. I wanted to know if any activity had happened on them recently to see if they were still valid. A little googling and I found the below script that will look through the event logs of Virtual Center and tell you when it was last powered on.

Leave a Reply