I am forwarding events from 2 servers. Then querying the event ID on the collector
Get-WinEvent @{ LogName = ‘ForwardedEvents’; ID = 3101 }|sort TimeCreated -Descending | Select -First 1 -Unique
It works but now people are sending multiple jobs for the same event ID 3101 3 or 4 jobs are hitting the collector at the same time. I pick up on the event and run a scheduled task and script to set VM settings in VMM but it’s only catching the -First event. In task scheduler there is a setting to queue or run in parallel scheduled tasks but they don’t work.
Can someone offer some other ways?