Backup sytem event log using batch script

Is there is any way to backup the system event log as text file by using batch script, since it has to be performed automatically as scheduled.
ksbalamuralikrishnaSenior ManagerAsked:
Who is Participating?
mastooConnect With a Mentor Commented:
If you don't want to trust a straight copy you might consider something like this:

EventQuery.vbs /V /FO TABLE /L SYSTEM > mysystem.txt

which dumps the system log to the specified file.  If you don't have EventQuery, download the windows resource kit.  It also lets you do remote systems, other logs, and output as csv.  Although the output files are searchable in any text editor, they aren't something that you can load up in the event viewer.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.