如何從命令行創建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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章