Any way to get this to display more than 1000 events?
$begintime = (Get-Date).adddays(-15) $endtime = Get-Date $si=get-view serviceinstance $em= get-view $si.Content.EventManager $EventFilterSpec = New-Object VMware.Vim.EventFilterSpec $EventFilterSpecByTime = New-Object VMware.Vim.EventFilterSpecByTime $EventFilterSpecByTime.BeginTime = $begintime $EventFilterSpecByTime.EndTime = $endtime $EventFilterSpec.Type = "DrsVmMigratedEvent","VmMigratedEvent" $EventFilterSpec.Time = $EventFilterSpecByTime $events = $em.QueryEvents($EventFilterSpec)