Windows logon types explained

Windows logon types are the numbers in the Logon Type field of events 4624, 4625 and 4634 that say how a logon session was created: at the keyboard (2), over the network (3), by a scheduled task (4), by a service (5), by an unlock (7) or through Remote Desktop (10), among others.

Security logLogons and sessionsChecked 1 December 2026

Why the logon type matters

The logon type is recorded in 4624 (successful logon), 4625 (failed logon), 4634 (logoff) and 4647 (user-initiated logoff), and the same account name in two logon events can mean two very different things. A domain administrator with a type 3 logon on a file server is someone opening a share. The same administrator with a type 10 logon on a receptionist's PC at 3 a.m. is someone sitting at a remote desktop on a machine they never use. The logon type is the first field an investigator reads, and the first filter in almost every logon query.

It also tells you what the logon left behind. Some types put reusable credentials into the memory of the computer (LSASS) or into LSA secrets on disk; others do not. That decides whether an attacker who later controls that computer can steal the credentials, which is why logon types come up again when scoping credential theft.

All logon types

TypeNameWhat creates it
0SystemOnly the SYSTEM account, at start-up.
2InteractiveA user at the keyboard of the computer, or at a virtual machine console. Also runas without /netonly.
3NetworkAccess to the computer over the network: file shares, admin shares (C$, ADMIN$), remote service control, WMI, printers, and the first step of RDP with Network Level Authentication.
4BatchA scheduled task running under a stored account.
5ServiceA service started under its configured account.
7UnlockA locked workstation was unlocked, or an RDP connection reconnected to an existing session.
8NetworkCleartextA network logon where the password reached the server in clear: IIS basic authentication, some PowerShell remoting with CredSSP or basic auth.
9NewCredentialsrunas /netonly: the process keeps the caller's identity locally but uses other credentials for network access.
10RemoteInteractiveRemote Desktop (RDP), Terminal Services and Remote Assistance sessions.
11CachedInteractiveAn interactive logon with cached domain credentials when no domain controller was reachable, typical for laptops away from the office.
12CachedRemoteInteractiveAn RDP logon using cached credentials.
13CachedUnlockAn unlock using cached credentials.

In Arcsentry the type is stored in event_log_logon_type as the number followed by the name, for example 3 - NETWORK, so queries can match on either part.

Each type in an investigation

Logon type 2: Interactive

A user at the keyboard of the computer, or at a virtual machine console. Also runas without /netonly. Logon Process User32; credentials are cached in LSASS memory for the session.

Look for: Interactive logons by service accounts or by admin accounts on ordinary workstations.

Logon type 3: Network

Access to the computer over the network: file shares, admin shares (C$, ADMIN$), remote service control, WMI, printers, and the first step of RDP with Network Level Authentication. By far the most common type. NtLmSsp or Kerberos as the logon process. Credentials are not left on the target.

Look for: Privileged accounts logging on from workstations to other workstations; NTLM for accounts that use Kerberos (pass the hash); new accounts.

Logon type 4: Batch

A scheduled task running under a stored account. Logon Process Advapi. The task itself is in 4698 and the Task Scheduler log.

Look for: Batch logons for accounts that never ran tasks before.

Logon type 5: Service

A service started under its configured account. Mostly SYSTEM, LOCAL SERVICE and NETWORK SERVICE. A service with a domain account leaves its password in LSA secrets.

Look for: Service logons by accounts that are not service accounts; new services in 7045 at the same time.

Logon type 7: Unlock

A locked workstation was unlocked, or an RDP connection reconnected to an existing session. Often follows a type 3 when RDP takes over a session that was already logged on.

Look for: Unlocks from a remote address at night: an RDP session taking over a user's desktop.

Logon type 8: NetworkCleartext

A network logon where the password reached the server in clear: IIS basic authentication, some PowerShell remoting with CredSSP or basic auth. Credentials were sent, and may be cached, in a recoverable form.

Look for: Any type 8 on servers that should not accept basic authentication.

Logon type 9: NewCredentials

runas /netonly: the process keeps the caller's identity locally but uses other credentials for network access. The Network Account Name field holds the other account; Logon Process seclogo.

Look for: Type 9 with Logon Process seclogo and no user at the keyboard is the pattern of tools that run a process with injected credentials (pass the hash, overpass the hash).

Logon type 10: RemoteInteractive

Remote Desktop (RDP), Terminal Services and Remote Assistance sessions. Logon Process User32. With NLA, preceded by a type 3. Credentials are cached on the target for the session unless Restricted Admin mode is used.

Look for: RDP from unexpected sources, at unusual hours, or by accounts that do not normally use RDP.

Logon type 11: CachedInteractive

An interactive logon with cached domain credentials when no domain controller was reachable, typical for laptops away from the office. No domain controller event exists for the logon.

Look for: Cached logons on servers or desktops that should always see a domain controller.

Types 12 (CachedRemoteInteractive) and 13 (CachedUnlock) are the cached-credential versions of RDP and unlock, and are rare. Type 0 appears only for SYSTEM at start-up.

RDP is two logons, sometimes three

