get-vievent

This post was originally published on this site

Hi

 

i am pulling events 5 month old but when I run below command it returns nothing

 

get-cluster -name xxxxx | Get-VIevent -Start 04/01/2017 -Finish 08/31/2017 -maxsamples 10000 | 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 report.csv

 

I also tried  -match  “Tools” but even then it returns nothings, I belive something wrong script where date is not picked up?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.