PowerTip: Use PowerShell to Display Event Viewer


Summary: Learn how to use Windows PowerShell to display the Event Viewer tool.

Hey, Scripting Guy! Question I often use the Event Viewer, but I have a hard time finding it or remembering its name.
           How can I use Windows PowerShell to see the Event Viewer?

Hey, Scripting Guy! Answer Use the Show-EventLog cmdlet—Tab expansion works so you do not have to type much,
           and it is easier to remember and type than EventVwr:

Show-EventLog

Comments (3)

  1. tommymaynard says:

    Just so it’s out there, eventvwr could also open a remote computer’s event viewer: eventvwr dc01.

  2. josefismael says:

    Typing "event viewer" into the start menu search bar does the same thing. Where the powershell cmd shines is automatically opening a remote computer’s event viewer:

    show-eventlog -computername

  3. rmr says:

    I like that a lot! thank you Josef.

Skip to main content