Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
VGSources
Blog

Windows “Logon Failure: Unknown User Name or Bad Password” (0x8007052e): Complete Fix Guide

Windows logon failure usually means the target rejected the credentials it received, but stale passwords, account scope, policy, rights and DNS can produce the same message. This guide distinguishes 1326/0x8007052e from printer, domain-join and replication errors and gives step-by-step fixes.
Length8 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Windows error 1326, commonly displayed as 0x52E or 0x8007052e, means the target rejected the credentials it received. The username and password may genuinely be wrong, but the same message also appears when the account is presented in the wrong domain or server scope, a saved password is stale, the account is expired, disabled or locked, or an authentication policy rejects the exchange.

The reliable fix is to identify the operation first, then verify the account format, remove conflicting credentials, test the target directly and check policy or directory health when the code is not the ordinary 1326 error.

As an Amazon Associate I earn from qualifying purchases.

What “logon failure” means

Microsoft defines Win32 error 1326 (hexadecimal 0x52E) as “Logon failure: unknown user name or bad password.” Applications that wrap the Win32 result often show 0x8007052e. The text describes the authentication result, not necessarily the underlying cause. Windows may send a valid account to the wrong server, use an old saved password, or be blocked by account restrictions or security policy, and the target can still return the same visible message.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The code itself is a status report, not evidence that a computer is infected. It can occur during a local or domain sign-in, an SMB file-share connection, printer installation, a scheduled task, backup software, directory synchronization or a domain operation. The exact operation determines which fix applies.

#1 Best Overall
Yojaro 4Pack Silicone Suction Phone Case Mount, Silicon Adhesive Smartphones Stand Sticky, Hands-Free Phone Accessories Holder for Selfies and Videos (Black & White & Translucent & Light Pink)
  • 【Strong Adsorption】The inspiration of the silicone phone suction case comes from the adhesive force of the octopus. Each suction cup phone mount is 3.15 inches long and 2.17 inches wide, with 24 independent suction cups providing a stronger and more stable suction force, so you don't have to worry about your phone falling during use.
  • 【Back of Phone Suction Grip】Remove the adhesive film on the phone suction cup and stick it on the phone case. You can then fix the phone on any smooth surface, which is very convenient. (The phone suction cup cannot be removed and reused after being attached to the phone case. It is recommended to attach it to a regular phone case, not a valuable one.)
  • 【Widely Used】Our non-slip silicone phone sticky grip mount attaches to almost any flat phone case and make it compatible with common mobile phones such as iPhone and Android.You can shoot, watch videos or video calls in the kitchen, gym, dance studio, bathroom and other places.
  • 【Capture the Wonderful Picture】Whether you are a TikTok creator or just like to share videos and photos, this phone suction cup can help you hands-free capture wonderful videos and photos for sharing with friends.
  • 【Note】You can fix the phone suction cup on a smooth surface such as a mirror or glass. If necessary, wipe the suction cup with a damp cloth to obtain stronger suction. Before releasing your hand, make sure the phone is firmly fixed. (Not applicable to rough walls, wooden surfaces, and other uneven surfaces)

Codes that look similar but require different fixes

Displayed code Typical operation What it identifies First response
1326 / 0x52E General Windows authentication Unknown username or bad password result Check account scope, password, account state and saved credentials
0x8007052e Applications such as sync or management tools HRESULT-style display of Win32 1326 Verify the configured Active Directory account and domain-qualified format
0x0000052e Network printer installation Printer server rejected the supplied credentials Open the printer’s UNC path and authenticate to the print server
0x569 / 1385 Domain join ERROR_LOGON_TYPE_NOT_GRANTED; the account lacks a required logon right Correct the user-right assignment and verify DNS and Group Policy
1396 Active Directory replication “Logon failure: The target account name is incorrect” Investigate account-name, trust and replication health rather than retyping a password

Start by identifying where the failure occurs

Write down the complete message, numeric code and action that triggered it. A share, printer, domain join and replication failure can all contain the words “logon failure,” but they use different authentication paths.

  • Interactive sign-in: the Windows sign-in screen rejects the account.
  • File share or mapped drive: File Explorer or net use cannot authenticate to a server.
  • Printer: Windows cannot connect to a shared printer.
  • Scheduled task, service or backup: a stored run-as account may still contain an old password.
  • Password Sync or another directory tool: the configured Active Directory identity may be malformed or stale.
  • Domain join: the code may be 0x569, which is a rights problem, not ordinary error 1326.
  • Replication: code 1396 points to a target-account-name or trust issue.

Do not repeatedly submit a guessed password while diagnosing. Repeated failures can increase the bad-password count and lock an account, especially when client and server authentication policies are incompatible.

Fix error 1326 or 0x8007052e for a normal sign-in

1. Check the account format and keyboard input

Confirm that Caps Lock, Num Lock and the keyboard layout are what you expect. A domain account can require one of these forms:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • DOMAINuser for a traditional domain-qualified name.
  • [email protected] for a user principal name (UPN).
  • COMPUTERNAMElocaluser or serverlocaluser for a local account on a particular computer.

A username that exists on your PC may not exist on the remote server, and a local account name is not automatically a domain account. If the password recently changed, use the new password and allow time for the account to reach the server or domain controller that is processing the request.

Rank #2
Apple EarPods Headphones with USB-C Plug, Wired Ear Buds with Built-in Remote to Control Music, Phone Calls, and Volume
  • SUPERIOR COMFORT — Unlike traditional circular ear buds, the design of EarPods is defined by the geometry of the ear. Which makes them more comfortable for more people than any other ear bud–style headphones.
  • HIGH-QUALITY AUDIO — The speakers inside EarPods have been engineered to maximize sound output and minimize sound loss, which means you get high-quality audio.
  • BUILT-IN REMOTE — EarPods with USB-C plug also include a built-in remote that lets you adjust the volume, control the playback of music and video, and answer or end calls with a pinch of the cord.
  • COMPATIBILITY — Works with all devices that have a USB-C port.
  • INTEGRATED MICROPHONE — A built-in microphone precisely captures your voice while you’re on the phone, taking a FaceTime call, or summoning Siri — so you’re always heard loud and clear.

2. Verify the account’s state

Have an administrator check whether the account is expired, disabled or locked, and whether a policy requires a password change. For a domain identity, confirm that the account is present in the expected Active Directory domain. For a local identity, verify it on the specific target computer; identical names on two computers are still different accounts.

3. Remove stale Windows credentials

Windows can silently reuse a password saved during an earlier connection. Open Control Panel → User Accounts → Credential Manager → Windows Credentials. Remove or edit the entry for the affected server, printer or application, then retry and enter the current account explicitly. Removing a credential also removes the convenience of the saved connection, so make sure you know the current password before deleting it.

For a command-line share test, first close Explorer windows using the share, then run:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
net use \servershare /delete

After the old session is removed, reconnect with the intended scope:

Rank #3
PopSockets Adhesive Phone Grip, Holder- Black | Anti-Drop, Kickstand, Secure Comfortable Hold, Black, Create a Mobile Phone Outfit
  • Secure Hold: Our PopSockets adhesive phone grip gives your cell phone a secure, comfortable hold in hand to help prevent drops while texting, taking photos, or scrolling on the go. Designed to stick firmly to most phone cases and devices.
  • Hands-Free Made Easy: Easily turn your PopSocket into a phone stand to prop up your phone anywhere, perfect for watching videos, video calls, or following recipes. A must-have phone holder that keeps your device secure and ready for anything.
  • Compatibility: Works with all phones, tablets, and Kindles. Sticks best to smooth, hard plastic cases and may not adhere to silicone or textured cases. Easily swap your PopTop to change up your style.
  • Black PopSockets: Simple, refined, and endlessly versatile. A timeless essential for any phone.
  • Travel Must-Have for People On the Go: A must-have travel accessory for flights, flying, airports, air travel, airplanes, planes, international trips, cruises, and long travel days. Key gadget for your airport haul, travel accessories and must-haves.
