Please try creating a new local administrator account then check if the issue persists.
Login Window Closes Automatically When Attempting to Sign In to Microsoft Account
I am experiencing an issue when attempting to sign in to my Microsoft account on my system. When I try to log in through the Microsoft Store and other Microsoft platforms, the sign-in window initially appears and displays my account. However, after I select my account and proceed with the sign-in process, the login window closes automatically before the process can be completed.
As a result, I am unable to successfully sign in to my Microsoft account. This issue occurs consistently across multiple Microsoft applications that require authentication.
I would appreciate any guidance or troubleshooting steps to resolve this problem.
Windows for home | Windows 11 | Accounts, profiles, and login
3 answers
Sort by: Most helpful
-
John DeV 158.9K Reputation points Independent Advisor
2026-03-12T08:15:07.2266667+00:00 -
John DeV 158.9K Reputation points Independent Advisor
2026-03-11T10:55:32.4933333+00:00 Hi, good day!
- When was the last time it worked properly?
- Have you made any changes to your computer recently?
Please try this if it helps.
Press Windows key+R to pen Run then copy and paste the path below
%localappdata%\Packages
Press Enter
After that, find the folder named "Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy"
Rename it to Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy.old
Restart your computer
I look forward to receiving your update and I'm willing to collaborate with you till we resolve the issue. Do keep me informed by clicking "Add comment" below.
-
Q&A Assist2026-03-11T10:11:42.1866667+00:00 AI generated content. This question contains an answer created with AI from Q&A Assist. Learn moreTry the following steps in order, as the issue affects Microsoft Store and other sign-in surfaces:
- Run the Microsoft Store reset tool
- Press Windows logo key + R.
- Type
wsreset.exeand select OK. - A blank Command Prompt opens, then closes after a few seconds, and Microsoft Store should reopen automatically.
- Try signing in again.
- Make sure Windows and Microsoft Store are updated
- Check Windows Update and install any available updates: use the Check for updates entry from the article.
- Open Microsoft Store, go to Downloads and updates, and select Get updates to update Store and apps.
- Use the Microsoft account Sign-in Helper
- If the sign-in window still closes or loops when trying to log in with the Microsoft account, use the Sign-in Helper tool to detect and fix common Microsoft account sign-in issues.
- Check for general Microsoft account sign-in problems
- If the account password has stopped working or the username is not recognized, follow the guidance under Recover lost access to your Microsoft account, including:
- Reset your password if needed.
- Use the Sign-in Helper tool if the password is correct but sign-in still fails.
- If the account password has stopped working or the username is not recognized, follow the guidance under Recover lost access to your Microsoft account, including:
- If sign-in problems affect Windows itself
- If similar behavior appears when signing into Windows (for example, not getting verification codes or password/PIN issues), use the Windows sign-in troubleshooting entry points such as:
- Change or reset your Windows password.
- Forgot your Microsoft account password.
- The Windows sign-in Sign-in helper.
- If similar behavior appears when signing into Windows (for example, not getting verification codes or password/PIN issues), use the Windows sign-in troubleshooting entry points such as:
If the sign-in window still closes immediately after these steps, collect details (where it happens, any error text, and recent changes) and use the Sign-in Helper tools above as the next escalation path.
References:
- Run the Microsoft Store reset tool