Tuesday, 17 March 2015

Get Event Log into text file

If Event Viewer is not working. In that case we can get log into one text file. For that execute below command on windows  powershell.

Get-EventLog  Application -Newest 10 -Source PPAP | Format-List | Out-File "C:\log.text"

10 - indicate latest 10 log.
You can replace with any number.

No comments:

Post a Comment