Skip to content
WETNav
WinRMRemote Execution

Event ID 6: Creating WSMan session (client)

Written on the source host when the WinRM client creates a WSMan session, recording the connection string to the destination. The transport behind PowerShell Remoting and Invoke-Command.

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

connectionConnection string for the WSMan session, including the destination host and port (e.g. http://server:5985/wsman)
Have one of these events? Paste it into the decoder

Analyst notes

  • 01On the source host, 6 shows which servers a user targeted with WinRM/PowerShell Remoting, which is how you trace remote execution outward from a jump host.
  • 02Correlate the destination in the connection string with inbound WinRM shell creation (91) on that server and with Security 4624 Type 3 there.
  • 03Enterprise management and monitoring tools use WinRM heavily; baseline normal source/destination pairs before alerting.

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=6)]]" -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 6 mean?
Written on the source host when the WinRM client creates a WSMan session, recording the connection string to the destination. The transport behind PowerShell Remoting and Invoke-Command. It is written to the WinRM Operational log (Microsoft-Windows-WinRM/Operational).
Is event 6 logged by default?
Yes, a default Windows installation records it.
Where is event 6 recorded?
In the Microsoft-Windows-WinRM/Operational channel on the source host.

Written on the source host when the WinRM client creates a WSMan session, recording the connection string to the destination. The transport behind PowerShell Remoting and Invoke-Command. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.