Hi,
I appreciate your Chand fully and clear explanation. I am really sorry you had to go through this. It is a nightmare scenario that no one should experience regarding his device and Microsoft account. Let's break it down into what you can do to avoid this from happening again and get things back on track.
PART 1: ACCOUNT LOCKOUT + OFFLINE DEVICE.
This is what happens when Windows couldn't authenticate with Microsoft servers; special cases are devices that use a Microsoft account to login, but:
There is no internet on boot.
Or there are sync/authentication issues with your account (e.g., outdated credentials, password changed elsewhere).
FIX: Visit Settings > Accounts > Sign-in options > Password and add a local account backup (with a password you know). This will serve as a backup in case your Microsoft login gives you troubles once again.
Enable auto sign-in to Wi-Fi in your settings so you can never be offline on boot.
Keep offline login enabled: Go to Settings > Accounts > Your Info, and confirm your account is verified. Then try to log in once with a good connection so that your PC stores proper offline credentials.
PART 2: MISSING VERIFICATION CODES
Now when Microsoft states that it is sending something to that very email you are trying to log in to, it means you are stuck and cannot retrieve anything. Thus they assume you have access to that email but you do not.
***Fix for Not Receiving Codes:
Log-in recovery steps (from a browser):
Try from here: https://account.live.com/proofs/manage
In Security Info, add an alternate email or phone (one that you control and can receive codes on).
Use the recovery form if above doesn't work:
This is sort of an ultimate resort form. Also, be patient; it may take 24-48 hours sometimes.
PART 3: ISSUES WITH THE OUTLOOK APP (NOT SYNCING, INBOX STUCK)
In case Outlook is not reaching complete connectivity after doing a fresh Windows install, the following are the probable reasons:
Mail zervice is not active in Windows,
The app is not given proper permissions, and
Account settings are not authenticated properly.
**Steps to Fix Outlook Sync:
Remove and readd the Account:
Settings > Accounts > Email & accounts
Delete all Outlook/Hotmail type accounts.
Reboot.
Then add fresh ones through Outlook, not the Windows Mail app.
Check permissions:
Go to Settings > Privacy > Email/Calendar → Make sure apps can access it.
Reset the Outlook app:
Settings > Apps > Installed Apps > Outlook > Advanced Options > Reset.
Alternatively, you can uninstall → Reboot → Reinstall from the Microsoft Store.
Clear the mail cache:
Open Command Prompt with admin right and run: wsreset.exe
Use the web version as a stopgap measure:
Go to https://outlook.live.com until the app starts behaving.
PART 4: "TOO MANY ATTEMPTS" ON MICROSOFT LOGIN
Unusual login attempts (especially after reinstalls or password resets) are typically subjected to Microsoft's brute-force lockout.
Solution: Wait for a couple of hours (24 hours max, usually) and then try logging in using a private/incognito window. Try logging in from a different device or browser.
If completely blocked, try the recovery tool: https://account.live.com/ResetPassword.aspx
Regards,
Tin