Hi
I am trying to display the eventlogs using the below wmi and diverting the output to the richtextbox. Everything is working perfectly. However if the message property value is long. It is messing the alignment.
gwmi win32_ntlogevent -filter "logfile ='application'" -computername $computer | select computername,sourcename,eventcode,Timegenerated,Message
I am getting the output as below if the message property value is long.
I want to align this message property correctly. So it should not be displayed below under computername property.