skip to content

How do you find out whether any client still uses SMBv1 on a Windows file server before switching it off?

level: middleimportance: must knowfreq 54%

answer

  1. three questions: enabled, asked, connected
  2. a server setting you can read unelevated
  3. an audit switch on the server
  4. event ID 3000 in an SMBServer audit log
  5. client side: events 32000 and 32002

basics

~10 s

On Windows, read EnableSMB1Protocol with Get-SmbServerConfiguration, turn on Set-SmbServerConfiguration -AuditSmb1Access $true, and watch event 3000 in the SMBServer\Audit log. Clients log events 32002 or 32000.

solid answer

~40 s

Ask three separate questions. Is the SMBv1 server enabled? `Get-SmbServerConfiguration | Format-List EnableSMB1Protocol` answers it without elevation. Is anything asking for it? Run `Set-SmbServerConfiguration -AuditSmb1Access $true`; each SMBv1 connection attempt then writes an event with ID 3000 to the `Microsoft-Windows-SMBServer\Audit` log. Who is connected right now, and on which dialect? `Get-SmbSession | Select-Object ClientComputerName, ClientUserName, Dialect`. On a Windows client, event 32002 (an SMB1 negotiate response was received) means SMBv1 is installed and was used, and event 32000 means it was offered but the client cannot negotiate it. Leave the audit on long enough to cover the slowest business cycle, then disable the server setting.

go deeper

for a junior

Recall the setting to read (EnableSMB1Protocol), the audit switch (AuditSmb1Access) and the event ID that proves use (3000).

for a middle

Explain the difference between the server setting, the audit trail and live sessions, and read the client events 32000 and 32002 correctly.

for a senior

Choose an audit window against real business cycles, use the evidence to decide, and keep the change ticket tied to what the log showed.

for a principal

Treat the log as the evidence that retires a protocol across many servers, and set the standard for how long auditing runs before enforcement.

## Three questions, three tools A review that asks "is anything still speaking SMBv1?" is really three different questions, and each has its own source on a Windows server. | Question | Source | Where | |---|---|---| | Is the SMBv1 server switched on? | `Get-SmbServerConfiguration`, property `EnableSMB1Protocol` | readable without elevation, per Microsoft | | Is the SMBv1 component present? | `Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol` | an elevated prompt | | Has anything tried to use it? | the server audit setting `AuditSmb1Access`, then event `3000` | `Microsoft-Windows-SMBServer\Audit` | | Which dialect is each client on right now? | `Get-SmbSession` (server) or `Get-SmbConnection` (client), property `Dialect` | live sessions only | ## The audit step by step 1. Read the current state: `Get-SmbServerConfiguration | Select AuditSmb1Access`. 2. Turn auditing on: `Set-SmbServerConfiguration -AuditSmb1Access $true`. 3. Let it run. Microsoft's page says each time a client attempts to use SMBv1 to connect to a server, an entry with event ID 3000 appears in the `Microsoft-Windows-SMBServer\Audit` event log. The page does not list the entry's fields, so read one entry in your own log to see what it names, and match it to the device. 4. Decide from the log, not from the absence of complaints: a quiet week can miss the month-end job or the nightly batch job. Microsoft gives no duration, so choose a window that spans your longest business cycle. 5. Turn the server's SMBv1 off with `Set-SmbServerConfiguration -EnableSMB1Protocol $false`. This cmdlet needs no restart; the feature-based route, `Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol`, restarts the computer. ```powershell # Is the SMBv1 server enabled, and is auditing on? Get-SmbServerConfiguration | Format-List EnableSMB1Protocol, AuditSmb1Access # Turn on auditing, then read event 3000 in Microsoft-Windows-SMBServer\Audit Set-SmbServerConfiguration -AuditSmb1Access $true # Who is connected right now, and on which dialect? Get-SmbSession | Select-Object ClientComputerName, ClientUserName, Dialect ``` ## The client's side of the story On a Windows client the same retirement shows up in `Microsoft-Windows-SmbClient/Security`: - **Event 32002**: "The local computer received an SMB1 negotiate response." The client has the SMBv1 client installed and a remote server wanted SMBv1. Microsoft says this event also drives the 15-day timer used by the automatic uninstaller on Windows 10 Home and Pro. - **Event 32000**: "SMB1 negotiate response received from remote device when SMB1 cannot be negotiated by the local computer." The SMBv1 client is disabled or uninstalled, so the connection fails. This is the event that shows why user-facing errors such as "You can't connect to the file share because it's not secure. This share requires the obsolete SMB1 protocol" and `System Error 64` appear. The two events together tell you a device is SMBv1-only and which side of your estate is affected. ## Reading the result - **Entries for a device you own and can update.** Ask the vendor for a build that supports SMB 2.0.2 or later. Microsoft's page points at the SMB1 Product Clearinghouse for which vendors have done so. - **Entries from a legacy application that depends on SMBv1 behaviour such as no oplocks.** Microsoft names workarounds only as a last resort and only when the vendor says they are required; one is a share's leasing mode, set with `New-SmbShare` or `Set-SmbShare -LeasingMode None`, which Microsoft says must not be used on user-data shares. - **No entries across a full cycle and `EnableSMB1Protocol` already false.** The evidence supports leaving it off. Who bears the cost of retiring the last consumer is a different question, owned elsewhere. ## Evidence for the change record 1. The date auditing was turned on and the window it covered. 2. The count of event 3000 entries in `Microsoft-Windows-SMBServer\Audit` for that window, and the device behind each one. 3. The value of `EnableSMB1Protocol` before and after the change. 4. For each consumer found, its owner and the date of its replacement or exception. ## Traps - `Get-SmbServerConfiguration` reports the server's setting; it does not prove nothing connects. Only the audit trail does. - `Get-SmbSession` shows sessions at this instant. A job that runs at 02:00 will not be in a query at 10:00. - SMBv1 attempts logged on a server are attempts by clients; the client events help you find the same traffic from the other end.

  • On a Windows client, how do event 32000 and event 32002 differ?
    Both are in Microsoft-Windows-SmbClient/Security and concern an SMB1 negotiate response. 32002 says the client received one and has SMBv1 installed; Microsoft notes it also feeds the automatic uninstaller's 15-day timer. 32000 says the client received one but cannot negotiate SMBv1 because it is disabled or uninstalled, so the connection fails.
  • How long should AuditSmb1Access stay on before you disable the SMBv1 server?
    Microsoft's page gives no duration. Choose a window that spans your slowest cycle, for example month-end jobs, scheduled exports and backup runs, because rare consumers are the ones that break after the switch. Record the window in the change ticket with the evidence that no event 3000 appeared.
  • Does Set-SmbServerConfiguration -EnableSMB1Protocol $false require a restart?
    Microsoft's page says you do not have to restart the computer after running Set-SmbServerConfiguration. Using the optional feature route, Disable-WindowsOptionalFeature or Enable-WindowsOptionalFeature, does restart the computer, as the same page notes.

  • No complaints this week means no SMBv1 traffic
  • EnableSMB1Protocol false proves nothing ever asked for SMBv1
  • Get-SmbSession history lists past SMBv1 attempts
  • Event 32000 means the client successfully used SMBv1
  • Disabling SMBv1 always needs a restart