PowerTip: Get Latest Entry from Event Log with PowerShell
Summary: Use Windows PowerShell to get the latest entry from an event log.
How can I use Windows PowerShell to see the most recent entry from the application log?
Use the Get-EventLog cmdlet, specify the log name, and use the –Newest 1 parameter, for example:
Get-EventLog application -Newest 1