Automation

 View Only
  • 1.  Question regarding querying vmware events using powerCLI

    Posted Oct 31, 2023 12:43 AM

    I'm trying to optimize the code below. It runs fine and gives me the results I need, but it takes close to 15 mins to run. Is there any way to optimize it? Basically I just want to output events for the last 14 days to pull information on who added a specific tag for a server and the timestamp it was added. As I mentioned the code below works perfectly and gets me exactly what I need, I just hope to speed it up. Thanks in advance!

     



  • 2.  RE: Question regarding querying vmware events using powerCLI

    Posted Oct 31, 2023 08:04 AM

    You could try with my Get-VIEventPlus function, that is most of the time faster than the Get-ViEvent cmdlet.



  • 3.  RE: Question regarding querying vmware events using powerCLI

    Posted Oct 31, 2023 07:38 PM

    Thank you that was a huge help. It runs MUCH faster!