View Only
  • 1.  Get-VIEvent start time

    Posted Mar 31, 2022 10:16 AM

    Hi All,

    new at PowerCLI.

    I can see that the events for a VM on Vsphere shows events dating back two months, but when I run the Get-VIEvent -Start $start, I still get only the latest three hours of information.

    Is there a better way to keep track of filtered events? I need to set up  a tracking script that will run once a day to check my users' usage of VMs.

  • 2.  RE: Get-VIEvent start time
    Best Answer

    Posted Mar 31, 2022 10:39 AM

    Did you include the MaxSamples parameter?
    By default only 100 events are returned.

    At something like this