Because of Adobe Flash Player End of Life ,I started using vsphere client html5 but it doesn’t support exporting events , so as workaround I installed vmware powercli for powershell from where I’m able to export events.

1.Install powercli for powershell

Open powershell then issue below command

Install-Module VMware.PowerCLI -Scope CurrentUser

2.Set-ExecutionPolicy to unrestricted

see https:/ for details

Open a new powershell windows with administrator privilege .

Then run below command to set execution policy to unrestricted

Set-ExecutionPolicy unrestricted

3.Disable vcenter certification checking

go back to your first powershell window and issue below command

 Set-PowerCLIConfiguration -InvalidCertificateAction ignore -Confirm:$false

4.Connect to vcenter

Connect-VIServer -Server

Replace “” with your vcenter’s IP/DNS.

5.Export vcenter events

 Get-VIEvent -Start 07/26/2021 -Finish 07/28/2021  |select CreatedTime,FullFormattedMessage  | Export-Csv -Path c:\events.csv -NoTypeInformation

See Get-VIEvent for more details of Get-VIEvent cmdlet .

If you want to export events between hours but not days ,refer below example

Get-VIEvent -Start (get-date).addhours(-48) -Finish (get-date).addhours(-20)  |select CreatedTime,FullFormattedMessage

Here “-48” means 48 hours ago , “-20” means 20 hours ago