A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/windows-server/storage/file-server/manage-smb-dialects below:

Manage SMB dialects in Windows and Windows Server 2025

Administrators have the ability to manage SMB2 and SMB3 dialects in Windows Server and Windows client. In this article, learn how to configure a minimum and maximum SMB dialect for the SMB server and client using Group Policy and Windows PowerShell.

By default SMB Server and client automatically negotiates the highest matched dialect from SMB 2.0.2 to 3.1.1. Beginning with Windows 11, version 24H2, and Windows Server 2025, you can specify the SMB protocols used, blocking older, less secure, versions from connecting to the server. For example, you can specify connection to only use SMB 3.1.1, the most secure dialect of the protocol.

Prerequisites

Before you can configure SMB dialects you need:

Configure maximum and minimum SMB dialects

You can configure the dialects available for negotiation using Group Policy or PowerShell. The minimum and maximum dialects can be set independently for the SMB server and client. Alternately, you can choose not to set a maximum. For example, you can set a minimum of 3.1.1 which effectively sets the maximum to 3.1.1.

SMB server

You can configure the dialects available to your SMB server (that is, for inbound connections), by following these steps:

Here's how to configure the minimum and maximum SMB dialects for the SMB server using PowerShell using the Set-SmbServerConfiguration cmdlet:

From an elevated PowerShell prompt, run the following commands:

Set-SmbServerConfiguration -Smb2DialectMax {SMB202 | SMB210 |
SMB300 | SMB302 | SMB311 | None} -Smb2DialectMin {None | SMB202 | SMB210 | SMB300 | SMB302 | SMB311}

For example, to set the minimum dialect to SMB 3.0.0 and maximum dialects to SMB 3.1.1, run the following command:

Set-SmbServerConfiguration -Smb2DialectMax SMB311 -Smb2DialectMin SMB300

Here's how to configure the minimum and maximum SMB dialects for the SMB server using Group Policy for domain joined machines.

To configure SMB dialect minimum and maximum for the SMB server:

  1. Open the Group Policy Management Console.
  2. Edit or create a Group Policy Object (GPO) that you want to use.
  3. In the console tree, select Computer Configuration > Administrative Templates > Network > Lanman Server.
  4. For the setting, right-click Mandate the Minimum version of SMB and select Edit.
  5. Select the minimum version of the dialects using a dropdown menu and select OK.
  6. For the setting, right-click Mandate the Maximum version of SMB and select Edit.
  7. Select the maximum version of the dialects using a dropdown menu and select OK.
SMB client

You can configure the dialects available to your SMB client (that is, for outbound connections), by following these steps:

Here's how to configure the minimum and maximum SMB dialects for the SMB client using PowerShell using the Set-SmbClientConfiguration cmdlet:

From an elevated PowerShell prompt, run the following commands:

Set-SmbClientConfiguration -Smb2DialectMax {SMB202 | SMB210 |
SMB300 | SMB302 | SMB311 | None} -Smb2DialectMin {None | SMB202 | SMB210 | SMB300 | SMB302 | SMB311}

For example, to set the minimum and maximum dialects to SMB 3.1.1, run the following command:

Set-SmbClientConfiguration -Smb2DialectMax SMB311 -Smb2DialectMin SMB311

Here's how to configure the minimum and maximum SMB dialects for the SMB client using Group Policy for domain joined machines.

To configure SMB dialect minimum and maximum for the SMB client:

  1. Open the Group Policy Management Console.

  2. Edit or create a Group Policy Object (GPO) that you want to use.

  3. In the console tree, select Computer Configuration > Administrative Templates > Network > Lanman Workstation.

  4. For the setting, right-click Mandate the minimum version of SMB and select Edit.

  5. Select the minimum version of the dialects using a dropdown menu and select OK.

  6. For the setting, right-click Mandate the maximum version of SMB and select Edit.

  7. Select the maximum version of the dialects using a dropdown menu and select OK.

Verify dialect negotiation

You can use a network capture tool like Wireshark to examine the client and server responses during negotiation of the SMB protocol. In the following example, the client requests SMB 3.1.1 only because it's configured with a minimum and maximum dialect of 3.1.1:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3