Hello,
I want to know by whom the VMs were deleted through time, but this command isn't working fine with me.
Get-VIEvent -maxsamples 10000 -Start (Get-Date).AddDays(–100) |where {$_.username -ne "USERNAME" -and $_.Gettype().Name-eq "VmRemovedEvent"} |Sort CreatedTime -Descending |Select CreatedTime, UserName,Fullforma
ttedMessage