PowerShell | Filter HA events from vCenter server

Hello Guys,

It is well explained on web but I want to have it on my blog so that I don't keep roaming on web to find the same again. After all, it is my notes. isn't it? ;)

Command is simple as below

Get-VIEvent -MaxSamples 100000 -Start (Get-Date).AddDays(-1) -Type Warning | Where {$_.FullFormattedMessage -match "restarted"} |select CreatedTime,FullFormattedMessage | sort CreatedTime –Descending

Hope it helped you as well.


Post a Comment