Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 230663

Re: Get-VIEvent Specific Time Range of a Specific date

$
0
0

The Start and Finish parameters of the Get-VIEvent cmdlet expect a DateTime object as input. The Get-Date cmdlet returns a DateTime object. So, you can use the Get-Date cmdlet to return a specific time. The following command will return all of the events that happened between May 14th 2017 08:23 and 08:28.

 

Get-VIEvent -Start (Get-Date -Day 14 -Month 5 -Year 2017 -Hour 8 -Minute 23) -Finish (Get-Date -Day 14 -Month 5 -Year 2017 -Hour 8 -Minute 28)


Viewing all articles
Browse latest Browse all 230663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>