How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows (2024)

  • Article

Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows 11, Windows 10, Windows 8.1, Windows 8

This article describes how to enable and disable Server Message Block (SMB) version 1 (SMBv1), SMB version 2 (SMBv2), and SMB version 3 (SMBv3) on the SMB client and server components.

While disabling or removing SMBv1 might cause some compatibility issues with old computers or software, SMBv1 has significant security vulnerabilities, and we strongly encourage you not to use it. SMB 1.0 isn't installed by default in any edition of Windows 11 or Windows Server 2019 and later. SMB 1.0 also isn't installed by default in Windows 10, except Home and Pro editions. We recommend that instead of reinstalling SMB 1.0, you update the SMB server that still requires it. For a list of third parties that require SMB 1.0 and their updates that remove the requirement, review the SMB1 Product Clearinghouse.

Disabling SMBv2 or SMBv3 for troubleshooting

We recommend keeping SMBv2 and SMBv3 enabled, but you might find it useful to disable one temporarily for troubleshooting. For more information, see How to detect status, enable, and disable SMB protocols on the SMB Server.

In Windows 10, Windows 8.1, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, and Windows Server 2012, disabling SMBv3 deactivatesthe following functionality:

  • Transparent Failover - clients reconnect without interruption to cluster nodes during maintenance or failover
  • Scale Out - concurrent access to shared data on all file cluster nodes
  • Multichannel - aggregation of network bandwidth and fault tolerance if multiple paths are available between client and server
  • SMB Direct - adds RDMA networking support for high performance, with low latency and low CPU use
  • Encryption - Provides end-to-end encryption and protects from eavesdropping on untrustworthy networks
  • Directory Leasing - Improves application response times in branch offices through caching
  • Performance Optimizations - optimizations for small random read/write I/O

In Windows 7 and Windows Server 2008 R2, disabling SMBv2deactivates the following functionality:

  • Request compounding - allows for sending multiple SMBv2 requests as a single network request
  • Larger reads and writes - better use of faster networks
  • Caching of folder and file properties - clients keep local copies of folders and files
  • Durable handles - allow for connection to transparently reconnect to the server if there's a temporary disconnection
  • Improved message signing - HMAC SHA-256 replaces MD5 as hashing algorithm
  • Improved scalability for file sharing - number of users, shares, and open files per server greatly increased
  • Support for symbolic links
  • Client oplock leasing model - limits the data transferred between the client and server, improving performance on high-latency networks and increasing SMB server scalability
  • Large MTU support - for full use of 10 Gigabit Ethernet (GbE)
  • Improved energy efficiency - clients that have open files to a server can sleep

The SMBv2 protocol was introduced in Windows Vista and Windows Server 2008, while the SMBv3 protocol was introduced in Windows 8 and Windows Server 2012. For more information about SMBv2 and SMBv3 capabilities, see the following articles:

  • Server Message Block overview
  • What's New in SMB

How to remove SMBv1 via PowerShell

Here are the steps to detect, disable and enable SMBv1 client and server by using PowerShell commands with elevation.

Note

The computer will restart after you run the PowerShell commands to disable or enable SMBv1.

  • Detect:

    Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
  • Disable:

    Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
  • Enable:

    Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol

Tip

You can detect SMBv1 status, without elevation, by running: Get-SmbServerConfiguration | Format-List EnableSMB1Protocol.

Windows Server 2012 Windows Server 2012 R2, Windows Server 2016, Windows Server 2019: Server Manager method

How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows (1)

To remove SMBv1 from Windows Server:

  1. On the Server Manager Dashboard of the server where you want to remove SMBv1, under Configure this local server, select Add roles and features.
  2. On the Before you begin page, select Start the Remove Roles and Features Wizard, and then on the following page, select Next.
  3. On the Select destination server page under Server Pool, ensure that the server you want to remove the feature from is selected, and then select Next.
  4. On the Remove server roles page, select Next.
  5. On the Remove features page, clear the check box for SMB 1.0/CIFS File Sharing Support and select Next.
  6. On the Confirm removal selections page, confirm that the feature is listed, and then select Remove.

Windows 8.1, Windows 10, and Windows 11: Add or Remove Programs method

How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows (2)

