Enable SMB Sharing in Windows 11: Step‑by‑Step Guide
In this article
Yes, you can enable SMB file sharing in Windows 11 by turning on the SMB 1.0/CIFS feature and configuring a folder for sharing. The steps below show how to do it safely and efficiently.
What You’ll Need
- A Windows 11 PC with administrative privileges
- An active network connection (wired or Wi‑Fi)
- A folder you want to share (any existing folder will do)
- Optional: PowerShell for quick command‑line setup
Step‑by‑Step
- Open Settings and enable the SMB 1.0/CIFS feature. Press Win + I to launch Settings. Navigate to Apps > Optional features. Click Add a feature. In the search box type SMB 1.0/CIFS File Sharing Support. Check the box and click Install. Windows will download and install the component; you may need to restart the computer once the process completes.
- Turn on network discovery and file sharing. Still in Settings, go to Network & internet > Advanced network settings > Network sharing. Toggle Network discovery and File and printer sharing to On. Make sure the network profile is set to Private—this allows file sharing by default. If you are on a public network, Windows will block file sharing unless you explicitly allow it via the firewall.
- Configure the folder you want to share. Navigate to the folder in File Explorer, right‑click it, and choose Properties. Go to the Sharing tab and click Advanced sharing…. Check Share this folder. Give the share a name that is easy to remember; this will be the name you use when accessing it from other devices. Click Permissions and add Everyone if you want broad access, then set the desired permission level (Read or Full Control). Click Apply and OK to close the dialogs.
- Verify the Windows Defender firewall allows SMB traffic. Open Windows Security from the Start menu, select Firewall & network protection, and click Allow an app or feature through firewall. Ensure that File and Printer Sharing is checked for the network type you are using (Private or Public). If it is unchecked, click Change settings, check the box, and confirm.
- Test the share from another computer. On a second Windows machine, open File Explorer and type the UNC path in the address bar:
\\yourpcname\sharename. Replaceyourpcnamewith the host name of the PC where you enabled SMB, andsharenamewith the name you gave the folder. If prompted, enter the credentials of a user account that has permission to the share. - Optional: Enable SMB 1.0 quickly with PowerShell. If you prefer the command line, open PowerShell as an administrator and run:
Enable‑WindowsOptionalFeature -Online -FeatureName SMB1Protocol
This command installs the SMB 1.0 component without navigating through Settings. After the command finishes, restart the PC.
Common Mistakes
- Assuming SMB is already enabled—SMB 1.0 is disabled by default on Windows 11.
- Leaving the network profile on Public; file sharing is blocked by default in that mode.
- Not setting folder permissions; if Everyone is omitted, only the owner can access the share.
- Using a share name that contains spaces or special characters; keep it simple to avoid UNC path issues.
- Forgetting to restart after installing SMB 1.0, which prevents the feature from being usable.
- Relying on the old “Network and Sharing Center” UI; Windows 11 now uses the Settings app for most sharing options.
Tips
- Use the
net sharecommand to list all active shares and verify their names. - For domain environments, use Group Policy to enable SMB and set default permissions across multiple PCs.
- Map the network share as a drive letter on client machines:
\yourpcname\sharename→Z:. - Enable File and Printer Sharing (SMB‑Direct) in the firewall to improve performance over Wi‑Fi.
- Keep the SMB 1.0 feature disabled unless you must support legacy devices; it is less secure than SMB 2/3.
Troubleshooting
- Share not visible from another PC. Check that the firewall allows File and Printer Sharing, that the network profile is Private, and that the SMB 1.0 component is installed and the PC has restarted.
- Access denied when connecting. Verify the user account you are using has permission to the share. If you added Everyone with Read permission, the account should be able to view the contents. For write access, grant Full Control.
- Cannot resolve the host name. Use the IP address instead of the PC name:
\\192.168.1.10\sharename. Ensure that NetBIOS over TCP/IP is enabled in the network adapter settings if you prefer name resolution. - SMB service not running. Open Services (Win + R, type
services.msc) and ensure the Server service is running and set to Automatic. - Windows Defender SmartScreen blocks SMB traffic. Temporarily disable SmartScreen or create an exception for the SMB ports (TCP 445 and 139).
Frequently Asked Questions
What is SMB and why is it needed?
SMB (Server Message Block) is a network protocol that allows computers to share files, printers, and other resources. Windows uses SMB by default for file sharing across local networks.
Do I need to enable SMB 1.0 to share files?
No. SMB 2 and SMB 3 are enabled by default and are more secure. SMB 1.0 is only necessary if you are sharing with very old devices that do not support newer versions.
How can I share a folder with a Mac?
On the Mac, open Finder, click Go > Connect to Server, and type smb://yourpcname/sharename. Enter the Windows credentials when prompted.
Can I disable SMB sharing after I’m done?
Yes. Go back to Settings > Network & internet > Advanced network settings > Network sharing and toggle File and printer sharing Off. Remove the share from the folder’s Properties > Sharing tab if you no longer want it visible.
Will enabling SMB 1.0 expose my PC to security risks?
SMB 1.0 has known vulnerabilities and is less secure than SMB 2/3. Enable it only when absolutely necessary and consider disabling it again once the legacy device is no longer in use.