October 10th, 2015

PowerTip: Find Latest Events in Windows Event Log

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.