Skip to content
WETNav
RDP sessionsRemote Desktop

Event ID 22: Remote Desktop shell start notification received

Written on the destination when the shell (desktop) starts for a session. Confirms the user reached an interactive desktop.

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

Key fields

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

UserAccount whose shell started, in DOMAIN\user form
SessionIDSession ID; join to the 21 for the same session
AddressSource network address of the client, or LOCAL for a console session
Have one of these events? Paste it into the decoder

Analyst notes

  • 0122 following 21 confirms the session progressed to an interactive desktop rather than stopping at authentication.
  • 02Absence of 22 after a 21 can mean the logon was rejected at the desktop stage or the session was for a non-interactive purpose.

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-TerminalServices-LocalSessionManager/Operational' -FilterXPath "*[System[(EventID=22)]]" -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 22 mean?
Written on the destination when the shell (desktop) starts for a session. Confirms the user reached an interactive desktop. It is written to the TerminalServices LocalSessionManager log (Microsoft-Windows-TerminalServices-LocalSessionManager/Operational).
Is event 22 logged by default?
Yes, a default Windows installation records it.
Where is event 22 recorded?
In the Microsoft-Windows-TerminalServices-LocalSessionManager/Operational channel on the target host.

Written on the destination when the shell (desktop) starts for a session. Confirms the user reached an interactive desktop. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.