Skip to content
WETNav
SecurityObject Access

Event ID 5168: SPN check for SMB/SMB2 failed

SPN check for SMB/SMB2 failed.

Channel
Security
Logged by default
No
Written on
Any host
Volume
Moderate
Audit subcategory
File Share
Needs a SACL
No

To have this event

  • Enable File Share: auditpol /set /subcategory:"File Share" /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=5168)]]" -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 5168 mean?
SPN check for SMB/SMB2 failed. It is written to the Windows Security log (Security).
Is event 5168 logged by default?
No. It must be enabled before it is recorded. It is controlled by the "File Share" Advanced Audit Policy subcategory (Object Access).

SPN check for SMB/SMB2 failed. Needs the "File Share" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.