Yes it is:
Here is a sample to backup and eras the event log
set LogFileSet =
GetObject("winmgmts:{impersonationLevel=impersonate,(Backup)}").ExecQuery _
("select * from Win32_NTEventLogFile where LogfileName='Application'")
For each Logfile in LogFileSet
RetVal = LogFile.BackupEventlog("c:\BACKUP.LOG")
if RetVal = 0 then WScript.Echo "Log Backed Up"
RetVal = LogFile.ClearEventlog()
if RetVal = 0 then WScript.Echo "Log Cleared"
Next
Quote:
> Is there any way to erase the event logs using the WSH or WMI that comes
> with NT2000?
> Thanks,
> Arch Willingham