Skip to content
WETNav
SecurityAuthentication

Event ID 4800: The workstation was locked

The workstation was locked.

Channel
Security
Logged by default
No
Written on
Any host
Volume
Low
Audit subcategory
Other Logon/Logoff Events
Needs a SACL
No

To have this event

  • Enable Other Logon/Logoff Events: auditpol /set /subcategory:"Other Logon/Logoff Events" /success:enable /failure:enable

Key fields

Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.

TargetUserNameAccount that locked the workstation
TargetDomainNameDomain of the account
TargetLogonIdLogon ID for correlation
SessionIdSession ID of the locked session
Have one of these events? Paste it into the decoder

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 'Security' -FilterXPath "*[System[(EventID=4800)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.

Common questions

What does Windows event ID 4800 mean?
The workstation was locked. It is written to the Windows Security log (Security).
Is event 4800 logged by default?
No. It must be enabled before it is recorded. It is controlled by the "Other Logon/Logoff Events" Advanced Audit Policy subcategory (Logon/Logoff).

The workstation was locked. Needs the "Other Logon/Logoff Events" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.