net use \servershare /user:DOMAINuser *

The asterisk makes Windows prompt for the password instead of placing it in the command. Replace the server, share, domain and username with the values for your environment.

When one network share works and another fails

Each server authenticates the connection independently. A successful connection to one share proves only that one server accepted one account or cached session; it does not prove that another server recognizes the same name, password or domain.

Test the failing server directly

  1. In File Explorer’s address bar, enter \servershare for the failing target.
  2. When prompted, choose Use a different account if it appears.
  3. Enter DOMAINuser, serverlocaluser or the appropriate UPN, then the current password.
  4. If the direct test succeeds, recreate the mapped drive so it does not retain the previous session or saved credential.

If authentication succeeds but access is denied afterward, the problem is permissions on the share or file system rather than error 1326. If the prompt never accepts a correctly scoped account, check the target server’s account state, name resolution and authentication policy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Fix shared-printer error 0x0000052e

For a network printer, Microsoft’s documented workaround is to authenticate to the print server before installing the printer.

Rank #4
360° Rotating Stainless Steel Phone Tether Tab (Silvery 3-Pack) - Universal for iPhone & Other Phones (Fits Wristbands/Necklaces/Crossbody Straps)
  • [360 ° Flexible Rotation Design] Comes with a rotatable lanyard ring that supports 360 ° free rotation, effectively solving the problem of twisted and tangled lanyards
  • [Wide compatibility] The ultra-thin 0.02-inch design does not block the charging port at all, and both wired and wireless charging can be used directly without removing the pad. Compatible with most smartphones such as iPhone, compatible with various wristbands, lanyards, crossbody straps, and keychains
  • [Durable and Portable Material] Premium rust-resistant stainless steel material with good flexibility, which not only avoids scratching the phone case, but also has excellent anti rust and anti fading performance
  • [Multi scenario Practical] Paired with a lanyard or wristband, hands-free use can be achieved. The phone is within reach and not easily dropped, ideal for daily commuting and outdoor activities. Suitable for full coverage phone cases, does not support half coverage phone cases
  • [Quality Service] If you find any damage or other issues with the product upon receipt, please contact us immediately. We will handle it quickly
  1. Open File Explorer and enter \servernameprintername, replacing both names with the print server and shared printer.
  2. When Windows prompts, enter credentials trusted by that print server, using the required domain or server prefix.
  3. After the connection succeeds, run the printer installation again from Settings → Bluetooth & devices → Printers & scanners → Add device, or open the shared printer from the same UNC path.

You can instead save a trusted credential for the print server in Credential Manager → Windows Credentials. Remove an old print-server entry first if Windows keeps submitting a former password.

Check authentication policy before changing it

Incompatible LAN Manager or NTLM settings can be reported as a bad-password logon failure even when the typed password is correct. They can also count as failed attempts and eventually lock the account. Compare the client and server policies with your organization’s current security standard before changing anything.

On an affected Windows computer, policy settings are visible in Local Security Policy → Local Policies → Security Options. Domain-managed computers may receive the effective setting from Group Policy instead, so a local change can be overwritten. Do not weaken authentication protocols simply to make one connection work; identify which side requires the incompatible setting and have the administrator align the policies safely.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Domain-join failure: distinguish 0x569 from 1326

Error 0x569 (1385), ERROR_LOGON_TYPE_NOT_GRANTED, means the account used to join the computer has not been granted Access this computer from the network on the servicing domain controller. It is not the ordinary “unknown user name or bad password” result.

