Windows XP Error 1326 When Mapping a Network Drive
In this article
Windows XP error 1326 when mapping a network drive usually means the server rejected the username or password: Windows reports “Logon failure: unknown user name or bad password.” Check the account, password, and domain or workgroup context first; also remove conflicting saved credentials and confirm that the server still permits the kind of file sharing XP uses.
What error 1326 means
Error 1326 is a Windows logon error, not a diagnosis of a broken drive letter or cable. When you connect to a shared folder, the client presents credentials to the computer hosting that folder. If the host cannot authenticate them, Windows may display error 1326, sometimes alongside a message that the network path was not found or that access is denied. Those other messages have different meanings, so note the exact wording and when it appears.
A mapping such as net use Z: \\SERVER\Share assigns the shared folder to drive Z:. It does not grant access by itself: the account must be accepted by the remote computer and have permission to the share and its files. A password that works to sign in to the XP computer may not be valid on the server.
Check the server and credentials first
Before changing security settings, make sure the share and login are valid. Confirm the server name and share name with the administrator or someone who can already connect. Try the server’s IP address as a diagnostic, for example \\192.168.1.20\Share. If the IP works but the name does not, investigate name resolution rather than repeatedly changing passwords.
- Enter the account name exactly as the server expects it, including any domain or computer prefix. For a local account on a server named FILES, that might be
FILES\alex; for a domain account, it might beDOMAIN\alex. - Check keyboard layout, Caps Lock, and whether the password has changed. XP may not make it obvious that an old password is being reused.
- Ask whether the account is enabled, locked, expired, or allowed to log on over the network. A correct password can still fail if account policy blocks network access.
- Verify that the account has permission both on the share and on the underlying folder. Authentication can succeed while a later permission check denies access.
If the computer is part of a workgroup, the server may expect an account created on that server rather than the XP computer’s local account. A workgroup name is not a substitute for a username or password. In a domain, use the domain account format supplied by the administrator.
Clear conflicting connections and saved passwords
Windows can reuse credentials from an earlier connection to the same server. It can also reject a second connection to one server when the first connection used a different username. This can make a newly entered password seem ineffective.
Open Command Prompt and run net use to list active network connections. Disconnect only the connection you need to replace with net use \\SERVER\Share /delete, substituting the actual server and share. To remove all mapped and network connections for the current session, net use * /delete is broader and may interrupt other work, so check the list first. Then reconnect with the intended account.
On XP, saved network passwords can be reviewed through Control Panel > User Accounts, selecting the current user and opening the option for managing network passwords (the exact labels can vary by XP edition and configuration). Remove only the entry for the server in question, then try again. Do not delete credentials you still need without recording how to restore them securely.
Map the drive with explicit credentials
You can test authentication from Command Prompt without first assigning a drive letter. For example:
net use \\SERVER\Share /user:SERVER\alex *
Replace SERVER, Share, and alex with the actual details. The asterisk prompts for a password without placing it directly in the command. If it succeeds, map a drive with:
net use Z: \\SERVER\Share /user:SERVER\alex *
Use a drive letter that is not already assigned. Avoid putting a password directly in a command or batch file: it can remain visible in command history, scripts, or other places. If the command returns a different error, use that exact message to guide the next check rather than treating every network problem as error 1326.
When the server is newer than XP
Windows XP is unsupported and lacks many security updates. Modern Windows versions and network appliances may disable older authentication or file-sharing protocols that XP relies on. In that case, a login failure can look like bad credentials even when the account is correct. The server’s security logs or administrator can help distinguish a rejected password from an incompatible authentication method.
Do not solve the problem by broadly enabling obsolete protocols, weakening password policy, or turning off security protections on a current server. SMB1, in particular, is an old file-sharing protocol with significant security risks. If a business or device genuinely requires it, an administrator should assess the risk, isolate the legacy system, and use the narrowest temporary exception possible. Prefer upgrading XP or moving the files to a supported computer or service.
Common mistakes and safer alternatives
- Assuming the XP login is the server login: they are separate unless accounts have been configured to match.
- Changing the password repeatedly: this can lock an account and does not clear cached credentials.
- Confusing mapping with access: a mapped letter is only a shortcut; share and folder permissions still apply.
- Testing with guest access: enabling unauthenticated sharing may expose files and is not a safe general fix.
If the XP machine must remain in use, limit what it can reach, avoid using it for sensitive data, and keep it off the public internet. For routine file transfers, a supported operating system, a managed transfer service, or removable media scanned by current security software may be safer, depending on the data and your organization’s rules.
Frequently Asked Questions
Does error 1326 always mean the password is wrong?
No. It means the logon attempt failed. A wrong username, incorrect domain or server prefix, disabled account, account restriction, stale saved credentials, or incompatible authentication settings can produce the same result.
Why can I open the server but not the shared folder?
Reaching or browsing a server does not prove that your account can open a particular share. Confirm the exact share name, then ask an administrator to check both share permissions and folder permissions for your account.
Should I use the server name or its IP address?
Try both as a troubleshooting comparison. If the IP address works and the name does not, check name resolution. If neither works, focus on credentials, permissions, connectivity, and compatibility.
Can I fix this by enabling SMB1?
Only if investigation confirms a protocol incompatibility and an administrator approves the risk. SMB1 is obsolete and unsafe for general use; enabling it is not a sensible first step for a credential error.
Why does Windows say the password is wrong when I just changed it?
An existing connection or saved credential may still be sending the old password. Disconnect the relevant session, remove that server’s saved credential if appropriate, and reconnect using the correct account format.