如何从命令行创建Windows EventLog源? - How to create Windows EventLog source from command line?

问题:

I'm creating an ASP.NET application that will log some stuff to Windows EventLog. 我正在创建一个ASP.NET应用程序,它将一些东西记录到Windows EventLog。 To do this an event source has to be created first. 要执行此操作,必须首先创建事件源。 This requires administrative priviledges so I cannot do it in the ASP.NET app. 这需要管理权限,所以我无法在ASP.NET应用程序中执行此操作。

Is there an existing command-line application that is bundled with Windows that can create an event log source, or must I roll out my own? 是否存在与Windows捆绑在一起的可以创建事件日志源的现有命令行应用程序,还是我必须自行推出?


解决方案:

参考一: https://en.stackoom.com/question/1sCh
参考二: https://stackoom.com/question/1sCh
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章