logparser Message with error codes

Posted by nsr81 on Server Fault See other posts from Server Fault or by nsr81
Published on 2009-10-21T14:05:48Z Indexed on 2010/03/23 23:03 UTC
Read the original article Hit count: 504

Filed under:
|

Hi All,

Is there anyway to get complete error message using LogParser?

When I run the following query:

logparser -i:EVT -o:NAT "SELECT TimeGenerated,EventID,Message from System WHERE EventTypeName='Error event'"

I get the following output:

2009-09-02 19:35:44 7000    The USB Mass Storage Driver service failed to start due to the following error: %%1058

The full "Message" in EventViewer is:

Description: The USB Mass Storage Driver service failed to start due to the following error:
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

How can I obtain complete message using logparser?

© Server Fault or respective owner

Related posts about LogParser

Related posts about event-log