Login | |
|
 |
RE: Delete Specific Events From Event Viewer - 5/6/2008 12:26:25 AM
|
|
 |
|
| |
dm_4ever
Posts: 2433
Score: 38
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
In regards to your error... Your connection needs to be slightly modified Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate,(Security,Backup)}!\\" & _ strComputer & "\root\cimv2") and... you are receiving (Null) because the Win32_NTEventLog does not have an EventCode property making your query invalid. ClearEventLog either clears the whole thing or is does not...it does not look like you can delete specific entries. "SELECT * FROM Win32_NTEventLogFile WHERE LogFileName='Security' and EventCode='560'"
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|