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.
| Field | What it tells you |
|---|---|
| shellId | Identifier of the created WSMan shell; use it to tie subsequent operations to this remote session |
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.
- Lateral movementWinRM and PowerShell RemotingDestination: The WinRM service creating a shell (session) on the destination for the inbound request.
- InvestigationWhat did PowerShell run on this host?Spot remoting and console start-up
- InvestigationWhere did this account log on, and was it used for lateral movement?Confirm lateral movement by technique
- InvestigationWhen did the attacker first get in? Building the initial access timelineIdentify the remote-entry channel
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 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.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderWritten 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.