DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sun, 12 Aug 2007 23:24:00 -0700,    posted on: microsoft.public.dotnet.framework.wmi        back       

Thread Index
  1    James Watts James


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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us