Hi

$_objWMIQuery="SELECT * FROM Win32_NTLogEvent WHERE Logfile='System' and EventCode=10005"
$_colItems = $_objWMIService.ExecQuery($_objWMIQuery,,48)
If @ERROR $_colItems = 0 Exit Val('&' + Right(DecToHex(@ERROR), 4)) EndIf
For Each $_objItem In $_colItems
?$_objItem.Message
Next
$_colItems = 0

Above mentioned code is displaying the following output.

"COM got error "%1058" attempting to start the service wuauserv with arguments "
in order to run the server:
{E60687F7-01A1-40AA-86AC-DB1CBF673334}

where as the actual Message in the system event log is as follows.

DCOM got error "The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. " attempting to start the service wuauserv with arguments "" in order to run the server:
{E60687F7-01A1-40AA-86AC-DB1CBF673334}

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

How can i display the whole message correctly?