Skip to content
WETNav
WinRMRemote Execution

Event ID 91: Creating WSMan shell (server)

Written on the destination when the WinRM service creates a shell for an incoming remote session. Marks the start of remote command execution over WinRM on that host.

Channel
Microsoft-Windows-WinRM/Operational
Logged by default
Yes
Written on
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.

shellIdIdentifier of the created WSMan shell; use it to tie subsequent operations to this remote session
Have one of these events? Paste it into the decoder

Analyst notes

  • 0191 on the destination is the inbound counterpart to 6 on the source: a shell was created for a remote caller.
  • 02Correlate with Security 4624 Type 3 using WinRM/Kerberos or NTLM at the same time, and with any PowerShell 4104 for the commands that ran in the shell.
  • 03PowerShell Remoting hosts commands under wsmprovhost.exe; pivot there via 4688/Sysmon 1.

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=91)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

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

Where it shows up

Investigations, attack signals and lateral movement techniques that rely on this event.

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 91 mean?
Written on the destination when the WinRM service creates a shell for an incoming remote session. Marks the start of remote command execution over WinRM on that host. It is written to the WinRM Operational log (Microsoft-Windows-WinRM/Operational).
Is event 91 logged by default?
Yes, a default Windows installation records it.
Where is event 91 recorded?
In the Microsoft-Windows-WinRM/Operational channel on the target host.

Written on the destination when the WinRM service creates a shell for an incoming remote session. Marks the start of remote command execution over WinRM on that host. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.