How to enable Samba on Windows 11

Windows 11 already speaks SMB, the protocol Samba servers use, so to enable Samba you open File Explorer, type \\server-name\share-name in the address bar and sign in with the Samba user's credentials.

This guide covers the SMB versions Windows 11 ships with, how to turn on SMB 1.0 for an old server, how to map a share, how to share a Windows folder over SMB, and the 24H2 signing and guest errors that block NAS connections.

How to enable Samba on Windows 11

There is no separate Samba package to install on Windows 11. SMBv2 and SMBv3 are built in and on by default, and they are what a current Samba server or NAS expects.

  1. Note the Samba server's name or IP address and the share name, for example nas01 and media.
  2. Open File Explorer with Windows logo key + E.
  3. Click the address bar, type \\nas01\media and press Enter.
  4. When Windows asks for credentials, type the user name and password of an account that exists on the Samba server.
  5. Tick the option to remember the credentials if you want Windows to reconnect without asking.
  6. Select OK. The share opens as a normal folder you can browse, copy to and save into.

If Windows says the share needs the obsolete SMB1 protocol, the server is too old for the defaults. The SMB1 section below shows how to switch it on, and why updating the server is the better fix.

Understanding Samba and SMB on Windows 11

Samba is open-source software that lets Linux, macOS and NAS devices serve files over SMB (Server Message Block). Windows uses SMB natively, so the two talk without extra software.

SMB version Introduced with State on a clean Windows 11 install Use it for
SMBv1 Legacy Windows and old Samba releases Not installed (client and server both absent) Only devices that cannot be updated past SMBv1
SMBv2 (2.02, 2.1) Windows Vista and Windows Server 2008 Installed and enabled Any current Samba server or NAS
SMBv3 (3.0, 3.02, 3.1.1) Windows 8 and Windows Server 2012 Installed and enabled Encryption, multichannel and the best performance

SMBv2 and SMBv3 share one stack, so turning one on or off changes the other too. SMBv1 has known ransomware and malware weaknesses, and Microsoft deprecated it in 2014.

How to check SMB version in Windows 11

Run these in PowerShell after you open a Samba share. The Dialect column shows the SMB version the connection actually negotiated.

  1. Open the Samba share in File Explorer so a connection exists.
  2. Open PowerShell as administrator from the Start menu.
  3. Run Get-SmbConnection and read the Dialect value next to the server name, for example 3.1.1.
  4. Run Get-SmbServerConfiguration | Select EnableSMB2Protocol and confirm it returns True.
  5. Run Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol and read the State line to see whether SMB 1.0 is installed.

A dialect of 2.02 or higher means SMB1 is not involved and can stay off. You can run PowerShell as administrator from the Start menu search too.

How to enable SMB1 on Windows 11 for an old Samba server

Do this only when a device that supports nothing but SMBv1 refuses to connect, and the maker has no firmware update. Microsoft recommends updating the server instead of reinstalling SMBv1.

  1. Open Control Panel and select Programs and Features.
  2. Under Control Panel Home, select Turn Windows features on or off to open the Windows Features dialog.
  3. Scroll down to SMB 1.0/CIFS File Sharing Support and tick its checkbox.
  4. Expand the entry and keep only the client sub-feature ticked if the PC only needs to connect to the old server, not serve files to it.
  5. Select OK and wait while Windows applies the change.
  6. Select Restart now on the confirmation page.

After the restart, open \\server-name\share-name again. Plan to remove SMB1 once the old device is replaced.

How to enable Samba on Windows 11
Expand SMB 1.0/CIFS File Sharing Support and keep only SMB 1.0/CIFS Client ticked if the PC just connects to the old server. (Image: Microsoft)

Enable SMB 1.0 with PowerShell in Windows 11

The same feature can be added from an elevated PowerShell window. Windows restarts after the command runs, so save open work first.

Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol

Installs the SMB 1.0/CIFS File Sharing Support optional feature. Check the result first with Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol.

You should see: After the restart, Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol reports State : Enabled.

Enable SMB2 and SMB3 on Windows 11 with PowerShell

SMBv2 and SMBv3 are on by default. If a script, a past tweak or a troubleshooting session turned them off, this puts them back without a restart.

Set-SmbServerConfiguration -EnableSMB2Protocol $true

Turns SMBv2 and SMBv3 back on for the Windows SMB server component, which other devices use to reach shares on this PC.

You should see: Get-SmbServerConfiguration | Select EnableSMB2Protocol returns True.

The client side is controlled by the mrxsmb20 driver. From an elevated Command Prompt, sc.exe config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi followed by sc.exe config mrxsmb20 start= auto re-enables it; restart the PC afterwards. On a PC without SMB1 installed, leave mrxsmb10 out of the first command, so it reads depend= bowser/mrxsmb20/nsi.

How to map a Samba share as a network drive in Windows 11

A drive letter keeps the Samba share one click away in This PC and reconnects after sign-in. You can map a network drive from File Explorer, or use PowerShell.

  1. Open Terminal from the Start menu (no admin rights are needed for a drive mapping).
  2. Run New-SmbMapping -LocalPath "X:" -RemotePath "\\nas01\media" -Persistent $true, replacing the server and share names with yours.
  3. Add -UserName and -Password if the Samba account differs from your Windows sign-in.
  4. Check that the Status column shows OK.
  5. Open File Explorer and select This PC. The share appears as drive X:.

Remove the mapping later with Remove-SmbMapping -LocalPath "X:".

Map a Samba share as a network drive in Windows 11 File Explorer
In This PC, open the three-dot menu and choose Map network drive to give the share a drive letter without PowerShell. (Image: Microsoft)

How to share a folder over SMB from Windows 11

