Since the Xbox, Microsoft, Java, and XblGrts caches were already cleared, focus on removing the old account from the Windows sign-in path that the launcher is still using.
- In Minecraft Launcher, open the account menu in the top-left corner.
- Select Log out.
- Then choose Microsoft Login and Sign in with a different account.
- If the sign-in window shows an email address that is not recognized, do not enter a code for it.
- In Windows Settings go to Accounts > Email & accounts.
- If the hacked or old Microsoft account is listed there, remove it from the device.
- This removes the cached device sign-in association and is different from recovering or closing the account itself.
- Open the Xbox app and switch the signed-in account there.
- The Minecraft Launcher can follow the Xbox app account.
- After switching the Xbox app account, reopen the Minecraft Launcher and try signing in again.
- If the Microsoft account itself was hacked, use the Microsoft account sign-in helper or hacked account recovery flow.
- The recovery flow can guide to self-help steps or offer the chance to talk to an agent.
- Before changing the password, run a full antivirus scan on the PC.
- After that, change or reset the password, then review account settings such as connected accounts, forwarding, and automatic replies.
- If the account is temporarily blocked because of unusual sign-in activity, reset the password to unblock it.
If the old account keeps reappearing after these steps, the practical path is to keep the launcher, Xbox app, and Windows device account entries aligned to the same new Microsoft account that owns Minecraft.
- I can't sign in to my Microsoft account | Microsoft Support
- How to recover a hacked or compromised Microsoft account | Microsoft Support
- Unblock my Outlook.com account | Microsoft Support
- my microsoft account got hacked - Microsoft Q&A
- When i try to login to microsoft services, it asks for an account i've never used. How do i change the requested account? - Microsoft Q&A