To disable SMBv1 for the mentioned operating systems:

  1. In Control Panel, select Programs and Features.
  2. Under Control Panel Home, select Turn Windows features on or off to open the Windows Features box.
  3. In the Windows Features box, scroll down the list, clear the check box for SMB 1.0/CIFS File Sharing Support and select OK.
  4. After Windows applies the change, on the confirmation page, select Restart now.

How to detect status, enable, and disable SMB protocols

Note

When you enable or disable SMBv2 in Windows 8 or Windows Server 2012, SMBv3 is also enabled or disabled. This behavior occurs because these protocols share the same stack.

  • Server
  • Client

Windows 8 and Windows Server 2012 introduced the new Set-SMBServerConfiguration Windows PowerShell cmdlet. The cmdlet enables you to enable or disable the SMBv1, SMBv2, and SMBv3 protocols on the server component.

You don't have to restart the computer after you run the Set-SMBServerConfiguration cmdlet.

SMBv1

  • Detect:

    Get-SmbServerConfiguration | Select EnableSMB1Protocol
  • Disable:

    Set-SmbServerConfiguration -EnableSMB1Protocol $false
  • Enable:

    Set-SmbServerConfiguration -EnableSMB1Protocol $true

For more information, see Server storage at Microsoft.

SMB v2/v3

  • Detect:

    Get-SmbServerConfiguration | Select EnableSMB2Protocol
  • Disable:

    Set-SmbServerConfiguration -EnableSMB2Protocol $false
  • Enable:

    Set-SmbServerConfiguration -EnableSMB2Protocol $true

For Windows 7, Windows Server 2008 R2, Windows Vista, and Windows Server 2008

To enable or disable SMB protocols on an SMB Server that is running Windows 7, Windows Server 2008 R2, Windows Vista, or Windows Server 2008, use Windows PowerShell or Registry Editor.

Additional PowerShell methods

Note

This method requires PowerShell 2.0 or later.

SMBv1 on SMB Server

Detect:

Get-Item HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters | ForEach-Object {Get-ItemProperty $_.pspath}

Default configuration = Enabled (No registry named value is created), so no SMB1 value will be returned

Disable:

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 0 -Force

Enable:

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 1 -Force

Note You must restart the computer after you make these changes.For more information, see Server storage at Microsoft.

SMBv2/v3 on SMB Server

Detect:

Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters | ForEach-Object {Get-ItemProperty $_.pspath}

Disable:

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB2 -Type DWORD -Value 0 -Force

Enable:

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB2 -Type DWORD -Value 1 -Force

Note

You must restart the computer after you make these changes.

Registry Editor

Important

Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you modify it, back up the registry for restoration in case problems occur.

To enable or disable SMBv1 on the SMB server, configure the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

Registry entry: SMB1REG_DWORD: 0 = DisabledREG_DWORD: 1 = EnabledDefault: 1 = Enabled(No registry key is created)

To enable or disable SMBv2 on the SMB server, configure the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

Registry entry: SMB2REG_DWORD: 0 = DisabledREG_DWORD: 1 = EnabledDefault: 1 = Enabled(No registry key is created)

Note

You must restart the computer after you make these changes.

Disable SMBv1 by using Group Policy

This section introduces how to use Group Policy to disable SMBv1. You can use this method on different versions of Windows.

  • Server
  • Client

SMBv1

This procedure configures the following new item in the registry:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

  • Registry entry: SMB1
  • REG_DWORD: 0 = Disabled

To use Group Policy to configure this, follow these steps:

  1. Open the Group Policy Management Console. Right-click the Group Policy object (GPO) that should contain the new preference item, and then click Edit.

  2. In the console tree under Computer Configuration, expand the Preferences folder, and then expand the Windows Settings folder.

  3. Right-click the Registry node, point to New, and select Registry Item.

    How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows (3)

In the New Registry Properties dialog box, select the following:

  • Action: Create
  • Hive: HKEY_LOCAL_MACHINE
  • Key Path: SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
  • Value name: SMB1
  • Value type: REG_DWORD
  • Value data: 0

How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows (4)

This procedure disables the SMBv1 Server components. This Group Policy mustbe applied to all necessary workstations, servers, and domain controllers in the domain.

Note

WMI filters can also be set to exclude unsupported operating systems or selected exclusions, such as Windows XP.

Important

