Skip to content
WETNav

LogonTypeDepends on context

2: Interactive

Logon at the keyboard or through a console session (including KVM and some VM consoles).

How to read it

Interactive logons cache credentials in LSASS. A Type 2 logon by a domain admin on a workstation leaves reusable credentials on that machine. Unexpected Type 2 logons on servers deserve a look at who has physical or console access.

Find it

Get-WinEvent -LogName 'Security' -FilterXPath "*[System[(EventID=4624)]] and *[EventData[Data[@Name='LogonType']='2']]" -MaxEvents 100

About LogonType

LogonType says how a session was created. It is the first field to read on any 4624 or 4625, because the same account means very different things over the console, the network or RDP.

Every LogonType value →

Questions

What does LogonType 2 mean?
Interactive. Logon at the keyboard or through a console session (including KVM and some VM consoles). Interactive logons cache credentials in LSASS. A Type 2 logon by a domain admin on a workstation leaves reusable credentials on that machine. Unexpected Type 2 logons on servers deserve a look at who has physical or console access.
Is LogonType 2 a sign of an attack?
It depends on the context around it. Confirm it with the surrounding events: who made the request, from where, and what happened next.
Where is LogonType 2 recorded?
In the LogonType field of Windows Security event 4624 (An account was successfully logged on), Windows Security event 4625 (An account failed to log on), Windows Security event 4634 (An account was logged off).
How do I search for LogonType 2?
The queries on this page filter for it in PowerShell, Microsoft Sentinel and the source's own tools. Paste a full record into the WETNav decoder to see every other field explained too.