I want to add this here, in case someone else comes looking. The issue with network discovery is the old way and was tied to SMB1. The new way, WS-Discovery does not yet appear to be implemented in SAMBA. Windows does not yet support Zerconf so AVAHI does not work for Windows.
Falling back to SMB1 while disabling SMB2/3 is not the answer.
Someone named stilez wrote an article describing the situation here.
And the article provides a link to a python script wsdd.py, which provides the missing functionality. Running the script caused my SAMBA AD servers to instantly appear on Win 10 boxen.
EDIT:
Script is now available under Debian/Ubuntu repository:
sudo apt install wsdd
Setting Up Samba Shares On Linux Host For Windows 11 24H2 Clients
Is SAMBA the only way to fileshare from Linux to Windows?
How do you configure Samba Samba for secure file sharing between Linux and Windows? - Help & Support - LinuxCommunity.io
Can't access linux samba share from windows machine
Videos
I currently have Samba shares set up on a Debian server that I use as a NAS, and they've always worked great with all of my Windows machines. However, the Windows 11 24H2 update kills all connections to my shares. This is a known issue with the latest version, so there are several sites reporting how to fix it (usually assuming the host is also using Windows). Apparently the two primary reasons that 24H2 causes problems with Samba are that it disallows guest access to Samba shares, and it completely removes support for SMBv1.
The problem is I've tried mitigating these issues server side, and my client PC still won't even acknowledge my server address with either a host name or the local IP. My Samba server is configured to disallow guest access, all shares have a user and password set up to access them, and Windows was already accessing them with those credentials before the update. I've also set up the host to require SMBv3 at minimum. I've also tried setting Group Policy to be more liberal, and tried the Powershell commands floating around to force override the guest access restrictions. Still, the only way I can get access to my Samba shares again is to roll back the 24H2 update.
Has anyone had any luck getting Samba shares from Linux to successfully work with Windows 11 24H2 clients? If so, how did you configure Samba to do so? The easy solution is "don't update to 24H2", which is what I've kinda been stuck with. However, at some point the update will supposedly become mandatory to continue receiving Windows security updates, so I'm trying to fix future compatibility.
EDIT: For reference, below is an excerpt from my smb.conf file showing how I currently have the host configured. It works perfectly fine with 23H2, but 24H2 won't even connect to it to prompt for the login.
EDIT 2: With the help of the comments I seem to have this resolved now. Installing wsdd on my server made it possible to connect to my NAS again, though I still couldn't access my shares. I then had to unmount all network drive mounts, remove the stored credentials in Credential Manager, then reconnect to the shares. I was then prompted for my login, and after entering it my shares were available again. Then I just had to re-set up my network drive mounts. Time will tell if it breaks again, in which case I'll add a 3rd edit here. Hopefully this helps someone else if you get stuck in 24H2.
[global]
workgroup = WORKGROUP
netbios name = myservername
server role = standalone server
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bind/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n >
pam password change = yes
map to guest = bad user
usershare allow guests = no
min protocol = SMB3
[DriveShare]
comment = DriveShare
path = /mnt/DriveShare
read only = no
force user = myusername
force group = myusername
writeable = yes
I want to add this here, in case someone else comes looking. The issue with network discovery is the old way and was tied to SMB1. The new way, WS-Discovery does not yet appear to be implemented in SAMBA. Windows does not yet support Zerconf so AVAHI does not work for Windows.
Falling back to SMB1 while disabling SMB2/3 is not the answer.
Someone named stilez wrote an article describing the situation here.
And the article provides a link to a python script wsdd.py, which provides the missing functionality. Running the script caused my SAMBA AD servers to instantly appear on Win 10 boxen.
EDIT:
Script is now available under Debian/Ubuntu repository:
sudo apt install wsdd
I've been hammering away at this problem for a few weeks, on and off, and it is only now that I have found the last piece of the puzzle for Windows 10 to see Samba shares in Network (places).
It's all described fully at this link:
How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows and Windows Server
Essentially, you need to enable SMBv1 / CIFS sharing support in Windows 10:

Just hit START in Windows and search for 'Turn Windows features on or off' and it'll take you there.
After I did this, all my problems vanished. Tada!
I don't know if it has reduced the security of my network (probably has!), but if it has it doesn't matter to me too much as it's all on LAN anyway.
Hope this helps some other people out.
Hi all
As a bit of a newb, I'd appreciate any insight on this. I've had so many issues getting SAMBA to run at speeds equivalent to Windows <-> Windows and I'm wary of trying to implement this in a professional environment.
So I guess my question would be: What is the absolute best way of ensuring the fastest possible transfer speeds between a Linux file system and a Windows Server based one?
For context, the Linux (Ubuntu server) would be hosting a few hundred terabytes of NVME storage which needs to be shared across a Windows environment used for video editing.
Any guidance appreciated.
The problem is not the Samba share but a new security setting under Windows 10. They specifically made it so that you cannot bypass this behaviour from the Samba side. They explain why under the section Cause.
Symptoms
In Windows 10, Windows Server 2019, or Windows Server 2016, the SMB2 client no longer allows the following actions:
- Guest account access to a remote server.
- Fall back to the Guest account after invalid credentials are provided.
SMBv2 has the following behavior in these versions of Windows:
- Windows 10 Enterprise and Windows 10 Education no longer allow a user to connect to a remote share by using guest credentials by default, even if the remote server requests guest credentials.
- Windows Server 2016 Datacenter and Standard editions no longer allow a user to connect to a remote share by using guest credentials by default, even if the remote server requests guest credentials.
- Windows 10 Home and Professional editions are unchanged from their previous default behavior.
If you try to connect to devices that request credentials of a guest instead of appropriate authenticated principals, you may receive the following error message:
You can't access this shared folder because your organization's security policies block unauthenticated guest access. These policies help protect your PC from unsafe or malicious devices on the network.
and
Cause
This change in default behavior is by design and is recommended by Microsoft for security.
A malicious computer that impersonates a legitimate file server could allow users to connect as guests without their knowledge. Microsoft recommends that you do not change this default setting. If a remote device is configured to use guest credentials, an administrator should disable guest access to that remote device and configure correct authentication and authorization.
Windows and Windows Server have not enabled guest access or allowed remote users to connect as guest or anonymous users since Windows 2000. Only third-party remote devices might require guest access by default. Microsoft-provided operating systems do not.
and
Resolution
If you want to enable insecure guest access, you can configure the following Group Policy settings:
- Open the Local Group Policy Editor (gpedit.msc).
- In the console tree, select Computer Configuration > Administrative Templates > Network > Lanman Workstation.
- For the setting, right-click Enable insecure guest logons and select Edit.
- Select Enabled and select OK.
Source
https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/guest-access-in-smb2-is-disabled-by-default
If you assign the "Everyone" role with Read or Read/Write it will allow you to connect without authenticating. Also remember the Share permissions don't override the NTFS permissions for files, so assign Everyone to Read/Write on the folders too (not just the share permissions).
Here's a tutorial https://websiteforstudents.com/create-shares-everyone-full-access-windows-10-server/