Use the official Microsoft account recovery and verification tools to regain access and fix the code issue.
- Reset the Hotmail/Microsoft account password
- Go to Recover your account at https://account.live.com/password/reset (from context: “Recover your account”).
- Enter the Hotmail address, phone number, or Skype name used to sign in.
- Follow the steps:
- Choose where to get a security code.
- Select Next, then Send code.
- Enter the code to verify identity.
- Set a new password and confirm it.
If the username or password still does not work after this, repeat the recovery using any other alias or phone number on the account, as suggested in the “My username and password have stopped working” guidance.
- Fix “codes not going to mobile”
When SMS codes do not arrive, check the following from the verification-code troubleshooting guidance:
- Make sure the phone number is a mobile number, not VOIP; VOIP numbers cannot receive Microsoft verification codes.
- Check that the number is entered correctly; only the last two digits are shown for security when signing in.
- Confirm the phone is not blocking texts from unknown numbers. If it is, change the phone settings, then choose I don't have a code so a new one is sent.
- Avoid excessive or repetitive requests for codes; this can cause Microsoft to temporarily block sending verification codes due to unusual activity.
- If there is heavy compromised traffic from the region or a temporary SMS issue, codes may be delayed or not delivered; this usually resolves automatically after some time.
- If codes still do not arrive
- Try the verification and password reset steps in a different browser or in InPrivate/Incognito mode.
- Use an alternate verification method (backup email, other phone) if available on the account.
- If none of the verification options work, complete the full account recovery form at https://account.live.com/acsr (from context Q&A) with as much accurate information as possible.
- If still unable to sign in
- Use the Sign-in helper tool, which can detect common sign-in problems and guide through fixes: Sign-in Helper.
- If sign-in is still not possible after using the helper and recovery form, contact Microsoft Support using any other Microsoft account (or a newly created one) and choose the Microsoft account/Outlook.com support path described in the Q&A references.
Note: For security reasons, Microsoft Support cannot send verification codes for the locked account or bypass the security checks; all recovery must go through the official self-service tools.
References: