The issue is typically caused by newer SMB/security defaults in Windows 11 that older/Unix SMB servers (or older Samba configs) don’t fully match. Because Windows 7 and Ubuntu can connect, focus on adjusting the Windows 11 SMB client and verifying basic name/path usage.
Use these steps on the Windows 11 PC:
- Test basic access and naming
- In File Explorer, try the UNC path directly:
\\<Ubuntu-IP>\<share-name>instead of browsing the network. - If the IP works but the server name does not, verify the exact computer name and DNS/hosts resolution. For example, if the server name changed (or Windows 11 sees a slightly different name), mapping by the wrong name will fail. A similar scenario is described where a dash and number were added to a computer name, breaking name-based access until corrected.
- In File Explorer, try the UNC path directly:
- Relax SMB client security to match older Samba
On Windows 11, open PowerShell as Administrator and run:
Then restart the Windows 11 PC and try mapping the share again withSet-SmbClientConfiguration -RequireSecuritySignature $false Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" ` -Name RequireSecureNegotiate -Value 0 -Force\\<Ubuntu-IP>\<share-name>. These settings disable mandatory SMB signing and “RequireSecureNegotiate”, which can block connections to older Samba/SMB 1.x/early 2.x servers and cause generic errors like “An extended error has occurred” or “invalid share name.” - Verify share name and permissions
- Confirm the share name on the Ubuntu server is exactly what is being used in Windows 11. A typo or mismatch in the share name will cause errors similar to “invalid share name.”
- Ensure the account and password used in Windows 11 match a valid Samba user on the Ubuntu server.
- If mapping by name still fails but IP works
- Use the IP-based UNC path in the Map Network Drive wizard (e.g.,
\\192.168.1.10\data). - Optionally fix name resolution (router/DNS/hosts) so
\\servername\shareresolves correctly.
- Use the IP-based UNC path in the Map Network Drive wizard (e.g.,
- Map the drive
- Open File Explorer → This PC → More → Map network drive.
- Choose a drive letter.
- In Folder, enter
\\<Ubuntu-IP>\<share-name>. - Check “Reconnect at sign-in” and finish.
If these steps work, the problem was SMB security negotiation or name resolution on Windows 11, not the Ubuntu shares themselves.
References:
- Troubleshoot Azure Files connectivity and access issues (SMB)
- File sharing over a network in Windows
- Scenario guide: GPO to map a network drive doesn't apply as expected
- Windows 11 share not taking computer-name - Microsoft Q&A
- New Windows 11 Home system will not connect to remote SMB share - Microsoft Q&A