Powershell output is not very readable.

I am querying the system event log on Windows server 2012 with get-winevent. Part of the return is truncated, even with adding -auto to the end, it also does not look like below, its all jumbly.
Here is the one-liner I am using.
Get-WinEvent -FilterHashtable @{logname='system'; id=1; providername='Microsoft-Windows-Kernel-General'}|ft -auto

Open in new window

This is an example of the output
10/20/2016 9:18:10 PM  1 Information      The system time has changed to ‎2016‎-‎10‎-‎21T02:18:10.753000000Z from ‎2016‎-‎10‎-‎21T02:18:10.761874800Z....

Open in new window

LVL 1
SquigglyMonkeyAsked:
Who is Participating?
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
'...' means that the output is truncated.
Event log entries are usually verbose, and that contradicts a tabular output with full data. However, you can try if adding -wrap to format-table improves the experience.
1
 
SquigglyMonkeyAuthor Commented:
I changed the Font and it looks a more normal now. there are vertical lines between many of the numbers, and for some reason they displayed as rectangles and that was causing the text to run over each other. Not sure why there are' ... 'at the end of the line though.
0
 
SquigglyMonkeyAuthor Commented:
Thanks Qlemo,  that is showing all the information now, how can I get it all on one line, and not wrap?
0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
Therefore you would need a console window wide enough to hold all information - won't work ;-)
0
 
SquigglyMonkeyAuthor Commented:
Thanks Qlemo!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.