Windows event log ยท Microsoft-Windows-SmbClient/Security31010 The SMB client failed to connect to the share

  • Defender and policy
  • 2 fields
  • Microsoft-Windows-SmbClient%4Security.evtx
  • Microsoft-Windows-SMBClient

Fields EvtxECmd extracts

2 columns in the EvtxECmd CSV

  • PayloadData1Share Name: %ShareName%
    • %ShareName% = /Event/EventData/Data[@Name="ShareName"]
  • PayloadData2Reason: %Reason%
    • %Reason% = /Event/EventData/Data[@Name="Reason"]

Value lookups

Codes that EvtxECmd turns into text

Reason

12
Access Denied.

Sample event

Event XML from the map file

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-SMBClient" Guid="{988c59c5-0a1c-45b6-a555-0c62276e327d}"/>
    <EventID>31010</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x200000000000100</Keywords>
    <TimeCreated SystemTime="1999-12-31T23:59:59.6168183Z"/>
    <EventRecordID>123456</EventRecordID>
    <Correlation/>
    <Execution ProcessID="0" ThreadID="0"/>
    <Channel>Microsoft-Windows-SmbClient/Security</Channel>
    <Computer>machine.domain.tld</Computer>
    <Security/>
  </System>
  <EventData>
    <Data Name="Reason">12</Data>
    <Data Name="Status">3221225506</Data>
    <Data Name="ShareNameLength">17</Data>
    <Data Name="ShareName">\fileserver\share</Data>
    <Data Name="ObjectNameLength">0</Data>
    <Data Name="ObjectName"/>
  </EventData>
</Event>

References

1 link

Source: evtx/Maps/Microsoft-Windows-SmbClient-Security_Microsoft-Windows-SMBClient_31010.map(opens in new tab) by Paul Elliott and contributors(opens in new tab), MIT License(opens in new tab)