skip to content

Before requiring SMB signing or encryption across a mixed estate, how do you find which clients and servers would break?

level: seniorimportance: should knowfreq 22%

answer

  1. log first, enforce second
  2. four audit parameters, two sides
  3. client audit finds servers, server audit finds clients
  4. events 3021, 3022, 31998, 31999
  5. Windows 11 24H2 and Server 2025

basics

~10 s

Enable the SMB audit parameters first: AuditClientDoesNotSupportSigning and AuditClientDoesNotSupportEncryption on servers, AuditServerDoesNotSupportSigning and AuditServerDoesNotSupportEncryption on clients. They only log, so read the events, fix or replace what shows up, then require.

solid answer

~30 s

Turn on auditing before enforcing, because the audit settings log without refusing anything. On a server, `Set-SmbServerConfiguration -AuditClientDoesNotSupportSigning` and `-AuditClientDoesNotSupportEncryption` record clients that connect without them (events 3021 and 3022 in `Applications and Services Logs\Microsoft\Windows\SMBServer\Audit`). On a client, `Set-SmbClientConfiguration -AuditServerDoesNotSupportSigning` and `-AuditServerDoesNotSupportEncryption` record servers that lack them (events 31998 and 31999 in `...\SMBClient\Audit`). These are documented for Windows 11, version 24H2 and Windows Server 2025. Collect over a full business cycle, fix or replace what appears, then require signing, then encryption.

code

powershell · 5 lines
powershell
# files01.example.internal: log clients that connect without signing
Set-SmbServerConfiguration -AuditClientDoesNotSupportSigning $true

# pilot workstation: log servers that cannot sign
Set-SmbClientConfiguration -AuditServerDoesNotSupportSigning $true

go deeper

for a junior

Recall that Windows can log devices that do not support signing or encryption before you make them mandatory.

for a middle

Name the four audit parameters and which cmdlet each belongs to, and say that they log without refusing anything.

for a senior

Give the evidence trail: server events 3021 and 3022 in SMBServer\Audit, client events 31998 and 31999 in SMBClient\Audit, read over a full business cycle before enforcing.

for a principal

Own the staging policy: audit first, remediate with owners and dates, enforce signing before encryption, and keep the empty log as the record that supports the change.

## What the four settings log SMB signing and encryption are easy to require and hard to undo when something stops working, so Windows 11, version 24H2 and Windows Server 2025 added audit-only parameters. Each one writes an event when the condition occurs and changes nothing about whether the connection succeeds. | Setting | Cmdlet | Records | Log | |---|---|---|---| | `AuditClientDoesNotSupportSigning` | `Set-SmbServerConfiguration` | A client connected to this server without message signing | `SMBServer\Audit` | | `AuditClientDoesNotSupportEncryption` | `Set-SmbServerConfiguration` | A client that does not list SMB encryption in its capabilities | `SMBServer\Audit` | | `AuditServerDoesNotSupportSigning` | `Set-SmbClientConfiguration` | A server this client reached does not support signing | `SMBClient\Audit` | | `AuditServerDoesNotSupportEncryption` | `Set-SmbClientConfiguration` | A server this client reached does not support encryption | `SMBClient\Audit` | The Learn page lists events 3021 and 3022 for the server log and 31998 and 31999 for the client log. It does not say which ID is the signing one and which the encryption one, so read the event text rather than assuming. The Group Policy equivalents sit under Computer Configuration, Administrative Templates, Network, in Lanman Server ("Audit client does not support signing" and "...encryption") and Lanman Workstation ("Audit server does not support signing" and "...encryption"). ## Why both sides The two populations are different: - **Server-side audit** finds the clients that talk to a file server without signing or encryption: an old scanner, a legacy workstation, a script host. - **Client-side audit** finds the servers a workstation reaches that cannot sign or encrypt: the NAS, the appliance, the archive device. Run the server audit on the file servers you plan to harden and the client audit on a pilot group of workstations. Microsoft adds that a device claiming SMB 3.1.1 without signing breaks the pre-authentication integrity requirement of that dialect, which is a useful sentence when you open a ticket with its vendor. ## A staged rollout 1. Enable the audit parameters on a pilot set of servers and clients. 2. Collect events across a full business cycle, so month-end jobs and rare batch clients appear. 3. For each device in the logs, enable signing or encryption on it, upgrade it, or replace it, and name an owner for any exception. 4. Require signing: `Set-SmbServerConfiguration -RequireSecuritySignature $true` and the client counterpart. 5. Only then require encryption, per share first (`Set-SmbShare -EncryptData $true`), because it costs CPU and excludes clients that cannot do SMB 3. 6. Re-read the same events after each step; an empty log is the evidence for the change board. ## Traps - **Audit is not enforcement.** A client that connects unsigned is logged and still served, so a quiet log means the audit worked only if the clients you care about were active during the window. - **Different logs, different tools.** Share-access auditing (events 5140 and 5145) goes to the Security log and belongs to the shares material; do not mix it with these. - **Release dependent.** The pages tie these parameters to Windows 11, version 24H2 and Windows Server 2025; older releases do not document them. ## What to put in the change record The change board wants evidence, not assurance. A useful record for a signing or encryption mandate contains: - the audit settings enabled, on which servers and which pilot clients, and the dates the window started and ended - the events collected: server events 3021 and 3022, client events 31998 and 31999, with the device names behind them - for each device that appeared, the decision: signing or encryption enabled, firmware upgraded, device replaced, or a dated exception with an owner - the enforcement step and its date, and the rollback, which is setting the requirement back to `$false` - the follow-up check showing the logs are quiet after enforcement Keeping the exceptions in the record is what stops them becoming permanent. ```powershell # Servers: who connects without signing or encryption? Set-SmbServerConfiguration -AuditClientDoesNotSupportSigning $true Set-SmbServerConfiguration -AuditClientDoesNotSupportEncryption $true # Pilot clients: which servers cannot sign or encrypt? Set-SmbClientConfiguration -AuditServerDoesNotSupportSigning $true Set-SmbClientConfiguration -AuditServerDoesNotSupportEncryption $true ```

  • What happens to a client that connects unsigned while an audit parameter is on?
    It connects normally and an event is logged. The audit parameters change what is recorded, not what is allowed, which is what makes them safe to run before enforcement. Enforcement is the separate `RequireSecuritySignature` or `EncryptData` setting.
  • Why does the estate need both the server-side and the client-side audit?
    They see different devices. The server audit shows clients that reach your file servers without signing or encryption; the client audit shows servers that your workstations reach but that cannot sign or encrypt, such as a NAS. A mandate on either side breaks the other population.
  • How long should the audit run before you enforce?
    Long enough to cover a full business cycle, including month-end and rarely used batch clients, because a device that connects once a month will not appear in a one-week log. That duration is a judgement, not a Microsoft figure; the pages only describe the settings and the events.

  • Turning an audit parameter on also starts enforcing the requirement.
  • Client-side auditing finds the clients that cannot sign.
  • One audit setting covers signing and encryption on both sides.
  • The audit events are written to the Security log as event 5145.
  • Audit only matters for encryption, since signing is already required everywhere.