Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. $files = @("System_09","System_10","System_11","System_12","System_13","System_14","System_15","System_16","System_17","System_19")
  2. $pathToFollow = "\JEPXS00501BackupsJTSWin_EVNT_Log2-17-2017"
  3. ForEach ($file in $files){ Get-WinEvent -Path $pathToFollow$file".evtx" | Export-CSV -Path $pathToFollow$File".CSV" }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement