Hi again,
I have created a simple script to check through the event logs of a server for a specific event. I know i will be able to use this on a list of severs which is fine, and I know i can output this to csv which is also fine.
Gwmi Win32_NTLogEvent -comp server01 -filter "Eventcode=20491" | ft -prop computername,message
My problem is that the message field in the event logs can sometimes contain quite a few lines of text. in all my attempts to caoture the information i need i find that the output of the message field is limited and only displays the first 60 characters. Is there a way to increase this because I need the entire contents of the message field? i have tried using -auto and that does not seem to help.
I bet this is an easy one, but after a day of trying stuff and googling i'm stumped.
Any suggestions would be great.
Thanks
Lee