Be careful when you makethese changes on domain controllers on which legacy Windows XP or older Linux and third-party systems (that don't support SMBv2 or SMBv3) require access to SYSVOL or other file shares where SMB v1 is being disabled.

Auditing SMBv1 usage

To determine which clients are attempting to connect to an SMB server with SMBv1, you can enable auditing on Windows Server 2016, Windows 10, and Windows Server 2019. You can also audit on Windows 7 and Windows Server 2008 R2 if the May 2018 monthly update is installed, and on Windows 8.1 and Windows Server 2012 R2 if the July 2017 monthly update is installed.

  • Enable:

    Set-SmbServerConfiguration -AuditSmb1Access $true
  • Disable:

    Set-SmbServerConfiguration -AuditSmb1Access $false
  • Detect:

    Get-SmbServerConfiguration | Select AuditSmb1Access

When SMBv1 auditing is enabled, event 3000 appears in the "Microsoft-Windows-SMBServer\Audit" event log, identifying each client that attempts to connect with SMBv1.

Summary

If all the settings are in the same GPO, Group Policy Management displays the following settings.

How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows (5)

Testing and validation

After completing the configuration steps in this article, allow the policy to replicate and update. As necessary for testing, run gpupdate /force at a command prompt, and then review the target computers to make sure that the registry settings are applied correctly. Make sure SMBv2 and SMBv3 are functioning for all other systems in the environment.

Note

Don't forget to restartthe targetsystems.

How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows (2024)

FAQs

How do I know if smb1 is enabled or disabled? ›

In Control Panel, select Programs and Features. Under Control Panel Home, select Turn Windows features on or off to open the Windows Features box. In the Windows Features box, scroll down the list, clear the check box for SMB 1.0/CIFS File Sharing Support and select OK.

How to check if SMB is enabled or not? ›

Check SMB status: Check the status of the SMB service by running the command "Get-Service -Name "LanmanServer"" in PowerShell. This command will display the status of the LanmanServer service, which is responsible for the SMB protocol.

How to enable or disable SMB1 file sharing protocol in Windows? ›

Under Programs and Features, click on Turn Windows Features on or off. Windows Features dialog box will open now. Search and locate SMB 1.0/CIFS File Sharing Support from the list of services available. Click on the checkbox next to it and then click on OK.

How to disable SMBv1 and enable SMBv3? ›

Disabling and Enabling SMB Protocols on the SMB Server

Microsoft Windows 8 and Windows Server 2012 provided a new cmdlet [Set-SMBServerConfiguration] in Windows PowerShell that enables and disables the SMBv1, SMBv2, and SMBv3 protocols on the server.

How to enable SMBv2 3 via PowerShell? ›

Open the Powershell and type in Get-SmbServerConfiguration | Select EnableSMB2Protocol. You should receive a True in response, meaning you can run SMB2 on your computer. If not, you might need to be sure you have the latest build of Windows.

How do I check SMB1 in Windows 10? ›

[Network Place (Samba) Share] How to access the files on Network Devices using SMBv1 in Windows 10 ?
  1. Open Control Panel in your PC/Notebook.
  2. Click on Programs.
  3. Click on Turn Windows features on or off link.
  4. Expand the SMB 1.0/CIFS File Sharing Support option.
  5. Check the SMB 1.0/CIFS Client option.
  6. Click the OK button.
Sep 28, 2023

Is SMB3 enabled by default? ›

By default, SMB3 optimization is disabled. You must enable (or disable) SMB3 latency optimization on both the client-side and server-side SteelHeads. You must enable SMB2 optimization to optimize SMB3. To enable SMB3, both SteelHeads must be running RiOS 8.5 or later.

Is SMB1 disabled by default? ›

SMB1 is considered a deprecated and non-secured protocol. For that reason, by design, it is blocked by default due to the security reasons and can be re-enabled by customer if needed.

How to tell if SMBv1 is being used? ›

SMB1 - Audit Active Usage using Message Analyzer

I would check on your servers , if they have got it then turn it off. Give it about 10 mins or so , then you will find out what devices are using it. I usually check the active SMB sessions on the servers to try and determine what might be affected.

How do I find SMB settings? ›

At Control Panel > File Services > SMB Settings, you can enable this function to browse files on your Synology NAS via Windows Explorer or mount shared folders as network drives.

How do I disable SMBv1 client driver? ›

Disabling SMBv1 Client and Server via Group Policy
  1. Open the Group Policy Management console (game.msc), create a new GPO (disableSMBv1), and link it to the OU containing the computers on which you want to disable SMB1;
  2. Switch to the policy editing mode. ...
  3. Create a new Registry Item with the following setting:
Dec 13, 2023

What happens if you disable SMBv1? ›

SMB1 is certainly fraught with security issues and should be discouraged. SMB2 is still fine and if disabled may cause some scanners to stop scan to folder and other options (and other devices might stop working as well as most have only just stopped using SMB1).

How do I enable SMB1 and SMB2? ›

To enable SMB2 on Windows 10, you need to press the Windows Key + S, start typing and click on Turn Windows features on or off. You can also search the same phrase in Start, Settings. Scroll down to SMB 1.0/CIFS File Sharing Support and check that top box.

How do I disable SMB2 protocol? ›

Add a REG_DWORD key with the name of Smb2. Set the value to 0 to disable SMB2, or set it to 1 to re-enable SMB2.

How do I enable SMB direct in Windows 11? ›

A similar path should exist in Windows 11 to examine the Windows features, specifically the SMB Direct setting. Under the More Windows features panel, scroll to the SMB Direct selection and ensure it is checked. You may need to restart your Windows system after performing this change for it to take effect.

How to fix windows SMB version 1 SMBv1 detected? ›

  1. Resolution.
  2. Follow the below steps to resolve the misconfiguration. Step 1: Open control panel Step 2: Navigate to programs and features. Step 3: Click on "Turn Windows features on or off. Step 4: Disable "(Server Message Block) SMB v1"Step 5 : Click ok.

Top Articles
How to benchmark & test battery life on an Android phone
Android Tutorial => How to add a CPU Governor
Ets Lake Fork Fishing Report
Blanchard St Denis Funeral Home Obituaries
Txtvrfy Sheridan Wy
Rainbird Wiring Diagram
Umn Pay Calendar
Craigslistdaytona
Comenity Credit Card Guide 2024: Things To Know And Alternatives
Alaska Bücher in der richtigen Reihenfolge
2021 Lexus IS for sale - Richardson, TX - craigslist
Detroit Lions 50 50
Gdp E124
25Cc To Tbsp
Kylie And Stassie Kissing: A Deep Dive Into Their Friendship And Moments
Joann Ally Employee Portal
Aaa Saugus Ma Appointment
Azpeople View Paycheck/W2
Sulfur - Element information, properties and uses
Gina Wilson All Things Algebra Unit 2 Homework 8
Governor Brown Signs Legislation Supporting California Legislative Women's Caucus Priorities
LCS Saturday: Both Phillies and Astros one game from World Series
At&T Outage Today 2022 Map
12 Facts About John J. McCloy: The 20th Century’s Most Powerful American?
Bn9 Weather Radar
Suspiciouswetspot
Jazz Total Detox Reviews 2022
In hunt for cartel hitmen, Texas Ranger's biggest obstacle may be the border itself (2024)
Evil Dead Rise Showtimes Near Regal Sawgrass & Imax
Tripcheck Oregon Map
Kagtwt
Panchitos Harlingen Tx
What Does Code 898 Mean On Irs Transcript
Craigslist Putnam Valley Ny
Express Employment Sign In
Tsbarbiespanishxxl
Lcwc 911 Live Incident List Live Status
Pa Legion Baseball
Sofia Franklyn Leaks
Grand Valley State University Library Hours
Zom 100 Mbti
Ups Customer Center Locations
Jackerman Mothers Warmth Part 3
Kushfly Promo Code
Egg Inc Wiki
Spn 3464 Engine Throttle Actuator 1 Control Command
R Detroit Lions
Bluebird Valuation Appraiser Login
Mawal Gameroom Download
Prologistix Ein Number
Skybird_06
Morgan State University Receives $20.9 Million NIH/NIMHD Grant to Expand Groundbreaking Research on Urban Health Disparities
Latest Posts
Article information

Author: Velia Krajcik

Last Updated:

Views: 6000

Rating: 4.3 / 5 (54 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Velia Krajcik

Birthday: 1996-07-27

Address: 520 Balistreri Mount, South Armand, OR 60528

Phone: +466880739437

Job: Future Retail Associate

Hobby: Polo, Scouting, Worldbuilding, Cosplaying, Photography, Rowing, Nordic skating

Introduction: My name is Velia Krajcik, I am a handsome, clean, lucky, gleaming, magnificent, proud, glorious person who loves writing and wants to share my knowledge and understanding with you.