1.

Solve : Clearing event logs?

Answer»

I need to use a BATCH file to AUDIT our workstations. I've found a few different downloadable .exes that will save and CLEAR audit logs, unfortunately, I can't use them because of regulations.

So, I need to write my own batch file to save the event logs (more specifically the security log), and then clear them. I've got a batch file working that will save the file to a different location with a time stamp, but for the life of me I cannot figure out how to clear the event logs. The only thing I've found is a site that mentioned saving off a cleared copy of the event logs, and then after saving them, overwrite them with the cleared copy. I'd rather not do it that way. If possible I'd like to find the command(s) that will clear the logs.

Any ideas?

Thanks!I am not sure of what your tring to do but ,as the web site suggested it would be SIMPLER to overwritre it or even DELETE the log every time and create a new one every time, it depends on your program .

Almn



Discussion

No Comment Found