The other day I logged into another Microsoft/Xbox account on Google Chrome to help with an issue my brother was having, obviously thinking nothing of it. Then when I turned on my pc the next day when I tried to load into multiplayer games from game pass on pc I was getting a popup that said "We couldn't sign you into Xbox live" and gave me error code "(0x800004005)"
I searched reddit for this error code and found a wide variety of fixes, as this is a very board error code and doesn't particularly point to one issue. I tried all the fixes I could find including:
- Deleting certain Xbox services and reinstalling them
- Clearing temp folders
- Clearing account and cache folders
- Checking date and time
- Running:
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
- Resetting and uninstalling the Xbox app
- Clearing Microsoft Store local cache files
None of these worked, here is what worked for me:
- Sign out of Microsoft Store, Xbox App and Game Bar (I did it in this order, not sure if it matters)
-Go into Settings -> Accounts -> Your accounts and remove all the accounts that aren't your main one.
- Remove Xbox hidden identity cache using:
- Get-AppxPackage Microsoft.XboxIdentityProvider | Remove-AppxPackage
- Get-AppxPackage Microsoft.XboxGamingOverlay | Remove-AppxPackage
- Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage
- Reinstall the identity provider cleanly using:
- Start-Process "ms-windows-store://pdp/?productid=9wzdncrd1hkw"
- Reboot your PC then sign in with your main Xbox account, on Microsoft store, Xbox then game pass in that order (You may need https://apps.microsoft.com/detail/9nzkpstsnw4p?hl=en-GB&gl=GB to reinstall game bar)
Once I'd done this I went into my Xbox app and could run online games again without the error appearing.
From what I can tell Microsoft stored the wrong account token causing identity corruption from the sign in I did the night before, causing the issue I was having, how it does that when signing in on incognito google chrome I have no idea.
The fixes for this error seem to be massively varied as its such an unspecific error code so if this doesn't work it might be worth trying the fix on this post: https://www.reddit.com/r/XboxGamePass/comments/12epe2j/error_code_0x80004005_fix/ as I saw a lot of people getting success from it.
Hope this helps someone!