VMware Cloud Community
newwenha
Contributor
Contributor

Get VMDK last modified date in PowerCLI?

I am trying to create a PowerCLI script that will display the last modified date of a powered off VM. Currently, my script simply connects to vCenter and sorts out all the powered off VMs only. I need to access the vmdk last modified date (in the datastore) and use this information because there is none in the tasks and events tab. Essentially, whatever the date is on the datastore of VM is the date I want to display and export to a csv file. The csv file should contain the VM name, datastore, and last modified date of the vmdk.

Tags (3)
0 Kudos
1 Reply
LucD
Leadership
Leadership

0 Kudos