VMware vCenter Server
VMware PowerCLI
To export events on vCenter Server to a text file:
1. Install PowerCLI on your supported platform (Windows, Linux, MacOS) from the Powershell Gallery if it is not yet installed:
2. Change the security policy (if needed):
3. Connect to FQDN or IP of the target vCenter Server:
4. Specify the date range and get events (dates described below are just examples):
5. Disconnect:
The -Start and -Finish options are both required unless retrieving only the latest 100 events. The event type values (Type = "Information", "Warning", "Error", ...) will not appear in the output text file, so the FullFormattedMessage field must be read to determine the event severity.