PowerTip: Find Most Recent Event Log Entry

Doctor Scripto

Dr Scripto

Summary: Use Windows PowerShell to find the most recent event log entry.

Hey, Scripting Guy! Question  How can I use Windows PowerShell to see the most recent event log entry from my application log?

Hey, Scripting Guy! Answer  Use the Get-EventLog cmdlet and select the application log and the Newest 1 entry:

Get-EventLog application -Newest 1


Leave a comment