wmic to backup eventlogs on remote computers
I am trying to make a batch file that will backup the event logs from several
remote computers. I am trying to use wmic to do this. I can do it fine on
the local machie but I can't get it to work for remote machines.
This is the command I am using.
wmic /node:"%%i" nteventlog where "Logfilename = 'System'" Call
BackupEventLog "%TMPFOLDER%\%%i\%%i-SYS-%evlogdate%.evt"
%%i is the remote computers name. When %%i is the local computer everything
works but when I set it to a remote computer all I get is a return value of
3. I am running the command as a domain admin.
Date:Sun, 12 Aug 2007 23:24:00 -0700
Author:
|