Skip to content
WETNav
WinRMRemote Execution

Event ID 142: WSMan operation failed

Written when a WSMan operation fails, for example because the service refused the request or a policy blocked it. Records which operation failed.

Channel
Microsoft-Windows-WinRM/Operational
Logged by default
Yes
Written on
Source host, Target host
Volume
Moderate
Provider
Microsoft-Windows-WinRM
Needs a SACL
No

Key fields

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

operationNameName of the WSMan operation that failed
errorCodeError/status code for the failure
Have one of these events? Paste it into the decoder

Analyst notes

  • 01Clusters of 142 can indicate failed or blocked remoting attempts, including enumeration of hosts that do not permit WinRM.
  • 02Benign causes include misconfiguration, trusted-hosts restrictions and authentication mismatches; confirm the exact field names from the event body.

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-WinRM/Operational' -FilterXPath "*[System[(EventID=142)]]" -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 142 mean?
Written when a WSMan operation fails, for example because the service refused the request or a policy blocked it. Records which operation failed. It is written to the WinRM Operational log (Microsoft-Windows-WinRM/Operational).
Is event 142 logged by default?
Yes, a default Windows installation records it.
Where is event 142 recorded?
In the Microsoft-Windows-WinRM/Operational channel on the source host or target host.

Written when a WSMan operation fails, for example because the service refused the request or a policy blocked it. Records which operation failed. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.