We have a number of VMs which are used as development systems. Each has multiple snapshots, some of which are quite old. I can get a list of snapshot-related events for a VM, which will show when a VM was reverted to a snapshot:
Get-VM $vmname | Get-VIEvent -MaxSamples 100000 | ? {$_FullFormattedMessage -match "snapshot" -and $_.FullFormattedMessage -match "Task:"}
However, this does not show which snapshot was reverted to. Is there any way to find this information?