|
|
|
Требуется помощь со скриптом
|
|||
|---|---|---|---|
|
#18+
Есть скрипт для выгрузки сообщений из журнала безопасности windows: авторOption Explicit Dim cn, rs, oLocator, oSvc, oColEvents, oColEventLog, Item, oLogFile Set cn = CreateObject("ADODB.Connection") cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\EventLog.mdb" cn.Open Set rs = CreateObject("ADODB.Recordset") rs.CursorType = 3 rs.LockType = 3 rs.Open "Events", cn Set oLocator = CreateObject("wbemScripting.Swbemlocator") Set oSvc = oLocator.ConnectServer() Set oColEvents = oSvc.ExecQuery _ ("Select * from Win32_NTLogEvent WHERE Logfile = 'system'") For Each Item In oColEvents rs.AddNew rs("CompName") = Item.ComputerName rs("UserName") = Item.User rs("EventType") = Item.Type rs("EventCode") = Item.EventCode rs("Message") = Item.Message rs("TimeWritten") = Item.TimeWritten rs.Update Next Set oColEventLog = oSvc.ExecQuery _ ("SELECT * FROM Win32_NTLogEvent WHERE Logfile = 'system'") For Each oLogFile In oColEventLog Next WScript.Echo "Done" Вопрос возможно ли сделать что бы скрипт отбирал определенные события по полю Item.Message? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.10.2008, 13:31 |
|
||
|
|

start [/forum/topic.php?fid=22&fpage=318&tid=1455809]: |
0ms |
get settings: |
11ms |
get forum list: |
20ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
81ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
36ms |
get tp. blocked users: |
2ms |
| others: | 247ms |
| total: | 420ms |

| 0 / 0 |
