Mapped drives drop when Windows, the router, or the NAS can’t authenticate or reach each other at sign-in or after an IP/name change. Check Windows network profile and Credential Manager first, then verify name resolution and DHCP/static addressing, and finally confirm SMB/auth and router isolation or firewall rules to restore persistent mappings.
What symptom shows mapped-drive settings are the problem
You have a settings problem when the mapped drive appears in File Explorer with a red X, asks repeatedly for credentials at sign-in, or disappears after sleep/reboot and only works again when you remap it manually.
Common, specific observations that point to settings rather than hardware:
- The drive works if you map using the NAS IP (for example
\\192.168.1.50\Share) but fails when you map by hostname (for example\\MyNAS\Share).
- The drive shows a red X in File Explorer at sign-in, and double-clicking prompts for a username/password.
- The mapping is present for one Windows account or a scheduled task but not for your interactive session.
- The mapping breaks after the NAS or router reboots and the NAS received a different DHCP address.
If you see these symptoms, focus on credential storage, network profile, name resolution, DHCP/static addressing, SMB/authentication settings, or router isolation/firewall rules.
Before you start (scope and safe checks)
Applicability: this guide targets home networks where a Windows PC maps a share on a NAS or another PC. You need an account on the Windows PC with rights to change network and credential settings and access to the router and NAS admin interfaces or their web GUIs.
Safe checks and stopping conditions:
- Confirm you can physically reach the NAS (it powers on and its status LEDs look normal). If the NAS appears to have failed hardware, stop and consult the NAS vendor.
- Note any recent changes (password, firmware update, router configuration) and stop if you lack credentials or admin access to the router/NAS.
- Reboots are part of the process: plan 10–15 minutes for testing and at least one reboot of devices if you change IP or SMB settings.
Before making settings changes, collect these facts:
- The exact mapped path (hostname or IP) and drive letter.
- The error text or behavior you see at sign-in or when attempting to access the share.
Fix 1 — Check Windows network profile and power sequencing
Where to act: Windows network settings and power options.
- Confirm the active network profile is Private.
Settings > Network & internet > Status > Properties > Network profile: Private- Expected: the network is marked Private. If it’s Public, change it to Private and retry the mapping.
- Disable Fast Startup and test a normal shutdown/start to ensure networking initializes before sign-in.
Control Panel > Power Options > Choose what the power buttons do > Change settings that are currently unavailable > Uncheck Turn on fast startup- Expected: after shutdown and cold boot, Windows has time to initialize the network and will attempt to reconnect mappings successfully.
- Check NIC power settings so the adapter isn’t turned off.
- Open Device Manager, find your network adapter, right-click Properties > Power Management.
- Uncheck "Allow the computer to turn off this device to save power."
- Expected: network adapter stays active and mappings don’t drop when the PC sleeps or wakes. If you must conserve power, test with these options toggled and pick what works for you.
Fix 2 — Verify and fix saved credentials
Where to act: Windows Credential Manager and net use so you can see authentication errors.
- Open Credential Manager and find any entries for the NAS hostname or IP; remove or update them to match the NAS account and password.
- Recreate the mapping from an elevated command prompt so you see immediate errors.
net use Z: \\MyNAS\Share /user:NASuser MyPassword /persistent:yes- Expected: the command returns "The command completed successfully." If it prompts or gives an authentication error, note the exact message.
- If you prefer not to include the password on the command line, omit it and you’ll be prompted securely.
What it means if it fails: authentication errors point to incorrect credentials, a changed NAS account password, or the NAS refusing the authentication method. Update credentials on both sides or create a matching local account on the NAS.
Fix 3 — Test name resolution and DHCP vs static addressing
Where to act: on the PC and in the router/NAS DHCP settings.
- Test reachability by name and IP.
ping MyNAS
ping 192.168.1.50- Expected: both commands reach the NAS. If ping by name fails but ping by IP succeeds, name resolution is the problem.
- If the NAS IP changes under DHCP, reserve the IP in the router (DHCP reservation) or set a static IP on the NAS following the NAS manual.
- Preferred: use DHCP reservation in the router so the NAS keeps a stable address without editing the NAS network config.
- If you must use static IP on the NAS, follow the NAS vendor’s instructions and document gateway/DNS entries.
What it means if it fails: name resolution failures can be due to router DNS not registering local hostnames, LLMNR being blocked, or the NAS not announcing its name. Use a DHCP reservation and map by hostname, or map by the reserved IP if hostname registration can’t be fixed.
Fix 4 — Check SMB version and NAS authentication settings
Where to act: NAS settings and Windows Optional Features or registry (only when documented by the vendor).
- Confirm the NAS has SMB file sharing enabled and supports SMB 2 or SMB 3.
- Expected: SMB sharing active with SMB 2/3 enabled. Avoid SMB1 unless you have legacy devices that explicitly require it.
- If the NAS recently disabled older SMB versions or started requiring encrypted connections, match the client settings per vendor guidance.
- Confirm the NAS isn’t set to accept only anonymous/guest or only AD accounts if you use local accounts.
What it means if it fails: protocol mismatches or a change in authentication policy on the NAS will produce authentication or connection errors. Check the NAS logs and vendor documentation before enabling legacy protocols; verify exact steps for your model.
Fix 5 — Router isolation, firewall rules and discovery
Where to act: router settings and any guest Wi‑Fi/AP isolation options.
- Ensure the NAS and PC are on the same subnet and not on an isolated guest network.
- Disable AP/Client/Guest isolation if enabled for that SSID.
- Confirm the router or a host firewall isn’t blocking SMB ports (TCP 445 and 139).
- > Warning: Do not permanently open SMB ports to the internet. Only adjust local firewall rules inside your trusted LAN and revert any internet-facing port changes.
What it means if it fails: if devices are isolated or ports blocked, discovery and SMB traffic will be prevented. Re-enable inter-client communication and test again.
Diagnostic sequence: symptom, safe check, reversible fix
Follow this sequence to diagnose and fix the problem safely.
- Symptom: note when the mapping fails (at sign-in, after sleep, after reboot of NAS/router).
- Safe check: test reachability by name and IP, and try
net useto reproduce the error.
ping MyNAS
ping 192.168.1.50
net use Z: \\MyNAS\Share /persistent:yes- Expected: name resolves to the NAS IP and
net usereturns success. Ifnet usereports authentication errors, go to Fix 2; if name resolution fails, go to Fix 3; if thenet usecommand reports protocol or access denied messages, go to Fix 4 and check NAS SMB/auth settings.
- Reversible fix: start with credential fixes, then network profile/power options, then DHCP reservation or static IP, then SMB/authentication, then router isolation. Each step is reversible: restore Credential Manager entries you backed up, undo power option changes, or remove a DHCP reservation if it causes other issues.
Verify the fix
How to confirm the mapping is persistent.
- After applying a fix, reboot the NAS (if changed) and the router if you changed DHCP.
- At the Windows sign-in screen wait 30 seconds before signing in to let the network initialize, then sign in.
- Confirm the mapped drive appears without a red X and you can open files.
- Run the same commands used during diagnosis to verify success.
ping MyNAS
net use Z: \\MyNAS\Share /persistent:yes- Expected: name resolves and
net usereports success. If the mapping still fails at sign-in but works after you open File Explorer, that points back to power sequencing or fast startup and you should revisit Fix 1.
Prevent recurrence
Actions to reduce future failures:
- Reserve IPs for servers (DHCP reservation) or use documented static IPs on the NAS.
- Keep credentials updated in Windows Credential Manager and update them when NAS passwords change.
- Keep NAS and router firmware up to date, but review vendor release notes for SMB/authentication changes before upgrading.
- Prefer SMB 2/3 and authenticated access; avoid guest access unless you accept the security risk.
- Avoid mapping exclusively by raw IP unless you must; map by hostname with a DHCP reservation when possible.
Conclusion
Start with network profile and saved credentials, then verify name resolution and stable IP assignment, and finally check SMB/authentication and router isolation. If these steps don’t fix it, gather the exact error messages and logs and consult the NAS or router documentation for model-specific guidance.
Frequently Asked Questions
Should I map by IP or hostname?
Map by hostname when local name resolution is reliable because hostnames survive IP changes. Use a DHCP reservation for the NAS so the hostname always resolves to the same IP. If you can’t fix name resolution, map by the reserved IP instead.
Does Windows need a domain or AD to keep mapped drives?
No. Persistent mappings work for local accounts. Domain/AD adds factors like group policies and machine credentials, but for a home network local accounts plus saved credentials are usually sufficient.
Can I rely on guest access for mapping?
Guest access is less secure and many NAS vendors disable it by default. If guest access stops working, switch to an authenticated account and store the credentials in Credential Manager.