Run the Xbox Gaming Services Repair Tool first, because the same small sign-in window immediately closing in Xbox and Settings > Accounts > Email & accounts was resolved with that tool in the matching Windows 11 case.^1^
1. Repair Gaming Services
- Download Microsoft’s Gaming Services Repair Tool for PC:
https://aka.ms/GamingRepairTool
- Open the downloaded file.
- If Windows asks for permission, select Yes.
- Let the repair finish, then restart the PC.
- Open Microsoft Store first and try signing in.
- If successful, open the Xbox app and sign in with the same Microsoft account.
The tool is supplied through a Microsoft link and is also referenced by Xbox Support.^1^
2. Reset the Microsoft Store cache
If the grey window still closes:
- Close Microsoft Store and Xbox.
- Press Windows key + R.
- Type:
wsreset.exe
- Select OK.
- A blank black window should appear briefly and close automatically; Microsoft Store should then open.^2^
- Try signing into Store, and then Xbox.
3. Repair or reset both apps
For Microsoft Store, then Xbox:
- Open Start > Settings > Apps > Installed apps.
- Find the app and select the three dots > Advanced options.
- Select Repair and test sign-in.
- If it still fails, return to the same page and select Reset.
Resetting removes that app’s locally stored settings and sign-in data, but it does not delete purchases attached to the Microsoft account. Windows documents Repair first and Reset if repair does not work.^3^
Afterward, open Microsoft Store > Library > Get updates and install all available Store, Xbox, and Gaming Services updates. Also open Settings > Windows Update > Check for updates, install available updates, and restart.^4^
4. Check whether the account itself works
Try the Microsoft account sign-in helper.^5^
- If the account signs in successfully online but the grey Windows dialog still closes, the fault is local to Windows or its app components.
- If online sign-in also fails, complete the account recovery or verification steps before continuing.
5. Repair Windows without deleting apps or files
If the same dialog still fails in Store, Xbox, and Settings > Accounts > Your info > Sign in with a Microsoft account instead, use Windows 11’s repair reinstall:
- Connect the PC to power and the internet.
- Open Start > Settings > System > Recovery.
- Under Fix problems using Windows Update, select Reinstall now.
- Select OK and allow the download and installation to complete.
- Restart when requested.
This reinstalls the current Windows version, repairs Windows system files and components, and preserves apps, files, and settings.^6^
Do not interrupt this process. If Fix problems using Windows Update is absent, it can be unavailable on managed PCs or Windows 11 installations missing the required updates; install current Windows updates first.^6^
References
- Xbox app log in window crashes when clicking on use different account - Microsoft Q&A
- I can't find or install an app from Microsoft Store | Microsoft Support
- [Windows 11](https://support.microsoft.com/windows/apps/repair-apps-and-programs-in-windows#summary)
- [Windows 11](https://support.microsoft.com/accounts-billing/fix-problems-with-apps-from-microsoft-store)
- Get help with your Microsoft account
- Fix issues by reinstalling the current version of Windows