I need to run against cluster as there are multiple cluster
is this something below is OK?
$start = Get-Date "01/04/2017"
$finish = Get-Date "07/30/2017"
Get-cluster -Name xxxxx | Get-VIevent -Start $start -Finish $finish -MaxSamples ([int]::MaxValue) |
Where {$_.FullFormattedMessage -match "VMtools|VMware Tools"} |
select @{Name='host';E={$_.Host.name}},
@{N='user';E={$_.UserName}},
@{N='Createdtime'; E={$_.CreatedTime}},
@{N='Fullmessage';E={$_.FullFormattedMessage}} |
Export-Csv -Path .\report.csv -NoTypeInformation -UseCulture