Skip to content
WETNav
RDP sessionsRemote Desktop

Event ID 25: Remote Desktop session reconnection succeeded

Written on the destination when a user reconnects to an existing disconnected session. Records the user, session ID and source address.

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 that reconnected
SessionIDSession ID of the resumed session; matches the earlier 24
AddressSource network address of the reconnecting client, or LOCAL
Have one of these events? Paste it into the decoder

Analyst notes

  • 01Compare the Address on 25 with the Address on the original 21/24: a reconnect from a new IP can mean the session was resumed from a different, possibly attacker, host.
  • 02Correlate with Security 4778 (session reconnected) for the same user and session.

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=25)]]" -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 25 mean?
Written on the destination when a user reconnects to an existing disconnected session. Records the user, session ID and source address. It is written to the TerminalServices LocalSessionManager log (Microsoft-Windows-TerminalServices-LocalSessionManager/Operational).
Is event 25 logged by default?
Yes, a default Windows installation records it.
Where is event 25 recorded?
In the Microsoft-Windows-TerminalServices-LocalSessionManager/Operational channel on the target host.

Written on the destination when a user reconnects to an existing disconnected session. Records the user, session ID and source address. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.