Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Message is incorrectly blank when you query Win32_NTLogEvent WMI objects in Windows 10


View products that this article applies to.

Symptoms

When you query Win32_NTLogEvent Windows Management Instrumentation (WMI) objects on a Windows 10-based computer, you notice the Message variable of the returned data is blank. However, the message in the associated event log entry is not blank when you view it in Event Viewer or by using the Get-EventLog cmdlet.

For example, to find the events objects that are affected by this issue, you run the following cmdlet in Windows PowerShell:

Get-WmiObject Win32_NTLogEvent -Filter "Logfile='Application'" | where {$_.Message -eq $null}


The object that has the issue may be displayed as the following:


Then, you run the following cmdlet to display the associated event:

Get-EventLog -LogName Application -Index 37386 | fl


This cmdlet shows the following results:

↑ Back to the top


Status

This behavior is by design. The WMI provider, NTEVT, decodes events differently than EventViewer or Get-EventLog do. Therefore, the messages that cannot be decoded are returned blank.

↑ Back to the top


Keywords: kb, kbsurveynew

↑ Back to the top

Article Info
Article ID : 4456701
Revision : 10
Created on : 8/15/2018
Published on : 8/15/2018
Exists online : False
Views : 964