Skip to content
WETNav
SecurityAuthentication

Event ID 4801: The workstation was unlocked

The workstation was unlocked.

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 unlocked the workstation
TargetDomainNameDomain of the account
TargetLogonIdLogon ID for correlation
SessionIdSession ID of the unlocked 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=4801)]]" -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 4801 mean?
The workstation was unlocked. It is written to the Windows Security log (Security).
Is event 4801 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 unlocked. Needs the "Other Logon/Logoff Events" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.