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.
| Field | What it tells you |
|---|---|
| User | Account that reconnected |
| SessionID | Session ID of the resumed session; matches the earlier 24 |
| Address | Source network address of the reconnecting client, or LOCAL |
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.
Related events
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.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderWritten 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.