I am trying to export the Security and System event logs to csv. I am able to run these separately:
Get-WinEvent -Path "C:\Users\ABC\Desktop\Automated Event Logs\Security.evtx" -FilterXPath "*[System[(EventID=4800 or EventID=4801 or EventID=4802 or EventID=4803)]]" Get-WinEvent -Path "C:\Users\ABC\Desktop\Automated Event Logs\System.evtx" -FilterXPath "*[System[(EventID=6005 or EventID=6006 or EventID=6008)]]"But I want to run them together so it is grouped cleanly in the CSV. Is there a way to use multiples paths and filterxpaths?