PowerTip: Find Latest Events in Windows Event Log


Summary: Learn how to quickly find the latest events in a Windows event log.

Hey, Scripting Guy! Question How can I use Windows PowerShell to look in the Application log to see the latest events?

Hey, Scripting Guy! Answer Use the Get-Eventlog cmdlet, specify the log name, and select newest events, for example:

Get-EventLog application -Newest 5

Comments (1)

  1. AlcoIT says:

    Great tip, now how to format or export to a file so that the columns don’t exclude information (output typically shows ellipses, like Message = ‘The sto…’)

Skip to main content