How to Enable or Disable SMB1 on Windows 11
In this article
You can enable or disable the SMBv1 protocol in Windows 11 by turning it off via PowerShell or the Windows Features menu. Disabling it is highly recommended for security, as SMBv1 contains critical vulnerabilities that expose your PC to ransomware and network attacks. Enabling it is only necessary if you must connect to very old legacy devices like older NAS drives or printers that do not support newer protocols.
What You'll Need
- A Windows 11 PC with administrator privileges.
- Access to an elevated Command Prompt or PowerShell window.
- If enabling: The specific IP address or hostname of the legacy device you need to connect to.
Step-by-Step
- Open PowerShell as Administrator: Press the
Windows Key + Xon your keyboard. From the menu that appears, select Terminal (Admin) or PowerShell (Admin). If prompted by User Account Control (UAC), click Yes. - Check Current Status (Optional): To see if SMBv1 is currently enabled, type the following command and press Enter:
Get-SmbServerConfiguration | Select EnableSMB1Protocol
If the result showsTrue, SMBv1 is active. If it showsFalse, it is already disabled. - Disable SMBv1 via PowerShell: This is the fastest method. Copy and paste this command into the terminal and press Enter:
Set-SmbServerConfiguration -EnableSMB1Protocol $false -Confirm:$false
This command immediately turns off the protocol without asking for confirmation. - Alternative Method: Windows Features Menu: If you prefer using the graphical interface, press
Windows Key + R, typeoptionalfeatures, and press Enter. In the "Windows Features" window, scroll down to find SMB 1.0/CIFS File Sharing Support. Uncheck the box next to it and click OK. Windows will apply the changes. - Restart Your Computer: Regardless of which method you used, restart your PC to ensure all services fully reload without the legacy protocol running.
- Verify the Change: After rebooting, open PowerShell again as Administrator and run the check command from Step 2. Ensure the value is now
False.
Common Mistakes
The most frequent error users make is leaving SMBv1 enabled out of habit. Many older tutorials suggest enabling it for general file sharing, but modern networks use SMBv2 or SMBv3, which are faster and encrypted. Another mistake is attempting to disable SMBv1 while a legacy device is actively connected; this will cause immediate disconnection errors. Always verify the device supports SMBv2+ before disabling the protocol.
Tips
- Use SMBv2 or SMBv3: Ensure both your PC and the target device support SMBv2 or higher. These versions offer significantly better performance and security.
- Network Discovery: If you cannot see other computers after disabling SMBv1, ensure "Network Discovery" is turned on in your Network & Internet settings. SMBv1 is not required for basic network discovery in Windows 11.
- Firewall Rules: Sometimes, even with SMBv1 disabled, firewall rules may linger. A simple restart usually clears temporary state issues.
Troubleshooting
If you get an error message when running the PowerShell command: Ensure you are running the terminal as an Administrator. Non-administrator accounts cannot modify server configuration settings.
If you cannot access a shared folder after disabling SMBv1: The remote computer likely only supports SMBv1. You have two options: upgrade the remote computer's software to support SMBv2+, or re-enable SMBv1 temporarily (see below). Re-enabling is done by running Set-SmbServerConfiguration -EnableSMB1Protocol $true -Confirm:$false in PowerShell.
If the Windows Features menu is grayed out: This usually happens in domain environments where Group Policy controls feature installation. Contact your IT administrator to change these settings.
Frequently Asked Questions
Is SMBv1 safe to use?
No. SMBv1 has known critical vulnerabilities, including the WannaCry ransomware exploit. Microsoft strongly advises keeping it disabled on all modern systems.
Does disabling SMBv1 affect printer sharing?
Most modern network printers use SMBv2 or SMBv3. However, very old printers (pre-2010) might rely on SMBv1. If your old printer stops working, you may need to re-enable SMBv1 specifically for that device.
Can I enable SMBv1 for just one connection?
No. SMBv1 is a system-wide protocol. Once enabled, it is active for all network interfaces. There is no per-connection toggle for the protocol itself.
Will disabling SMBv1 slow down my network?
No. It will likely improve security and may slightly reduce overhead. Modern SMB versions are optimized for speed and efficiency.
How do I know if my external hard drive uses SMBv1?
Check the manufacturer's specifications. Most external drives manufactured after 2015 support SMBv2+. If it is a very old NAS device, it might require SMBv1.