問題:
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