Skip to content
WETNav
SecurityObject Access

Event ID 4665: An attempt was made to create an application client context

An attempt was made to create an application client context.

Channel
Security
Logged by default
No
Written on
Any host
Volume
Low
Audit subcategory
Application Generated
Needs a SACL
No

To have this event

  • Enable Application Generated: auditpol /set /subcategory:"Application Generated" /success:enable /failure:enable

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=4665)]]" -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 4665 mean?
An attempt was made to create an application client context. It is written to the Windows Security log (Security).
Is event 4665 logged by default?
No. It must be enabled before it is recorded. It is controlled by the "Application Generated" Advanced Audit Policy subcategory (Object Access).

An attempt was made to create an application client context. Needs the "Application Generated" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.