Event Viewer可正常访问远程安全日志但Log Parser查询失败(RPC错误),求问两者连接方式差异
Event Viewer可正常访问远程安全日志但Log Parser查询失败(RPC错误),求问两者连接方式差异
我最近用Log Parser批量查询几台域控制器(DC1、DC2、DC3)的安全日志时碰了壁——查询直接失败,提示「远程过程调用失败」,但用Event Viewer(真的不想用这个工具😅)却能正常连接并查看这些远程安全日志。
我现在特别好奇:Event Viewer到底用了什么连接方式,是Log Parser没用到的?才导致两者表现差异这么大?
下面是我执行的Log Parser命令:
C:\Program Files (x86)\Log Parser 2.2>LogParser -e:1 "SELECT EventId, RecordNumber, EventId, SourceName, TO_STRING( TO_UTCTIME( TimeGenerated ), 'yyyy-MM-dd hh:mm:ss.ll' ), Strings INTO 'C:\l*.csv' FROM \\DC1\Security, \\DC2\Security, \\DC3\Security WHERE TimeGenerated >= TO_LOCALTIME( SUB( SYSTEM_TIMESTAMP(), TIMESTAMP( '1', 'd' ) ) ) AND EventId=4740 ORDER BY RecordNumber DESC"
执行后得到的错误信息:
Task aborted.
Error reading event log: The remote procedure call failed.
备注:内容来源于stack exchange,提问作者leeand00
相关产品推荐
相关产品推荐

