Tools / Event IDs / Event ID 4778

Event ID 4778: session reconnected to a window station

What Event ID 4778 (session reconnected to a window station) means, the fields to check, what is normal and what is suspicious, with PowerShell and KQL queries to find it.

Log: Security · Severity: Informational · MITRE ATT&CK T1021.001 · Updated 2026-11-03

Event ID 4778 is logged when a user reconnects to an existing Windows session, typically an RDP session that was disconnected rather than logged off. It is often more useful than 4624 for RDP investigations because it records the client computer name and address of the reconnecting machine.

The fields that matter

FieldWhat it tells you
Subject > Account NameThe user reconnecting.
Session NameRDP-Tcp#N for RDP, Console for the local screen.
Client NameThe name of the computer the user connected from.
Client AddressIts IP address.
Logon IDLinks to the original 4624 for the session.

What is normal

Admins reconnecting to servers from their usual workstations or jump hosts.

When Event ID 4778 is suspicious

Common false positive: Fast user switching on shared workstations also logs 4778 with Session Name Console.

Find Event ID 4778 with PowerShell

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4778; StartTime=(Get-Date).AddDays(-7)} -MaxEvents 50 |
  ForEach-Object {
    $d = [ordered]@{ Time = $_.TimeCreated; Computer = $_.MachineName }
    ([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }
    [pscustomobject]$d
  } | Format-List

Microsoft Sentinel (KQL)

SecurityEvent
| where TimeGenerated > ago(7d) and EventID == 4778
| project TimeGenerated, Computer, Account, Activity, EventData
| order by TimeGenerated desc

Related events

FAQ

Why does a reconnect not always create a 4624 type 10?

Reconnecting to an existing session can log a 4624 with logon type 7 (unlock/reconnect) instead, which is easy to miss. 4778 is the clearer record.