Best Value
Anteel 2 Pack Silicone Suction Cup Phone Case Mount Double Sided, Hands-Free Silicon Phone Grip with Higher Suction Power for Selfies and Videos, Non Slip Phone Accessories (LightPink&White)
  • 【PKYAA Double Sided Silicone Suction Phone Case Mount】PKYAA With Double Sided 40 Strong and Reliable individual suction cups, PKYAA provides a thicken and upgraded universal silicon suction mount for your phone.
  • 【Friendly to Content Creators】If you are a content creator or an online influencer, you can create videos anywhere with this suction mount completely hands free with this silicone cell phone mount for cases.
  • 【HANDS-FREE & Adhere to Mirrors】This Double Sided silicone suction phone case mount allows you to stick your phone to the mirror easily. No longer holding your phone in one hand to watch video tutorials while making up.
  • 【Strong Grip on the Smooth Surface】You can easily hang your phone anywhere with a smooth surface. All you do is you clean off your phone and smooth surface. It is STURDY and it not only sticks to mirrors, it also sticks to windows, it sticks to refrigerators, tiles and other clean, flat surfaces.
  • 【Press Down Firmly Every 30 Minutes】Use your palm or fingers to press the phone down firmly and check it's secure before letting go. Apply even pressure for a few seconds to allow the suction cup to adhere properly. To maintain the grip and prevent accidental falls, it's a good practice to periodically reapply pressure to the suction cup.

Restore the required user right

  1. On the domain’s Group Policy management system, edit the policy that applies to the domain controller handling the join.
  2. Go to Computer Configuration → Windows Settings → Security Settings → Local Policies → User Rights Assignment → Access this computer from the network.
  3. Add the approved joining account or group, while preserving your organization’s security design. Check the corresponding deny-right policy as well; a deny assignment overrides an allow assignment.
  4. Allow the policy to apply, then retry the join with the intended domain account.

Validate DNS and directory reachability

Domain joining depends on finding the correct domain controllers. On the client, inspect ipconfig /all and confirm that DNS servers point to the organization’s Active Directory DNS service rather than an unrelated public resolver. Check the DNS suffix, resolve the domain and domain-controller names, and verify that the client can reach them. Remove stale or duplicate DNS records when they identify an old computer or controller. Review the join and system diagnostic logs for the specific failure rather than treating every join error as a password problem.

Replication error 1396: investigate the target account name

Error 1396 says “Logon failure: The target account name is incorrect.” It is a distinct Active Directory replication error. Re-entering a password will not correct a mismatched target account name, broken trust relationship or directory inconsistency.

  • Confirm that the source and destination domain controllers resolve each other’s current names and addresses.
  • Check that the computer or service account used by the replication relationship still exists in the expected domain.
  • Look for trust, secure-channel and duplicate-name problems in the directory and domain-controller logs.
  • Use your organization’s Active Directory replication diagnostics to identify which naming context and partner are failing, then correct the account or trust issue before forcing another synchronization.

Scheduled tasks, services and synchronization tools

A background task can continue using credentials that were valid before a password change. Open the task or service properties and inspect the configured “run as” account, then update the password using the required domain-qualified name. For a directory synchronization product that reports 0x8007052e, verify the configured Active Directory account, its domain and its current password; forms such as DOMAINadministrator or [email protected] may be required by the product. Check whether the account is disabled, expired or locked before saving the configuration again.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What to record if the problem persists

  • The exact numeric code and complete message.
  • The operation, target server or printer, and the account format used.
  • Whether the account works interactively and on any other target.
  • Whether a Credential Manager entry or mapped-drive session was removed.
  • Account lockout, expiry, disablement and password-change status.
  • Client and server authentication-policy settings.
  • DNS results, domain-controller reachability and relevant Windows event logs.

This record lets an administrator separate a credential typo from a scope error, stale secret, policy mismatch, missing user right or directory-health problem without causing more lockouts.

As an optional shortcut after trying the manual steps, Outbyte PC Repair can check and repair more than 100 common Windows issues, including broken system elements and shared DLL problems, while also offering settings adjustments, temporary-file cleanup, privacy checks, vulnerability checks, a real-time boost, file shredder and crash log. It runs on Windows 11, 10, 8 and 7; its free trial is offered by category for at least two days before a subscription. It complements antivirus software rather than replacing it, results vary, and no tool repairs every logon failure.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.