Export-EventLog

This function will export the logname that you specify to the folder and filename that you provide. The exported file is in the native format for Event logs. This function leverages the System.Diagnostics.Eventing.Reader class to export the log of the local or remote computer

 
 
 
 
 
5 Star
(1)
4,329 times
Add to favorites
3/25/2013
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Doesn't work on Windows Server 2003
    2 Posts | Last post March 25, 2013
    • Even though the test matrix indicates this script was tested on Windows Server 2003 it doesn't really work because the 'System.Diagnostics.Eventing.Reader.EventLogSession' class is not supported.
    • That must have been a slip up or something on my part, my apologies, I'll remove that.