Event ID 31010: SMB client failed to connect to a share
Written on the client when a connection to a share fails after the session was set up, for example because access was denied or the share does not exist. Records the share path and the error.
- Channel
- Microsoft-Windows-SMBClient/Security
- Logged by default
- Yes
- Written on
- Source host
- Volume
- Low
- Provider
- Microsoft-Windows-SMBClient
- Needs a SACL
- No
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| ShareName | Share path the client tried to connect to, in \\server\share form (for example \\FS01\C$ or \\FS01\ADMIN$) |
| Status | NTSTATUS of the failure, for example 0xC0000022 (access denied) or 0xC00000CC (bad network name: the share does not exist) |
| Reason | Numeric reason recorded with the failure |
Analyst notes
- 01On the source host, failed connections to C$ or ADMIN$ on several machines in a row are the footprint of admin share sweeps and of lateral movement tools tried with an account that lacks local admin rights on the targets.
- 02Authentication succeeded (a failure there would be a 31001); the account was refused at the share. Correlate with SMBServer 1006 on the destination, or Security 5140/5145 there if file share auditing is on.
- 03Bad network name failures across many hosts can indicate share discovery against a list of guessed share names.
- 04Logon scripts and mapped drives pointing at retired shares produce steady, repetitive 31010s; baseline them.
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 'Microsoft-Windows-SMBClient/Security' -FilterXPath "*[System[(EventID=31010)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
ATT&CK mapping
Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.
Related events
Common questions
- What does Windows event ID 31010 mean?
- Written on the client when a connection to a share fails after the session was set up, for example because access was denied or the share does not exist. Records the share path and the error. It is written to the SMBClient Security log (Microsoft-Windows-SMBClient/Security).
- Is event 31010 logged by default?
- Yes, a default Windows installation records it.
- Where is event 31010 recorded?
- In the Microsoft-Windows-SMBClient/Security channel on the source host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderWritten on the client when a connection to a share fails after the session was set up, for example because access was denied or the share does not exist. Records the share path and the error. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.