HighTechTalks DotNet Forums  

wmic to backup eventlogs on remote computers

Dotnet Framework (WMI) microsoft.public.dotnet.framework.wmi


Discuss wmic to backup eventlogs on remote computers in the Dotnet Framework (WMI) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?SmFtZXMgV2F0dHM=?=
 
Posts: n/a

Default wmic to backup eventlogs on remote computers - 08-13-2007 , 02:24 AM






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.




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.