LucD,
Thank you for the reply. I have been trying a script somewhat similar, but it was not giving the expected results.
#
foreach ($snap in Get-VM)
{$snapevent = Get-VIEvent -Entity $snap.VM -Types Info -Finish $snap.Created -MaxSamples 1 | Where-Object {$_.FullFormattedMessage -imatch 'Task: Create virtual machine snapshot'}
if ($snapevent -ne $null){Write-Host ( "VM: "+ $snap.VM + ". Snapshot '" + $snap + "' created on " + $snap.Created.DateTime + " by " + $snapevent.UserName +".")}
else {Write-Host ("VM: "+ $snap.VM + ". Snapshot '" + $snap + "' created on " + $snap.Created.DateTime + ". This event is not in vCenter events database")}}
#
Your script is giving me the expected information, Thank you for the script!
I knew it was going to be an issue getting the sizes of the snapshots that have already been removed. I figured maybe someone had a clever script that was able to find that hidden information. I wish there was better reporting/information on snapshots since these can have a big impact on your storage if too many are created or removed at the same time when backups are being run. It would be nice to see this information and show how it ties to high I/O and Latency during the back up window. This can also show why the backups, at times take longer to complete when snapshots are taking longer to create or remove. I have been taking to our management about using SAN based snapshots for our VM backups (1500 vm's and about 77TB of total data ) but I need to build my case on it. I have a lot of work here to do to clean up these issues and poor design.
Travis