Skip to content
WETNav
WMIExecution

Event ID 5858: WMI operation failed (client details)

Written when a WMI query or operation fails. Records the client machine, the user, the client process ID and the operation, which makes it valuable for attributing remote WMI activity.

Channel
Microsoft-Windows-WMI-Activity/Operational
Logged by default
Yes
Written on
Any host
Volume
High
Provider
Microsoft-Windows-WMI-Activity
Needs a SACL
No

Key fields

Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.

ClientMachineHost that issued the WMI operation; a remote name here indicates remote WMI
UserAccount under which the operation ran
ClientProcessIdPID of the client process that issued the operation
OperationThe WMI operation attempted, often including the WQL query text
ResultCodeHRESULT of the failed operation
PossibleCauseWMI's hint about why the operation failed
Have one of these events? Paste it into the decoder

Analyst notes

  • 015858 records both local and remote WMI operations that error, including the WQL text in Operation, which can reveal reconnaissance (for example querying Win32_Process, Win32_Service, or AD objects).
  • 02A ClientMachine that is not the local host points to remote WMI; correlate with Security 4624 Type 3 and with the source host's activity.
  • 03Noisy with benign failures; focus on remote ClientMachine values and suspicious query text.

Pull this event

Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.

Get-WinEvent -LogName 'Microsoft-Windows-WMI-Activity/Operational' -FilterXPath "*[System[(EventID=5858)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.

ATT&CK mapping

Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.

Common questions

What does Windows event ID 5858 mean?
Written when a WMI query or operation fails. Records the client machine, the user, the client process ID and the operation, which makes it valuable for attributing remote WMI activity. It is written to the WMI-Activity Operational log (Microsoft-Windows-WMI-Activity/Operational).
Is event 5858 logged by default?
Yes, a default Windows installation records it.
Where is event 5858 recorded?
In the Microsoft-Windows-WMI-Activity/Operational channel on the any host.

Written when a WMI query or operation fails. Records the client machine, the user, the client process ID and the operation, which makes it valuable for attributing remote WMI activity. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.