Save (and clear) Windows Event Logs


/ Published in: DOS Batch
Save to your folder(s)

Uses the sysinternals (microsoft) utility PsLogList to save specified event logs to files and then clears them. Method can be used to save logs as .evt and .evtx. This script has four event logs listed as an example and has a template command commented. Tested on a local windows 7 machine, but should work for xp, server 2k3 and 2k8.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.