Quick fix: Save the network credentials in Credential Manager so Windows uses them automatically. Open Control Panel → User Accounts → Credential Manager → Windows Credentials → Add a Windows credential. Enter the server name, username, and password. Tick “Remember my credentials” in the connection dialog the next time you access the share.
Every time you click a network share (\\Server\Share), Windows prompts for username and password — even when you ticked “Remember my credentials.” Frustrating for daily use. The cause is usually one of: credentials not actually saved, server requiring different credentials than your local account, or SMB authentication policy issues.
Affects: Windows 11 (and Windows 10) accessing SMB network shares (NAS, file servers).
Fix time: ~10 minutes.
What causes this
Windows’s SMB client passes the current user’s credentials to the server first. If those don’t match, it prompts. The prompt’s “Remember my credentials” checkbox saves credentials to Credential Manager — but only after the connection succeeds. If the connection fails for other reasons (server timeout, name resolution flakiness), credentials don’t persist.
The reliable fix is to pre-populate Credential Manager with the server’s credentials before connecting.
Method 1: Pre-add credentials to Credential Manager
The reliable fix.
- Open Control Panel → User Accounts → Credential Manager.
- Click Windows Credentials.
- Click Add a Windows credential.
- Enter:
- Internet or network address: server name. Format options:
SERVER— just hostnameSERVER.domain.local— FQDN192.168.1.10— IP address
Add separate entries for each address you might use.
- User name: DOMAIN\username for domain or SERVER\username for workgroup.
- Password: the share access password.
- Internet or network address: server name. Format options:
- Click OK. Credential is saved.
- Open File Explorer → navigate to
\\Server\Share. Should connect without prompt. - Repeat for each server you access frequently.
This is the canonical fix.
Method 2: Map drive with persistent credentials via PowerShell
For scripted setup.
- Open Terminal (Admin).
- Run:
cmdkey /add:Server /user:DOMAIN\username /pass:passwordAdds credential without going through Credential Manager UI.
- List existing saved credentials:
cmdkey /list - Remove a credential:
cmdkey /delete:Server - For interactive (more secure): omit /pass — cmdkey prompts:
cmdkey /add:Server /user:DOMAIN\username - For multiple servers: scriptable in a batch file for new PC setup.
This is the right approach for scripted IT deployment.
Method 3: Investigate why credentials don’t persist
For when Credential Manager has the entry but Windows still prompts.
- Verify saved credential matches the server’s name format.
SERVERdoesn’t matchSERVER.domain.local— need separate entries for each format you use. - Check “Network Security: LAN Manager authentication level” policy via
secpol.msc → Local Policies → Security Options. Default should be “Send NTLMv2 response only.” If higher (Reject LM & NTLM), older SMB servers fail. - For Windows 11 + older NAS (Synology DSM 6.x, QNAP firmware 4.x): old SMB1 may be required. Enable SMB1 client:
Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol-Client. Security risk; only if necessary. - For credentials that expire (password rotation policies): update Credential Manager entries when password changes.
- For PCs joined to Azure AD: credentials may be tied to AAD token, not stored locally. Use AAD-joined credentials at the share if the server supports it.
- For workgroup PCs with HomeGroup vestiges: HomeGroup is removed in Windows 11, but stale registry can interfere. Clean: open Registry Editor and verify no
HomeGroup-related keys remain under HKEY_LOCAL_MACHINE\Software.
This handles edge cases.
How to verify the fix worked
- Open Credential Manager → Windows Credentials. Your server entry is listed with the correct username.
- Open File Explorer → type
\\Server\Sharein address bar. Connects without prompting. - After reboot, same behavior — credentials persist across sessions.
If none of these work
If prompts persist despite saved credentials: Multiple credentials for the same server: Credential Manager may have stale or conflicting entries. Delete all entries for the server, re-add a single correct one. Server-side require fresh auth: some NAS firmware (older Synology, QNAP) ignores Windows’s saved credentials and re-prompts on every connection. Check NAS settings for “Force authentication.” Network discovery mismatch: server name resolves to different IPs depending on how you access it. Use consistent format. Sleep/wake breaks SMB session: after sleep, SMB sessions disconnect. Reconnection re-prompts. Disable USB selective suspend (Power Options) and Wi-Fi adapter power management to keep network alive. For Windows 11 specifically: SMB signing is enabled by default. Some older servers don’t support it. Set-SmbServerConfiguration -RequireSecuritySignature $false on the client side — less secure but compatible.
Bottom line: Credential Manager → Windows Credentials → Add Windows credential. Pre-populate server credentials. cmdkey for scripted automation.