Enabling SMB (Server Message Block) on Windows allows your computer to share files, printers, and other resources with other devices on a local network. This is essential for accessing network drives, connecting to NAS devices, or sharing folders between Windows machines. SMB is disabled by default in some Windows editions for security reasons, but can be safely enabled when needed on trusted networks. Before proceeding, ensure you are logged in as an administrator and that your network is private and secure—avoid enabling SMB on public or untrusted networks.

What You'll Need

  • A Windows 10 or Windows 11 PC (Pro, Enterprise, or Education edition recommended; Home edition has limited SMBv1 controls)
  • Administrator access to the computer
  • A stable connection to your local network (Wi-Fi or Ethernet)
  • Optional: Knowledge of your network’s security status (ensure it’s a trusted environment)

Step-by-Step

  1. Press the Windows key + R to open the Run dialog box.
  2. Type optionalfeatures and press Enter to open the Windows Features window.
  3. In the Windows Features dialog, scroll down to locate SMB 1.0/CIFS File Sharing Support.
  4. Expand the node by clicking the [+] icon next to it.
  5. Check the box for SMB 1.0/CIFS Client if you need to connect to older devices (e.g., legacy NAS or older Windows systems).
  6. Check the box for SMB 1.0/CIFS Server only if you must share files with very old systems that require SMBv1—note this is less secure and not recommended unless absolutely necessary.
  7. Below SMB 1.0, ensure SMB Direct and SMB 2.0/3.0 are checked—these are usually enabled by default and support modern, secure SMB versions.
  8. Click OK to apply the changes. Windows will search for required files and may prompt you to restart.
  9. If prompted, click Restart now to complete the installation. Save any open work before proceeding.
  10. After reboot, press Windows key + R, type services.msc, and press Enter to open the Services manager.
  11. In the Services list, locate Function Discovery Resource Publication, SSDP Discovery, UPnP Device Host, and Function Discovery Provider Host.
  12. For each of these services, right-click, select Properties, set the Startup type to Automatic, and click Start if the service is not already running.
  13. Next, find Server and Workstation in the list—these are core SMB services.
  14. Ensure both are set to Automatic startup and are Running. If not, right-click each, choose Start, then set Startup type to Automatic.
  15. Open Windows Defender Firewall via Control Panel > System and Security > Windows Defender Firewall.
  16. Click Allow an app or feature through Windows Defender Firewall on the left.
  17. Click Change settings (you may need admin approval), then scroll to find File and Printer Sharing.
  18. Check the boxes for both Private and, if needed, Public networks—but only enable on Public if you understand the risks and are on a trusted network.
  19. Click OK to save the firewall changes.
  20. To verify SMB is working, open File Explorer and type \localhost in the address bar, then press Enter. You should see your shared folders (if any are configured).
  21. To test from another device, on a second computer, open File Explorer and enter \your-computer-name (replace with your PC’s name) to see if you can access shared resources.

Common Mistakes

  • Enabling only SMBv1 without understanding its security risks—SMBv1 is outdated and vulnerable to exploits like WannaCry; avoid unless interfacing with legacy systems is unavoidable.
  • Forgetting to restart after enabling Windows Features—changes won’t take effect until a reboot.
  • Overlooking the Server and Workstation services—enabling the feature doesn’t automatically start these critical background services.
  • Assuming SMB is enabled just because the Windows Feature is checked—firewall or service misconfiguration can still block access.
  • Enabling file sharing on Public networks without proper precautions—this exposes your device to potential threats on untrusted networks like cafes or airports.

Tips

  • Prefer SMBv2 or SMBv3 for better performance and security—only enable SMBv1 if absolutely necessary for legacy compatibility.
  • After enabling SMB, create specific shared folders with controlled permissions instead of sharing entire drives.
  • Use strong passwords for user accounts that will access shares—avoid using guest or blank passwords.
  • On domain-joined computers, SMB settings may be managed by Group Policy—check with your IT admin if changes don’t persist.
  • To disable SMBv1 later for security, return to Windows Features and uncheck all SMB 1.0/CIFS boxes, then restart.
  • Monitor network usage via Resource Monitor (resmon.exe) if you notice unusual activity after enabling SMB.

Troubleshooting

If you cannot access shared folders after enabling SMB, follow these steps in order:

  1. Confirm the computer is on a Private network profile—open Settings > Network & Internet > Properties of your connection and ensure it’s set to Private.
  2. Double-check that File and Printer Sharing is allowed through Windows Firewall for the current network profile.
  3. Verify the Server and Workstation services are running in services.msc—restart them if needed.
  4. Ensure network discovery is enabled: go to Control Panel > Network and Sharing Center > Change advanced sharing settings, and turn on Network discovery and File and printer sharing for Private networks.
  5. Test connectivity by pinging the other device: open Command Prompt and run ping [other-computer-IP]—if it fails, check basic network connectivity first.
  6. Temporarily disable third-party antivirus or firewall software to test if it’s blocking SMB ports (TCP 445, 139).
  7. If using SMBv1, confirm the remote device actually supports it—many modern systems have it disabled by default.
  8. Check Event Viewer (eventvwr.msc) under Windows Logs > System for errors related to SRV2, LANMANServer, or SMBClient around the time of failure.
  9. As a last resort, reset network settings: Settings > Network & Internet > Advanced network settings > Network reset—but note this will remove all network adapters and require reinstallation.

Frequently Asked Questions

Is it safe to enable SMB on Windows?

Yes, enabling SMBv2 or SMBv3 is safe on trusted private networks. Avoid SMBv1 unless necessary due to known vulnerabilities.

Do I need to enable SMB to access my NAS drive?

Most NAS devices use SMBv2 or v3—ensure those are enabled (they usually are by default), and verify File and Printer Sharing is allowed through the firewall.

Why can’t I see other computers on my network after enabling SMB?

This is often due to network discovery being turned off or the network profile set to Public. Check both in Network and Sharing Center.

Can I enable SMB on Windows 11 Home edition?

Yes, the same steps apply—Windows Features and Services are accessible in Home edition, though some enterprise controls are absent.

What ports does SMB use, and should I open them?

SMB uses TCP 445 (primary) and TCP 139 (legacy NetBIOS). Ensure these are allowed in your firewall for trusted networks.

How do I disable SMBv1 for security?

Go to Windows Features > uncheck all SMB 1.0/CIFS File Sharing Support boxes > OK > restart. This removes the vulnerable legacy protocol.