The “Enter network credentials” error on Windows appears when you try to access a shared folder or drive on another computer and Windows cannot verify your username and password. The fix usually involves checking the remote computer’s sharing settings, entering the correct credentials (often the Microsoft account email and password), or enabling guest access if the share is meant to be public. Below are the most common causes and step-by-step solutions.
Why Windows Asks for Network Credentials
Windows uses a protocol called SMB (Server Message Block) to access files on other computers over a local network. When you open a shared folder, your PC sends your current Windows username and password to the remote machine for authentication. If those credentials don’t match an account on the remote computer, Windows shows the “Enter network credentials” dialog box.
This happens most often in home networks where one PC runs Windows 10 or 11 and another runs an older version, or when the remote computer is set to require password-protected sharing. The dialog can also appear if the remote computer is joined to a domain, if the account is a Microsoft account (which uses an email address), or if the network profile is set to “Public” instead of “Private.”
Common Causes of the Error
- Mismatched account names: You’re entering your local PC username instead of the remote computer’s username.
- Microsoft account vs. local account: The remote PC uses a Microsoft account, so the username is the full email address.
- Password-protected sharing is ON: Windows requires a valid user account and password on the remote PC.
- Network profile is Public: Discovery and file sharing are disabled on public networks.
- Credential Manager has old saved credentials: Windows keeps trying an outdated username/password pair.
- SMB1 is disabled or misconfigured: Older devices may need SMB1, which is disabled by default in modern Windows.
How to Fix It: Step-by-Step
Try these solutions in order. Most users resolve the issue with the first or second step.
- Enter the correct credentials manually. In the login dialog, type the remote computer’s username (not your current PC’s) and its password. If the remote PC uses a Microsoft account, enter the full email address (e.g., user@outlook.com) and the Microsoft account password. If you’re not sure, check the remote PC’s Settings > Accounts > Your info.
- Use the format COMPUTERNAME\Username. In the username field, type
\\RemotePCName\UserName(e.g.,\\DESKTOP-ABC123\John). This forces Windows to look for that specific account on that specific machine. - Turn off password-protected sharing. On the remote PC, go to Control Panel > Network and Sharing Center > Advanced sharing settings. Under “All Networks,” select “Turn off password protected sharing.” Then try accessing the share again. This allows guest access, but only do this on a trusted home network.
- Enable file and printer sharing. In the same Advanced sharing settings, make sure “Turn on file and printer sharing” is selected under the Private profile. Also set the network profile to Private (Settings > Network & Internet > Wi-Fi/Ethernet > click your connection > set to Private).
- Clear saved credentials. Open Control Panel > Credential Manager > Windows Credentials. Look for entries under “Windows Credentials” that match the remote computer’s name or IP address. Remove them, then try connecting again. This forces Windows to ask for fresh credentials.
- Check if SMB1 is needed. If the remote device is an older NAS, router, or Windows 7 machine, SMB1 might be required. On the remote PC (or the PC you’re connecting from), open PowerShell as Administrator and run
Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocolto check status. If disabled, you can enable it withEnable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol, but note that SMB1 is insecure and should only be used temporarily on a trusted network. - Use the IP address instead of the computer name. Sometimes name resolution fails. Try accessing
\\192.168.1.10\share(replace with the remote PC’s actual IP address) instead of the computer name.
When You Should NOT Use Guest Access
Turning off password-protected sharing makes the shared folder accessible to anyone on the same network without a password. That’s convenient for a home network, but it’s a security risk on public or semi-public networks (like a coffee shop or apartment building Wi-Fi). If you need to keep the folder private, leave password-protected sharing ON and make sure you’re entering the correct credentials. Also, never disable password-protected sharing on a PC that contains sensitive personal or financial files.
How to Share a Folder Properly (to Avoid the Error)
If you’re the one setting up the share on the remote PC, follow these steps to avoid the error for others:
- Right-click the folder > Properties > Sharing tab > Share.
- Add the user you want to give access to. If you’re using a Microsoft account, type the email address. If you’re using a local account, type the local username.
- Set the permission level to “Read” or “Read/Write” as needed.
- Click Share, then note the network path shown (e.g.,
\\DESKTOP-ABC123\FolderName).
If you want to allow everyone on the network without a password, you can add “Everyone” and set permissions, but again, that’s only safe on a trusted network.
What About “Enter Network Credentials” for a NAS or Router?
Network-attached storage (NAS) devices and routers with USB storage often have their own user accounts. The error appears when the credentials you enter don’t match the device’s local accounts. Check the device’s admin panel for the correct username and password. Many NAS devices have a default admin account (like admin) and a password you set during initial setup. If you’ve forgotten it, you may need to reset the device to factory settings.
Frequently Asked Questions
Why do I get “Enter network credentials” even though I’m typing the right password?
This usually happens when the username is wrong. If the remote PC uses a Microsoft account, you must enter the full email address, not just the first name. Also, if the remote PC has a local account, the username is case-insensitive but must match exactly. Try the COMPUTERNAME\Username format to eliminate ambiguity.
How do I find the username of the remote computer?
On the remote PC, open Settings > Accounts > Your info. The username is shown under “Account name” or as the email address if it’s a Microsoft account. Alternatively, open Command Prompt and type whoami to see the current user in the format computername\username.
Can I access a shared folder without a password?
Yes, if you turn off password-protected sharing on the remote PC (Control Panel > Network and Sharing Center > Advanced sharing settings > All Networks > Turn off password protected sharing). Then any device on the same network can access the share without credentials. This is not recommended for sensitive data.
Why does the error appear only sometimes?
Intermittent errors often come from saved credentials in Credential Manager. Windows may have cached an old password that it tries first, and when that fails, it shows the dialog. Clearing the saved credentials for that network share usually fixes it. Also, if the remote PC changes its IP address, the saved entry may point to the wrong machine.
Is it safe to enable SMB1 to fix this?
SMB1 is an outdated protocol with known security vulnerabilities. Only enable it if you absolutely need to connect to an old device that doesn’t support SMB2 or SMB3. After you’ve accessed the device, disable SMB1 again. On a modern network with all Windows 10/11 PCs, SMB1 is not needed.
What if I’m connecting to a work domain and get this error?
In a domain environment, you should enter your domain credentials in the format DOMAIN\username or user@domain.com. If that fails, contact your IT administrator—there may be a group policy that restricts access, or your account may not have permission to the specific share.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to View Wi-Fi Password on iPhone
- How to Stream on Twitch from PC
- GTM vs Facebook Pixel: What’s the Difference?
- Windows 10 Won’t Boot? Fix It in 30 Minutes
- Ubuntu 26.04 LTS Requirements & Hardware Checks
- ATK0100 Driver: Do You Need to Install It?