Onsite Business IT & Home IT services · Auckland and HamiltonText Mon-Fri 8am-6pm · evenings & weekends in Auckland 0800 865 529 info@onsitetech.co.nz

Business IT problems

AADSTS50126 Invalid Username or Password

AADSTS50126 is Microsoft 365 saying the username or password did not match. Often it is not the person typing, but an app still using an old password.

Computer screen showing an authentication failed sign-in error

Last updated 21 November 2026

Short answer

AADSTS50126 means Microsoft 365 rejected the username or password. Often it is not a typo but another device, such as a phone mail app, second computer or scanner, still using an old password after a change. Check caps lock and sign in through a browser. If failed attempts keep appearing, have an admin check the sign-in logs.

Error AADSTS50126 reads as an error validating credentials due to an invalid username or password. It is returned by Microsoft Entra ID when a sign-in arrives with details that do not match the account. That sounds obvious, yet staff often see it when they are sure the password is right, which usually means the wrong account, a cached old password, or a typing detail like caps lock.

It matters because repeated failures add up. Microsoft protects accounts with smart lockout, so a phone or laptop quietly retrying an old password in the background can lock the account for a while even after the person has typed the correct one. Sorting out where every failed attempt is coming from is as important as getting the current sign-in to work.

  • Price agreed before work starts
  • Onsite across Auckland & Hamilton
  • Job by job or on a care plan

The usual causes

The most frequent is a recent password change. Outlook on a second computer, mail on a phone, a shared calendar app or a scanner still holds the old password and keeps trying it. Next comes the wrong username, such as a personal Microsoft account email or an old address after a name change. Typing issues, like caps lock or a keyboard set to another layout, are common too. In businesses that sync passwords from an on-site server, a change made in one place may not have reached Microsoft 365 yet.

Checks before calling for help

Try these in order, using a browser first because it gives the clearest answer about whether the password itself works.

  • Type the password slowly in a browser sign-in page
  • Check caps lock and the keyboard language indicator
  • Confirm you are using your work address, not a personal one
  • Use self-service password reset if your business has it set up
  • Update the password on every phone, tablet and second computer
Computer screen showing an authentication failed sign-in error
Computer screen showing an authentication failed sign-in error
Talk to us about AADSTS50126 invalid username or password$30 call-out. Free quotes for bigger jobs. No lock-in contracts.
Book a tech 0800 865 529

How we track it down

With admin access we read the sign-in logs, which show each failed attempt, the app it came from and the device or location. That quickly reveals a forgotten device or service still using an old password. We reset the password if needed, update saved credentials on every device, and check that the failed attempts are not from somewhere unexpected. A stream of failures from overseas addresses points to someone guessing passwords, and that calls for a security review as well as a reset.

Before we arrive

  • A screenshot of the AADSTS50126 message
  • The exact username being typed
  • Every device and app that uses this account
  • When the password was last changed
  • Microsoft 365 admin access, or the person who holds it

Related services

Microsoft 365 Setup & MigrationMicrosoft 365 tenants, mailboxes, SharePoint and security set up properly.Remote IT SupportSoftware, email, printing and account problems fixed over a secure remote connection, with an onsite visit booked if needed.Email Setup & SupportEmail set up, moved and fixed on your computers - Outlook, Apple Mail and webmail.

We come to you across Auckland and Hamilton - areas we cover

What a visit looks like

When you book AADSTS50126 invalid username or password, you tell us what's going on and we reply with a time that suits you and a price. Nothing starts until you're happy with both.

On the day, the technician arrives, looks at the problem in person and confirms the plan with you before starting. If something turns out different from what was expected - a part is needed, or the cause is somewhere else - we stop and agree the change with you first.

When the work is done we test it with you, show you what was changed, and leave the area tidy. For business jobs we note what we did, so there is a record for whoever looks after your IT next.

Pricing

Show prices
ChargePriceIncl. GST
Call-out, per onsite visit$26.09 + GST$30
First hour on site$135 + GST$155.25
Each half hour after the first hour$60 + GST$69
Remote help session (no call-out)$60 + GST$69
SuperGold card holders - first hour at home$116 + GST$133.40

AADSTS50126 invalid username or password is charged at our standard rates: a $30 call-out, the first hour, then half-hour blocks. We never charge by the minute or in 15-minute steps, and there are no hidden extras.

Larger jobs - a new network, a run of cabling, a server or a camera system - get a free quote before any work starts, so you know the cost up front. Parts and equipment are quoted and agreed before we order them.

There is no lock-in contract. Book a single job and pay for that job, or - for a business - choose a monthly care plan, quoted to you and stopped whenever you like.

Full pricing

Need help with AADSTS50126 invalid username or password? Tell us the job.$30 call-out. Free quotes for bigger jobs. No lock-in contracts.
Book a tech 0800 865 529

AADSTS50126 Invalid Username or Password: common questions

I know my password is right. Why the error?

Check the username first, because a personal account and a work account can share an email address. Then think about other devices still holding an old password, as their failed attempts can lock the account while you type the right one.

Will repeated attempts lock me out?

They can. Microsoft locks an account for a short period after too many wrong attempts. Wait before trying again, and stop any phone or computer that keeps retrying in the background.

Can staff reset their own password?

Only if self-service password reset has been switched on and they have registered a phone or other method. If not, an administrator resets it in the Microsoft 365 admin centre under Users.

Could someone else be trying my account?

Possibly. If the sign-in logs show failed attempts from places you have never been, someone may be guessing. Make sure multi-factor sign-in is on and use a long, unique password.

Related questions from across the site

OneDrive Error 0x8004de40OneDrive error 0x8004de40 means the sync app could not connect to Microsoft's servers. It is a connection problem, so the network is the place to start.OneDrive Error 0x8007016AError 0x8007016A, The cloud file provider is not running, means Windows tried to open an online-only OneDrive file while OneDrive was not available to fetch it.Outlook Error 0x8004010FOutlook error 0x8004010F, Outlook data file cannot be accessed, means Outlook's profile points to a data file it can no longer find or open.Outlook Error 0x800CCC0EOutlook error 0x800CCC0E means Outlook could not connect to the mail server to send or receive. Settings, ports or the connection itself are usually to blame.Teams Error caa50021Teams error caa50021 is a sign-in failure on the Windows desktop app. It points to the computer's stored work account or its connection to Microsoft, not to Teams itself.

More business IT problems

Windows Update Error 0x800f081fWindows update error 0x800f081f means the update could not find the source files it needed. It is fixable, and usually without reinstalling Windows.Windows Update Error 0x80070002Error 0x80070002 is Windows saying a file it expected was not there. During updates that usually means a broken download, and it can be cleared safely.Error 0x80070005 Access DeniedError 0x80070005 means access denied: Windows blocked an action because the account or process lacked permission. The fix depends on what you were doing at the time.Network Path Not Found 0x80070035Error 0x80070035, the network path was not found, means a computer cannot reach a shared folder, server or NAS. The cause is usually naming, settings or an older device.No Logon Servers Available"There are currently no logon servers available to service the logon request" means a domain-joined PC cannot reach the server that checks passwords.The RPC Server Is Unavailable"The RPC server is unavailable", often shown as 0x800706BA, means a computer asked another machine or service for something and got no answer.Printer Error 0x0000011bPrinter error 0x0000011b appears when computers try to connect to a printer shared from another Windows PC, and it traces back to a Windows security change.Printer Driver Is UnavailableWhen Windows says "Driver is unavailable" under a printer, the software that lets the PC talk to that printer is missing, damaged or no longer suitable.Windows Cannot Connect to the Printer"Windows cannot connect to the printer" is a general message; the code that follows it points to the real cause, from drivers to sharing permissions.INACCESSIBLE_BOOT_DEVICE Blue ScreenThe INACCESSIBLE_BOOT_DEVICE blue screen means Windows started loading but then lost access to the drive it boots from. Data is often fine, but act carefully.All business IT problemsInternet dropping out, files you can't open, calls breaking up, backups failing - the problems that stop work, and how we fix them.

Need a technician on site?

Tell us the job. We'll reply with a time and a price before any work starts.

Book a tech
Book a tech CallEmail us