PowerTip: Find Latest Events in Windows Event Log

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon