Search code examples
c#wmievent-viewer

How can I open Event Viewer from a web page using c#?


I have a requirement where I need to just open an Event Viewer to the internal users from an internal webpage. I have a link "Evetn Viewer" and a dropdown "Servers", when user select a server and click the link, I want to open the windows event viewer. How to do this?


Solution

  •     EventLogSession session = new EventLogSession(
            "RemoteComputerName",// Remote Computer
            "Domain",// Domain
            "Username",// Username
            pw,
            SessionAuthentication.Default);
    

    Read more here How to manage event logs using Visual C# .NET