积极答复者
C#读取局域网内计算机的TaskScheduler日志信息

问题
答案
-
你好:
欢迎来到MSDN中文论坛!
这个功能是可以实现的,请参考MSDN文档:如何:查询事件
文档中的实例代码已经告诉你如何去查询远程计算机的EventLog,请尝试运行一下看是否符合你的需求:
public void QueryRemoteComputer() { string queryString = "*[System/Level=2]"; // XPATH Query SecureString pw = GetPassword(); EventLogSession session = new EventLogSession( "RemoteComputerName", // Remote Computer "Domain", // Domain "Username", // Username pw, SessionAuthentication.Default); pw.Dispose(); ...... ......
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 Cooper.AsP 2014年3月26日 5:59
全部回复
-
你好:
欢迎来到MSDN中文论坛!
这个功能是可以实现的,请参考MSDN文档:如何:查询事件
文档中的实例代码已经告诉你如何去查询远程计算机的EventLog,请尝试运行一下看是否符合你的需求:
public void QueryRemoteComputer() { string queryString = "*[System/Level=2]"; // XPATH Query SecureString pw = GetPassword(); EventLogSession session = new EventLogSession( "RemoteComputerName", // Remote Computer "Domain", // Domain "Username", // Username pw, SessionAuthentication.Default); pw.Dispose(); ...... ......
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 Cooper.AsP 2014年3月26日 5:59
-
我没有环境进行测试,但是你可以在Server2003的服务器上自己尝试一下。根据我的经验,MSDN文档中关于平台的说明并不完全正确,最好通过自己的尝试来确定结果。
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.