Please help :(
I have no problem running the script from the local machine, but when I try
to run it on a remote computer I get a listing of the eventlog types and
nothign else. A look trhough the wmi logs found this error;
NTLMLogin resulted in hr = 0x8004100e
****************
Set objWMIService = GetObject("winmgmts:\\" & REMOTE_SERVER & "\root\cimv2")
Set colLogFiles = objWMIService.ExecQuery _
("Select * from Win32_NTEventLogFile where LogFileName='Security'")
For Each objLogfile in colLogFiles
errBackupLog = objLogFile.BackupEventLog("c:\scripts\Security.evt")
If errBackupLog <> 0 Then
Wscript.Echo "The Security event log could not be backed up."
Else
objLogFile.ClearEventLog()
End If
Next