I am looking for ideas on how to save and clear event logs on multiple servers through use of a script.
There used to be a tool for Windows Server 2000 called "Eventlog.pl" that could save and clear event logs remotely. I haven't found anything that does this in Windows Server 2003 unless I'm missing something obvious. How else can I go about this?
I am on Windows Server 2003 with a Domain.
There is a SysInternals-tool you can use for this now called PSLogList. This replaces the EventLog.pl from Windows 2K.
You would need to use the
-c
option to clear the logs after the command and-g
to specify the file. (for some strange reason -g is not in the usage-help).If you are after a command you can execute remotely, you would need something like this: