Share via

Every time I try to sign in to the Xbox app, this error shows.

Alan A 40 Reputation points
2026-03-21T14:50:42.2333333+00:00

Like I said in the title the I am unable to sign into the Xbox app or the Microsoft Store, due to the error message below. I have restarted the Microsoft store. I also can't sign into settings. Edit: I can't do what the AI said, get-appxpackage Microsoft.GamingServices | remove-AppxPackage -allusers, this is the error message, remove-AppxPackage : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

At line:1 char:45

  • ... t-appxpackage Microsoft.GamingServices | remove-AppxPackage -allusers
  • CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], UnauthorizedAccessException
    • FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.Appx.PackageManager.Commands.Remove
    AppxPackageCommand

5831194

Windows for home | Windows 11 | Accounts, profiles, and login
0 comments No comments

Answer accepted by question author
  1. Carl-L 13,040 Reputation points Microsoft External Staff Moderator
    2026-03-25T14:12:28.7066667+00:00

    Hello Alan A,

    Thanks for getting back to me.

    If another Microsoft Account works well with the Microsoft Store and the Xbox apps, which means the issue is likely account cache or issue with the token broker of the account. I will see what I can do, in the meantime, please try to follow this quick fix.

    • Resync the clock.
      1. Close all apps.
      2. Go to Settings > Time & Language > Date & Time.
      3. Make sure "Set time automatically" is Enabled.
      4. Select "Sync now" to resync the clock.
      5. Open the apps again.
    • Reset the apps involved (Not just Microsoft Store).
      1. Go to Settings > App > Installed Apps.
      2. Click on the ellipsis next to the apps > Advanced Settings.
      3. Select Reset.
    • Clear cache credentials tokens.
      1. Type "Credentials Manager" in the search bar and press Enter.
      2. Choose "Windows Credentials"
      3. Under "Generic Credentials" remove all entries that start or contain Xbl (short for Xbox Live)
      4. Restart your computer.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


2 additional answers

Sort by: Most helpful
  1. Carl-L 13,040 Reputation points Microsoft External Staff Moderator
    2026-03-24T07:19:24.73+00:00

    Hello Alan A,

    Welcome to Microsoft Q&A forum.

    Since this is a public forum, we will hide your personal identifiable information, and I have sent that image of yours containing your personal identifiable information in a private message so we can work together to resolve the issue. Also, please check your private message in case you want to share another screenshot to avoid leaking your PII by click on the Private Message button as show below.User's image

    The error message you see usually appears when PowerShell is not running with administrator rights. Can you please check again?

    Before we proceed with the issue, I'd like to ask a few questions to better understand the situation.

    • May I know if you have this issue in any other Microsoft apps?
    • Does your Microsoft account works fine when you sign in to the website?

    I'm waiting for your reply.


  2. Q&A Assist
    2026-03-21T14:51:05.11+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Because sign-in is failing in multiple places (Xbox app, Microsoft Store, and Settings), the issue is likely with the underlying Gaming/Xbox services or the account sign-in stack on the PC rather than a single app.

    Use these steps in order:

    1. Restart the PC Sometimes one of the services needed for sign-in gets into a bad state and a full restart clears it.
    2. Make sure Gaming Services is up to date
    1. Open Start, type PowerShell, right‑click Windows PowerShell, and choose Run as administrator.
    2. Run this command to remove Gaming Services:
         get-appxpackage Microsoft.GamingServices | remove-AppxPackage -allusers
      
    3. In the same PowerShell window, run:
         start ms-windows-store://pdp/?productid=9MWPM2CQNLHN
      
    4. Microsoft Store will open on the Gaming Services page. Install it and accept the UAC prompt.
    5. After installation finishes, restart the PC and try signing in to the Xbox app and Store again.
    1. Ensure the Xbox app is current If the PC has been in a dev/test state or not updated for a while, the Xbox app itself may be outdated.
    1. Confirm the system is in the normal RETAIL sandbox.
    2. In an elevated PowerShell window, run:
         get-appxpackage Microsoft.XboxApp | remove-AppxPackage -allusers
      
    3. Then run:
         start ms-windows-store://pdp/?productid=9mv0b5hzvk9z
      
    4. Install the Xbox app from Microsoft Store, then test sign‑in again.
    1. If sign-in still fails everywhere Use the online Microsoft account tools to confirm the account itself is healthy:

    If, after these steps, sign-in still fails with 0x80048820 on this PC but works on the web, collect the full error details from the dialog and contact support with that correlation ID and timestamp for deeper investigation.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.