Try something like this (this looks at the last day)
$events = Get-VIEvent -Start
(get-Date).AddDays
(-1) -MaxSamples
([int]::MaxValue
)$events | where{$_ -is [VMware.Vim.VmRelocatedEvent]} |
ForEach-Object -Process {
$chain = $_.ChainId
$chained = $events | where{$_.ChainId -eq $chain} | Sort-Object -Property CreatedTime
$task = $chained | where{$_ -is [VMware.Vim.TaskEvent] -and $_.Info.Name -eq 'RelocateVM_Task'}
if($task){
New-Object PSObject -Property @{
VM = $chained[0].Vm.Name
Type = $task.Info.Name
User = $task.Info.Reason.UserName
Start = $task.Info.QueueTime
Finish = ($chained | where{$_ -is [VMware.Vim.VmRelocatedEvent]}).CreatedTime
}
}
}