$fileName = $env:Temp + '\report.csv'
$entity = Get-VM -Name my-vm
$events = Get-VIEvent -Entity $entity -MaxSamples 1000 | Select CreatedTime,UserName,FullFormattedMessage | Export-Csv -Path $fileName -NoTypeInformation -UseCulture
The vm has been around for a while so I would have thought there were more events than that. In the vSphere flash based web client you could export all events between specific dates, I know there isn't that feature in the html5 client but is it possible to do this in the vSphere power cli?ASKER
VMware, a software company founded in 1998, was one of the first commercially successful companies to offer x86 virtualization. The storage company EMC purchased VMware in 1994. Dell Technologies acquired EMC in 2016. VMware’s parent company is now Dell Technologies. VMware has many software products that run on desktops, Microsoft Windows, Linux, and macOS, which allows the virtualizing of the x86 architecture. Its enterprise software hypervisor for servers, VMware vSphere Hypervisor (ESXi), is a bare-metal hypervisor that runs directly on the server hardware and does not require an additional underlying operating system.
TRUSTED BY
ASKER
My retention is set to 30 days. I've checked a few different vm's and I've seen a couple with events going back to the 6th April so I guess that's right then.