With Network Level Authentication, which is on by default, Windows authenticates the user before the desktop session starts. The Security log then shows a type 3 logon followed a second or two later by a type 10. If the connection takes over a session that was already open (the same user was logged on, or a disconnected session is resumed), the second event is a type 7 unlock instead of a type 10.

In our Halden Freight lab case, the attacker's RDP connection to the second workstation shows exactly this: a type 3 logon for m.lund from the first workstation at 22:10:59 UTC and a type 7 at 22:11:01, because m.lund's desktop session was already open and the RDP connection took it over. The TerminalServices-LocalSessionManager log confirmed it with event 25 (session reconnection).

So when counting RDP sessions, count type 10 and type 7 logons from remote addresses, and confirm with the Remote Desktop logs: TerminalServices-LocalSessionManager (21 logon, 24 disconnect, 25 reconnect) and TerminalServices-RemoteConnectionManager (1149 authentication succeeded).

Which logon types leave credentials behind

Logon typeReusable credentials left on the target?
2 Interactive, 10 RemoteInteractiveYes, in LSASS memory for the session (for RDP, unless Restricted Admin mode or Remote Credential Guard is used)
4 Batch, 5 ServiceYes, the stored password is kept in LSA secrets on disk
8 NetworkCleartextYes, the password reached the server in clear
9 NewCredentialsYes, for the alternate account, in the source computer's memory
3 NetworkNo (the server receives proof of the password, not the password)
11 CachedInteractiveA cached verifier only, which is slow to crack

This is why "an administrator RDP'd to an infected machine" is a serious finding: the administrator's credentials were in the memory of a computer the attacker controlled. When scoping credential theft, list every privileged account with a type 2, 10, 4 or 5 logon on each compromised host during the intrusion window, and treat their passwords as exposed. Network logons (type 3) by the same accounts, for example from an admin workstation using management tools, did not leave reusable credentials and need no reset on that account for that host alone. Where an attacker had administrative control and an account's privileged session was open at the time, assume the credentials were taken: tools that read LSASS memory need only seconds.

The explicit credentials event 4648 and the special privileges event 4672 help with this scoping: 4648 shows where credentials were typed or supplied, and 4672 shows which sessions were administrative.

Logon type queries in Arcsentry

Logons per type, with the number of distinct accounts in each. This query is in the AQL reference, checked on the Halden Freight case:

filter event_code == "4624"
group {event_log_logon_type} (aggregate {n = count this, accounts = (dcount user_target_name)})
sort {-n}

Remote Desktop and unlock logons from other machines, with their sources:

filter event_code == "4624" && event_log_logon_type ~= "^(7|10) "
group {user_target_name, source_ip, event_log_logon_type} (aggregate {n = count this, first_seen = (earliest timestamp)})
sort {first_seen}

You rarely need to start from a query, though. Arcsentry rebuilds sessions from the logon, logoff and Remote Desktop events automatically, so the sessions view lists each session with its type, source, start, end and duration, and the graph draws who reached which host. See the Sessions lesson in the free course.

Frequently asked

What are the Windows logon types?

Windows records how each logon session was created as a logon type in events 4624, 4625, 4634 and 4647: 2 Interactive, 3 Network, 4 Batch, 5 Service, 7 Unlock, 8 NetworkCleartext, 9 NewCredentials, 10 RemoteInteractive (RDP), 11 CachedInteractive, 12 CachedRemoteInteractive and 13 CachedUnlock. Type 0 is used only by the SYSTEM account at start-up.

What is logon type 3?

A network logon: something accessed this computer over the network, such as a file share, an admin share, a remote service, WMI or a printer. It is also the first step of an RDP connection when Network Level Authentication is on. It is the most common logon type on servers.

What is logon type 10?

RemoteInteractive: a Remote Desktop (RDP) session. With Network Level Authentication enabled, each RDP logon also produces a type 3 logon a moment before the type 10.

What is a type 7 logon?

An unlock: a locked session was unlocked at the keyboard, or an RDP connection reconnected to an existing session (for example taking over a user's desktop).

What is logon type 5 in Windows?

A service logon: a service was started under its configured account. Nearly all type 5 logons are SYSTEM, LOCAL SERVICE or NETWORK SERVICE.

What is the difference between logon type 2 and 10?

Type 2 is a logon at the computer's own keyboard or console; type 10 is a logon through Remote Desktop from another computer. Both use the User32 logon process and give the user a desktop.

Which logon types leave credentials on the computer?

Interactive (2), RemoteInteractive (10, unless Restricted Admin mode or Remote Credential Guard is used), Batch (4), Service (5) and NetworkCleartext (8) leave reusable credentials in memory or LSA secrets. Network logons (3) do not, which is why administrators are advised to manage remote machines with network logons rather than RDP.

Sources

  • Microsoft Learn: 4624(S) An account was successfully logged on (logon types table)
  • Microsoft Learn: Administrative tools and logon types reference (credential exposure)
  • Venema Labs lab case: Halden Freight office intrusion, HF-WS02 Security and LocalSessionManager logs

See every logon session rebuilt, on your own evidence.

Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.

Request a trial