Cannot Access Network Drive? Fixes That Work
In this article
If you see "cannot access network drive" when trying to open a shared folder or mapped drive, the cause is almost always one of a few fixable issues: incorrect credentials, a wrong drive path, Windows security settings, or the network discovery feature being turned off. Below are the exact steps to diagnose and fix the problem on current versions of Windows (10 and 11), along with explanations of why each fix works.
What Causes the Error?
The error can appear in several forms: "Windows cannot access \\server\share", "The network path was not found", "Access is denied", or "You do not have permission". Each message points to a different layer of the connection:
- Path not found – the computer name or IP address is wrong, or the shared folder name is mistyped.
- Access denied – you are using the wrong username/password, or the share permissions don't include your account.
- Network path not found – often means the remote computer is off, firewalled, or network discovery is disabled.
- This program is blocked by group policy – usually related to SMB1 or credential delegation settings.
Check the Basics First
Before changing any settings, verify the obvious things that cause most connection failures:
- Is the remote computer turned on and awake? (Check if you can ping its IP address.)
- Are both computers on the same network? (Same subnet or reachable via a router.)
- Is the shared folder actually shared? (Right-click the folder → Properties → Sharing tab → Share.)
- Did you type the path correctly? Use the format
\\ComputerName\ShareNameor\\IPAddress\ShareName.
If you're using a mapped drive (e.g., Z:), the drive letter might be assigned to an old path. Open File Explorer, right-click the mapped drive, and select "Disconnect", then re-map it with the correct path.
Fix Authentication and Permission Issues
If you get "Access is denied" or "You do not have permission", the problem is usually with the credentials or share permissions. Try these steps in order:
- Use the correct username and password. When connecting to a workgroup PC, use the local account name and password of that PC. If it's a domain PC, use
DOMAIN\username. - Check share permissions. On the host computer, go to the shared folder's Properties → Sharing → Advanced Sharing → Permissions. Ensure the "Everyone" group or your specific user has at least "Read" permission.
- Check NTFS permissions. On the Security tab, make sure your user account has "Read" or "Full control" (if needed). NTFS permissions combine with share permissions – the most restrictive wins.
- Try using the IP address instead of the computer name. If name resolution is failing,
\\192.168.1.10\sharemay work. If it does, the issue is DNS or NetBIOS name resolution.
Enable Network Discovery and File Sharing
Windows 10 and 11 often disable network discovery by default on public networks. To enable it:
- Open Control Panel → Network and Sharing Center → Advanced sharing settings.
- Under Private (or "Current profile"), turn on Network discovery and File and printer sharing.
- If you're on a public network, either switch it to Private or enable network discovery for public networks (not recommended for security).
Also make sure the network profile is set to Private. Go to Settings → Network & Internet → Wi-Fi (or Ethernet) → click the connection and select "Private network".
Adjust Windows Firewall and SMB Settings
Windows Firewall can block file sharing even when network discovery is on. The firewall rules for "File and Printer Sharing" must be enabled. To check:
- Open Windows Defender Firewall → Allow an app or feature through Windows Defender Firewall.
- Scroll to File and Printer Sharing and check both Private and Public boxes (or at least Private).
- If the setting is greyed out, click "Change settings" first.
Additionally, the Server Message Block (SMB) protocol version matters. Windows 10/11 support SMB3, but some older devices only support SMB1, which is disabled by default for security. If the target device is very old (e.g., Windows XP, some NAS drives), you may need to enable SMB1 on the client – but this is risky and not recommended. Instead, consider updating the device or using a different protocol.
Reset the Network and Re-map the Drive
If you've tried everything and still get the error, a clean reset often works:
- Open Command Prompt as Administrator and run:
net use * /deleteto clear all mapped drives. - Run:
ipconfig /flushdnsto clear DNS cache. - Restart both computers.
- After restart, try mapping the drive again: right-click This PC → Map network drive → enter the path and check "Connect using different credentials" if needed.
If the issue persists, check the Credential Manager (Control Panel → Credential Manager → Windows Credentials). Remove any stale credentials for the target computer, then re-enter them when connecting.
Frequently Asked Questions
Why can I ping the computer but still can't access the share?
Ping only confirms the computer is reachable at the network level. The file sharing service (Server service) might be stopped, or the firewall is blocking SMB ports (445, 139). Check that the "Server" service is running (services.msc) and that the firewall allows File and Printer Sharing.
What does "network path not found" mean exactly?
It means the client couldn't find the target computer or share. This can be due to a wrong IP/hostname, the target being off, or network discovery being disabled. Try using the IP address directly; if that works, the issue is name resolution.
How do I fix "access denied" when I know the password is correct?
Check the share and NTFS permissions on the host. Even if you have the right password, your account must be listed in the share's permissions. Also, if the host is a workgroup PC, you must use the local account of that PC, not a Microsoft account.
Can I access a network drive from outside my home network?
Yes, but you need to set up a VPN or port forwarding (which is risky) or use a cloud service. Direct SMB over the internet is generally not recommended due to security vulnerabilities.
Is it safe to enable SMB1 to access an old device?
No. SMB1 has known vulnerabilities (like EternalBlue) and is disabled by default in modern Windows. If you must use it, isolate the device on a separate network segment and only enable SMB1 temporarily. Better to upgrade the device or use a different protocol like FTP or WebDAV.
Why does my mapped drive disconnect after reboot?
This happens when the drive is mapped using a different user account or when the network connection is slow to initialize. Use the "Reconnect at sign-in" checkbox when mapping, and ensure the "Server" service is set to Automatic. You can also use a script to re-map the drive after login.