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.
- Create a VMFS datastore via powershell
- Finding VM disk details in powershell