Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix "You Can't Connect to the File Share Because It's Not Secure

· 5 min read · Home Tech

In this article
  1. What Causes This Error?
  2. Check Which SMB Version You're Using
  3. Fix 1: Enable SMB 2.0 or Higher on the Server
  4. Fix 2: Adjust the Client's SMB Security Policy
  5. Common Problems and Misconceptions
  6. Comparing SMB Versions and Security
  7. Alternatives to SMB for File Sharing
  8. Frequently Asked Questions

The error "You can't connect to the file share because it's not secure" appears in Windows when the SMB (Server Message Block) protocol version or security settings on the server don't meet the client's minimum requirements. The fix is to either enable SMB 2.0 or higher on the server, or adjust the client's SMB security policy, depending on which side is outdated.

What Causes This Error?

Windows 10 and Windows 11 have gradually disabled older, less secure versions of SMB. SMB 1.0, introduced in the 1990s, lacks modern encryption and authentication, making it a vector for malware like WannaCry. Starting with Windows 10 version 1709, SMB 1.0 is not installed by default, and later updates removed the guest access fallback entirely.

When you try to connect to a network share (e.g., \192.168.1.10\shared) that only supports SMB 1.0, or that uses guest authentication without encryption, Windows blocks the connection with the "not secure" message. The same error can occur if the server is running an old NAS firmware or a legacy Linux Samba version that only offers SMB 1.0.

Check Which SMB Version You're Using

Before changing anything, verify what the server supports. On Windows, open PowerShell as Administrator and run:

Get-SmbServerConfiguration | Select EnableSMB1Protocol, EnableSMB2Protocol

If EnableSMB1Protocol is True, the server is offering SMB 1.0. To see which version is actually negotiated for a connection, use:

Get-SmbConnection | Select ServerName, Dialect

The Dialect column shows values like 3.1.1, 3.0.2, or 2.0.2. If you see 1.0, that's the problem.

Fix 1: Enable SMB 2.0 or Higher on the Server

The proper fix is to make the server support SMB 2.0 or later. SMB 2.0 has been standard since Windows Vista and Server 2008, so any modern Windows system already supports it. If the server is an old Windows machine, do this:

  1. Open Control Panel → Programs → Turn Windows features on or off.
  2. Expand SMB 1.0/CIFS File Sharing Support and uncheck SMB 1.0/CIFS Client and SMB 1.0/CIFS Server.
  3. Reboot the machine.

For a NAS or Linux Samba server, update its firmware or Samba package. In Samba's smb.conf, ensure server min protocol = SMB2 or higher. For a Windows server, you can force a minimum protocol via Group Policy:

  1. Run gpedit.msc (Pro/Enterprise) or regedit.
  2. Navigate to Computer Configuration → Administrative Templates → Network → Lanman Server.
  3. Set Enable insecure guest logons to Disabled (if it's enabled).

Fix 2: Adjust the Client's SMB Security Policy

If you can't update the server (e.g., an old printer or embedded device), you can relax the client's requirements. This is less secure and should only be a temporary workaround. Open PowerShell as Administrator and run:

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" -Name "AllowInsecureGuestAuth" -Value 1 -Type DWord

Then restart the workstation service:

Restart-Service LanmanWorkstation

This allows connecting to shares that use guest access without encryption. Alternatively, you can re-enable SMB 1.0 on the client (not recommended):

Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol

After either change, try connecting again. If it still fails, reboot both machines.

Common Problems and Misconceptions

  • It's not a firewall issue. The error is about protocol security, not connectivity. If the share is reachable but blocked, you'd see a different message about network path not found.
  • Enabling SMB 1.0 is not a safe long-term fix. It exposes your system to known vulnerabilities. Use it only to access legacy devices, and disable it again afterward.
  • Guest access is often the real culprit. Even with SMB 2.0, if the share allows guest logons and the client has guest access disabled, you'll get this error. Enable "insecure guest logons" only on trusted networks.
  • Rebooting is essential. Registry changes to SMB settings often require a full restart, not just a service restart.

Comparing SMB Versions and Security

SMB 1.0 has no encryption, uses weak authentication, and is vulnerable to several exploits. SMB 2.0 added signing and better performance. SMB 2.1, 3.0, and 3.1.1 progressively improved encryption (AES-128), pre-authentication integrity, and secure dialect negotiation. For maximum security, use SMB 3.1.1, which is the default on Windows 10 and 11. The error "not secure" is Windows telling you that the connection would fall back to SMB 1.0 or unencrypted guest access—both of which are disabled by default.

Alternatives to SMB for File Sharing

If you can't get SMB to work securely, consider these alternatives:

  • FTP/SFTP: SFTP (SSH File Transfer Protocol) is secure and works on many NAS devices. FTP is not secure unless using FTPS.
  • WebDAV over HTTPS: Good for remote access, but setup is more complex.
  • Cloud storage: OneDrive, Google Drive, or Dropbox for syncing files across devices without a local server.
  • NFS (Network File System): Common on Linux and NAS, but not natively supported on Windows without extra software.

Frequently Asked Questions

Why does this happen on Windows 11 but not Windows 7?

Windows 7 had SMB 1.0 enabled by default. Windows 10 and 11 disable it by default and also block insecure guest logons. So a share that worked on an older OS will fail on a newer one unless the server is updated.

Can I fix this without touching the server?

Yes, by enabling "AllowInsecureGuestAuth" on the client or re-enabling SMB 1.0. However, this reduces security and should only be done if you trust the network and the server.

Is SMB 2.0 enough?

SMB 2.0 is much better than 1.0, but SMB 3.0 or higher is recommended because it adds encryption. If your server supports it, force SMB 3.0 or 3.1.1.

What if the server is a Linux machine?

Check the Samba version. Samba 4.x supports SMB 2.0 and 3.0. In smb.conf, set server min protocol = SMB2 or SMB3. Restart Samba with sudo systemctl restart smbd.

Will this error occur on a home network?

Yes, if you have an older NAS or a Windows 7 machine sharing folders. Updating the NAS firmware or enabling SMB 2.0 on the Windows 7 machine will resolve it.

Can I map a drive with this error?

No, the same security check applies when using net use or "Map network drive". You'll need to fix the SMB settings first.