Powershell Get-Winevent with Out-Gridview

Using powershell to get Windows events with out-gridview.  How can I get the fill message in the message column?  It seems to stop at the first blank line.

Get-WinEvent -FilterHashTable @{LogName="ForwardedEvents"; ID=4624} | out-Gridview

Open in new window

This produces the attached screenshot.  The full message is not shown.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jose Gabriel Ortega CEE Solution Guide - CEO Faru Bonon ITCommented:
Get-WinEvent -LogName ForwardedEvents | Out-Gridview

Open in new window

It's not a blank line that it has a problem with, just results that include more than 9 lines.  I've seen some suggestions of modifying the troublesome property contents to strip out newline characters.  For example:
Get-WinEvent -FilterHashTable @{LogName="ForwardedEvents"; ID=4624} | Select TimeCreated,Id,LevelDisplayName,@{n="Message";e={$_.Message -replace "\n"}} | Out-GridView

Open in new window

This will work for your specific scenario, but frankly I don't see this as a scalable solution, when you might have various properties with contents that the parser for Out-GridView may truncate.  So in other scenarios like that I would recommend you find a workflow that doesn't rely on Out-GridView.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
credogAuthor Commented:
Solution worked.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.