Enabling SMB on Windows 11 allows file and printer sharing across your local network, which is essential for accessing shared folders, media servers, or network-attached storage (NAS) devices. Before proceeding, ensure you are logged in as an administrator and that your network is set to Private (not Public) to allow discovery and sharing.

What You'll Need

  • A Windows 11 PC with administrator access
  • A stable connection to your local network (Wi-Fi or Ethernet)
  • Optional: Knowing the name or IP address of the device you want to connect to

Step-by-Step

  1. Press Windows + I to open Settings, then navigate to Apps > Optional features.
  2. Click View features next to Add an optional feature.
  3. In the list, scroll down and check the box for SMB 1.0/CIFS File Sharing Support. Note: SMBv1 is outdated and insecure; only enable it if required by a legacy device. For modern use, proceed to enable SMB 2/3.
  4. Click Next, then Install. Windows will apply the changes and may prompt you to restart.
  5. After installation (or if skipping SMBv1), press Windows + R, type optionalfeatures.exe, and press Enter to open Windows Features.
  6. In the Windows Features dialog, scroll down and expand SMB 1.0/CIFS File Sharing Support.
  7. Ensure SMB Client is checked. Do not check SMB 1.0/CIFS Server unless absolutely necessary for legacy compatibility — it poses security risks.
  8. Expand SMB Direct (if available) and check it if your network adapter supports RDMA for performance.
  9. Check SMB Server to allow your PC to share files with others on the network.
  10. Click OK. Windows will search for files and apply the changes. You may be prompted to restart your PC.
  11. After reboot, press Windows + R, type control.exe /name Microsoft.NetworkAndSharingCenter, and press Enter to open Network and Sharing Center.
  12. Click Change advanced sharing settings on the left.
  13. Under Private (current profile), ensure:
    • Turn on network discovery is selected
    • Turn on file and printer sharing is selected
    • Allow Windows to manage homegroup connections (if applicable)
  14. Scroll down to All Networks and:
    • Set Public folder sharing to Turn on sharing so anyone with network access can read and write files in the Public folders (or adjust as needed)
    • Under File sharing connections, select Use 128-bit encryption to help protect file sharing connections (recommended)
    • Turn off Password protected sharing only if you trust all devices on your network and want easier access; otherwise, leave it on for security.
  15. Click Save changes.
  16. To verify SMB is active, press Windows + X and select Terminal (Admin) or Command Prompt (Admin).
  17. Run the command: Get-SmbServerConfiguration | Select EnableSMB1Protocol, EnableSMB2Protocol
  18. Confirm that EnableSMB2Protocol is True and EnableSMB1Protocol is False (unless you enabled SMBv1 for legacy reasons).
  19. To test connectivity, try accessing a shared folder by opening File Explorer and typing \localhost in the address bar, or connect to another device using \DeviceName or \IPAddress.

Common Mistakes

  • Enabling SMBv1 unnecessarily: This outdated protocol is vulnerable to exploits like WannaCry. Only enable it if a device absolutely requires it, and isolate such devices on your network.
  • Leaving network profile set to Public: Windows blocks discovery and sharing on Public networks for security. Switch to Private in Settings > Network & Internet > Wi-Fi/Ethernet > your network.
  • Forgetting to enable both SMB Client and Server: You need the client to access others’ shares and the server to share your own folders.
  • Ignoring firewall settings: Even with SMB enabled, third-party firewalls or overly strict Windows Firewall rules can block ports 445 and 139.
  • Not restarting after feature changes: Some SMB components require a reboot to initialize properly.

Tips

  • Use SMB 3.x whenever possible — it includes encryption and performance improvements over SMBv2.
  • If connecting to a NAS or non-Windows device, verify it supports SMB 2 or 3; many modern devices disable SMBv1 by default.
  • For troubleshooting, temporarily disable your third-party antivirus or firewall to test if it’s blocking SMB traffic.
  • To share a specific folder, right-click it in File Explorer > Properties > Sharing > Advanced Sharing > check Share this folder and set permissions.
  • Monitor active SMB sessions with Get-SmbSession in PowerShell (Admin) to see who is connected.
  • Keep Windows 11 updated — Microsoft regularly patches SMB-related security issues via Windows Update.

Troubleshooting

  • Cannot see other devices on the network:
    • Confirm network discovery is enabled (Step 11 above).
    • Run netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes in Admin Command Prompt.
    • Ensure all devices are on the same subnet and subnet mask.
  • Access denied when connecting to a share:
    • Check that Password protected sharing is configured correctly and you’re using valid credentials.
    • Verify folder permissions: right-click the shared folder > Properties > Sharing > Advanced Sharing > Permissions.
    • Try connecting using net use Z: \\ComputerName\ShareName /user:Username Password in Command Prompt.
  • SMB service not running:
    • Press Windows + R, type services.msc, and press Enter.
    • Locate Server and Workstation services.
    • Ensure both are set to Automatic and are Running. Right-click > Restart if needed.
  • Still not working after enabling features:
    • Run the Network Adapter Troubleshooter: Settings > System > Troubleshoot > Other troubleshooters > Network Adapter.
    • Reset TCP/IP stack: Admin Command Prompt > netsh int ip reset and netsh winsock reset, then reboot.
    • Check for Windows updates: Settings > Windows Update > Check for updates.

Frequently Asked Questions

Is SMBv1 safe to enable on Windows 11?

No, SMBv1 is outdated and contains critical security vulnerabilities. Only enable it if a legacy device requires it, and consider upgrading or isolating that device.

Do I need to enable SMB to access my NAS?

Yes, most NAS devices use SMB (or NFS) for file sharing. Ensure SMB Client is enabled and that your NAS uses SMB 2 or 3 for best performance and security.

Why can’t I see other computers in Network view?

This is usually due to network discovery being disabled, the network set to Public, or firewall blocking. Check sharing settings and ensure all devices are on the same network.

Can I use PowerShell to enable SMB instead of the GUI?

Yes. Run as Admin: Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol -All (for SMBv1) or Set-SmbServerConfiguration -EnableSMB2Protocol $true to confirm SMBv2 is enabled.

Does enabling SMB slow down my PC?

No, enabling the SMB feature itself uses minimal resources. Performance depends on network speed, storage, and active connections — not the feature being enabled.

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

SMB uses TCP ports 445 (primary) and 139 (legacy). Windows Firewall automatically opens these when file sharing is enabled. Third-party firewalls may require manual configuration.