Been racking my brain on this for a while now. Here’s the scenario:
I’m collecting event logs from multiple computers. I want only want to see the unique events, so what I was originally doing what using Sort-Object with the -Unique parameter. The problem that I’ve run into is that it uniques it across the board. Rather than unique it across the board, I want to unique it per server.
I suspect I’m overlooking the obvious somewhere here. Right now, all the events are being stored in one variable. I’m imagining that will have to change, but I’m not even sure where to begin at this point.
Would be much appreciated for some pointers/direction to help me get past this mental block I can’t seem to figure out.
Thanks in advance!