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.
| Field | What it tells you |
|---|---|
| ClientMachine | Host that issued the WMI operation; a remote name here indicates remote WMI |
| User | Account under which the operation ran |
| ClientProcessId | PID of the client process that issued the operation |
| Operation | The WMI operation attempted, often including the WQL query text |
| ResultCode | HRESULT of the failed operation |
| PossibleCause | WMI's hint about why the operation failed |
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.
Related events
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.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderWritten 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.