PowerCLI: Export Task and eventlogs to file using TaskHistoryCollector
Luc Dekens has donated a script to VMTN where someone asks for a task and eventlog export file. He shows how-to use Get-ViEvent for the eventlogs and TaskHistoryCollector for exporting tasks from the last 2 days.
read more: