问题描述
你好,
1.我想在远程计算机上创建一个新的customevent日志("My EventLog").
createEventSource(String,String,String)方法适合我的需求.
不幸的是,此方法已过时.
我的问题是:另两种选择不允许在远程计算机上创建事件日志(如果我输入错了,请纠正我).
http://msdn.microsoft.com/en-us/library/system. diagnostics.eventlog.createeventsource.aspx
因此,最简单的方法是创建一个新exe,并使用Psexe远程运行它.对吧?
2.我可以计算具有某些特定ID的事件日志条目吗?
问候,
Hello,
1. I want to create a new customevent log ( "My EventLog") on a remote machine.
createEventSource(String,String,String) method was perferct for my need.
Unfortenatly, this method is Obsolete.
My questions is: the two other alternatives don''t allow eventlog creation over a remote machine (correct me if I''m wrong).
http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog.createeventsource.aspx
So, my easiest way to do it- is be created a new exe and run it remotely with Psexe. right?
2. Could I count eventlog entries that have some specific ID ?
Regards,
推荐答案
这篇关于过时的createEventSource的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!