For error 0x87DD0005, the documented fix is to make sure the Xbox app and Gaming Services are fully refreshed, then retry sign-in.
- Restart the PC first. A bad service state after updates can block sign-in.
- Make sure Gaming Services is up to date.
- Open PowerShell as Administrator.
- Run:
get-appxpackage Microsoft.GamingServices | remove-AppxPackage -allusers - In the same PowerShell window, run:
start ms-windows-store://pdp/?productid=9MWPM2CQNLHN - Install Gaming Services from the Store page that opens.
- Make sure the Xbox app is up to date.
- Open PowerShell as Administrator.
- Run:
get-appxpackage Microsoft.XboxApp | remove-AppxPackage -allusers - In the same PowerShell window, run:
start ms-windows-store://pdp/?productid=9mv0b5hzvk9z - Install the Xbox app from the Store page.
- If sign-in still fails, resync the system clock.
- Go to Settings > Time & language > Date & time.
- Turn on Set time automatically.
- Select Sync now.
- Clear cached Xbox sign-in tokens.
- Open Credential Manager.
- Select Windows Credentials.
- Under Generic Credentials, remove entries that start with or contain Xbl.
- Restart the PC and try again.
- If the issue started only on this Windows profile, test with a new local Windows user account and try signing in there. If it works in the new profile, the original profile has a local sign-in cache problem.
Note: removing and reinstalling Gaming Services or the Xbox app is a repair step. It should not remove game progress stored with the account, but local app state may be refreshed.