This is the other direction: a Linux or Mac machine running a Samba client opens a folder that lives on the Windows 11 PC. Windows needs network discovery and file sharing on first.

  1. Open Settings, type manage advanced sharing settings in the Find a setting box and select Manage advanced sharing settings.
  2. Under Private networks, turn on Network discovery and File and printer sharing.
  3. In File Explorer, right-click the folder and select Show more options.
  4. Select Give access to > Specific people.
  5. Select a user on the network, or Everyone to give all network users access, and confirm.
  6. Connect from the other machine with its SMB client, using the Windows PC's name, the folder name and a Windows account name and password.

Mark the network as private first; you can set the network profile to Private in Settings. You can also share files and folders over a network with other Windows PCs the same way.

Share a folder over SMB from Windows 11 after turning on network discovery
Select the yellow bar in the Network folder and choose Turn on network discovery and file sharing before sharing a folder. (Image: Microsoft)

Windows 11 can't access Samba share

Each message below points to one cause. Fix the server side where you can, because Microsoft advises against weakening Windows SMB security to reach an old device.

"This share requires the obsolete SMB1 protocol, which is unsafe"

The Samba server or NAS only offers SMBv1, which Windows 11 does not install.

  1. Check the device maker's support site for firmware or a Samba update that adds SMB 2.02 or later.
  2. If no update exists, add SMB 1.0/CIFS File Sharing Support as shown above and restart.
  3. Replace the device when you can, then remove SMB1 again.

Error 0xc000a000, STATUS_INVALID_SIGNATURE or "The cryptographic signature is invalid"

Windows 11 version 24H2 Pro, Enterprise and Education require SMB signing, and the Samba server has signing turned off.

  1. Open the NAS or Samba server's SMB settings and turn on SMB signing.
  2. Update the device firmware if it has no signing option.
  3. Run Get-SmbClientConfiguration | FL RequireSecuritySignature on the PC. True means the PC requires signing, which is the secure default to keep.

"You can't access this shared folder because your organization's security policies block unauthenticated guest access"

The share allows guest access only, and Windows 11 Pro and later builds reject insecure guest logons by default.

  1. Create a named user with a password on the Samba server or NAS.
  2. Give that user permission on the share.
  3. Connect again with \\server-name\share-name and enter the new user name and password.

Error 0x80070035: "The network path was not found"

Microsoft lists this among the errors a blocked guest-only share returns; a wrong server name or an offline server gives it too.

  1. Try the server's IP address instead of its name, for example \\192.168.1.20\media.
  2. Confirm the server is on the same network and the share name is spelled correctly.
  3. If the share is guest-only, add a named user on the server as in the previous fix.

The Samba server does not appear under Network in File Explorer

Network browsing used the Computer Browser service, which depends on SMBv1 and is removed with it.

  1. Type the \\server-name\share-name path directly in the address bar instead of browsing.
  2. Map the share to a drive letter so it stays in This PC.
  3. To browse Windows PCs, open Services and set Function Discovery Provider Host and Function Discovery Resource Publication to Automatic (Delayed Start), then turn on network discovery.
Windows 11 can't access Samba share: unauthenticated guest access blocked error
This message means the share is guest-only; create a named user with a password on the Samba server instead. (Image: Microsoft)

How to disable SMB1 on Windows 11

Remove SMB1 as soon as the old device is gone. SMBv2 and SMBv3 keep working for every current Samba server.

  1. Open Control Panel > Programs and Features.
  2. Select Turn Windows features on or off.
  3. Clear the checkbox for SMB 1.0/CIFS File Sharing Support and select OK.
  4. Select Restart now when Windows finishes.
  5. Or run Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol in an elevated PowerShell window; the PC restarts afterwards.
Disable SMB1 on Windows 11 by clearing SMB 1.0/CIFS File Sharing Support
Clear the SMB 1.0/CIFS File Sharing Support checkbox, select OK and restart once the old device is gone. (Image: Microsoft)

Samba on Windows 11 FAQ

Does Windows 11 support Samba shares?

Yes. Windows 11 includes SMBv2 and SMBv3 clients and servers, which current Samba releases use. Open the share as \\server\share in File Explorer and sign in with an account from the Samba server.

Is Samba the same as SMB?

No. SMB is the file-sharing protocol, and Samba is open-source software that implements it on Linux, macOS and NAS devices. Windows talks SMB natively, so it needs no Samba software to reach a Samba server.

Is SMB1 enabled by default in Windows 11?

No. A clean installation of any Windows 11 edition contains neither the SMBv1 client nor the SMBv1 server. You add it from Turn Windows features on or off only when an old device needs it.

Is SMB2 enabled by default in Windows 11?

Yes. SMB versions 2.02, 2.1, 3.0, 3.02 and 3.1.1 are installed and enabled by default. Get-SmbServerConfiguration | Select EnableSMB2Protocol returns True on a standard setup.

Do I need to restart after enabling SMB1?

Yes. Windows asks you to select Restart now after you add SMB 1.0/CIFS File Sharing Support in Windows Features, and the PowerShell Enable-WindowsOptionalFeature command restarts the PC as well.

Why can't Windows 11 24H2 connect to my NAS anymore?

Windows 11 version 24H2 Pro, Enterprise and Education require SMB signing by default. A NAS or Samba server with signing off fails with 0xc000a000. Turn on signing on the device, or update its firmware.

Does Windows 11 Home require SMB signing?

No. Microsoft states that Windows 11 version 24H2 Home edition does not require outbound or inbound SMB signing. Pro, Enterprise and Education editions require both.

Can Windows 11 connect to a guest-only Samba share?

Not by default on Windows 11 Pro and later builds, which reject insecure guest logons. Create a named user with a password on the Samba server and connect with that account.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *