Remove Xbox Identity Provider (breaks Xbox sign-in)
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Windows onlyThis script improves your privacy on Windows
- Impact: HighSystem Functionality Loss Risk: High
This action improves privacy with high impact when you run the recommended script. - Batch (batchfile)These changes use Windows system commands to update your settings.
- Fully reversible
You can fully restore this action (revert back to the original behavior) using this website.
The restore/revert methods provided here can help you fix issues.
Overview
This script uninstalls the "Xbox Identity Provider" app. This app enables your PC games to connect to Xbox Live 1. Its removal can help prevent personal gaming data from being shared with Microsoft's servers.
Running this script will impact:
- Xbox sign-in for certain games, making it impossible to log in 2 3 4.
- Log-in functionality for Xbox Game Pass, leading to errors and inability to access games 5 6.
- Log-in to the Xbox app itself 2 4 7 8.
Common errors caused by the absence of this app include:
- "We tried to sign you in to your Microsoft Account, but something went wrong" 6.
- "You are not signed in to Xbox Live" 6.
- "We couldn't sign you in to Xbox Live. User Interaction is required for Authentication" 6.
- "We can't sign you in right now. Try again later. (
0x406
)" 7 8.
See also: Microsoft Store Page
Removing this app disrupts Xbox sign-in for games and services that require it, including Xbox Game Pass Consider the impact on your gaming experience before proceeding.
Overview of default preinstallation
This app comes pre-installed on certain versions of Windows 9 10 11 12.
OS | Version | Existence |
---|---|---|
Windows 10 | 19H2 | ✅ |
Windows 10 | 20H2 | ✅ |
Windows 10 | 21H2 | ✅ |
Windows 10 | 22H2 | ✅ |
Windows 11 | 21H2 | ✅ |
Windows 11 | 22H2 | ✅ |
Windows 11 | 23H2 | ✅ |
This script should only be used by advanced users.
This script is not recommended for daily use as it breaks important functionality.
Consider creating a system restore point before doing any changes.
Sources
- Xbox Identity Provider - Microsoft Store Apps. apps.microsoft.com. (2023).
Original: https://apps.microsoft.com/store/detail/xbox-identity-provider/9WZDNCRD1HKW
Archived: https://web.archive.org/web/20231004150131/https://apps.microsoft.com/store/detail/xbox-identity-provider/9WZDNCRD1HKW - [BUG]: Xbox sign in not working · Issue #79 · undergroundwires/privacy.sexy. github.com. (2024).
Original: https://github.com/undergroundwires/privacy.sexy/issues/79
Archived: https://web.archive.org/web/20241220195615/https://github.com/undergroundwires/privacy.sexy/issues/79 - [BUG]: Standard Privacy Script mess with some online games · Issue #181 · undergroundwires/privacy.sexy. github.com. (2025).
Original: https://github.com/undergroundwires/privacy.sexy/issues/181
Archived: https://web.archive.org/web/20250201123156/https://github.com/undergroundwires/privacy.sexy/issues/181 - [BUG]: can't sign in again · Issue #64 · undergroundwires/privacy.sexy. github.com. (2024).
Original: https://github.com/undergroundwires/privacy.sexy/issues/64
Archived: https://web.archive.org/web/20240803173827/https://github.com/undergroundwires/privacy.sexy/issues/64 - Xbox Game Pass for PC Problem: You are not signed in to Xbox Live. Cloud Saves are unavailable. : r/theouterworlds. old.reddit.com. (2025).
Original: https://old.reddit.com/r/theouterworlds/comments/dn73hf/xbox_game_pass_for_pc_problem_you_are_not_signed
Archived: https://web.archive.org/web/20250201123216/https://old.reddit.com/r/theouterworlds/comments/dn73hf/xbox_game_pass_for_pc_problem_you_are_not_signed/?rdt=43601 - Xbox Live Identity Provider Not Working. Fix. bestgamingtips.com. (2023).
Original: https://bestgamingtips.com/fix-xbox-identity-provider-not-working
Archived: https://web.archive.org/web/20231206171559/https://bestgamingtips.com/fix-xbox-identity-provider-not-working/ - Page 13. Xbox App Error 0x406 - Microsoft Community. answers.microsoft.com. (2023).
Original: https://answers.microsoft.com/en-us/windows/forum/all/xbox-app-error-0x406/09dc12db-97ee-4907-89b8-3a2b7ebe1507
Archived: https://web.archive.org/web/20231206171520/https://answers.microsoft.com/en-us/windows/forum/all/xbox-app-error-0x406/09dc12db-97ee-4907-89b8-3a2b7ebe1507?page=13 - How to fix Xbox sign in error 0x406. windowsreport.com. (2023).
Original: https://windowsreport.com/xbox-sign-in-error-0x406
Archived: https://web.archive.org/web/20231206172303/https://windowsreport.com/xbox-sign-in-error-0x406/ - Windows 10 - Apps - Windows Application Management. Microsoft Docs. (2021).
Original: https://docs.microsoft.com/en-us/windows/application-management/apps-in-windows-10
Archived: https://web.archive.org/web/20210727081048/https://docs.microsoft.com/en-us/windows/application-management/apps-in-windows-10 - AppLocker CSP - Windows Client Management. Microsoft Learn. (2023).
Original: https://learn.microsoft.com/en-us/windows/client-management/mdm/applocker-csp
Archived: https://web.archive.org/web/20231006175115/https://learn.microsoft.com/en-us/windows/client-management/mdm/applocker-csp - Get the provisioned apps on Windows client operating system - Windows Application Management. Microsoft Learn. (2022).
Original: https://learn.microsoft.com/en-us/windows/application-management/provisioned-apps-windows-client-os
Archived: https://web.archive.org/web/20221101231811/https://learn.microsoft.com/en-us/windows/application-management/provisioned-apps-windows-client-os - Keep removed apps from returning during an update - Windows Application Management. Microsoft Learn. (2023).
Original: https://learn.microsoft.com/en-us/windows/application-management/remove-provisioned-apps-during-update
Archived: https://web.archive.org/web/20231230073627/https://learn.microsoft.com/en-us/windows/application-management/remove-provisioned-apps-during-update
Apply Now
Choose one of three ways to apply:
Download script
Download and run the script directly- No app needed
- Offline usage
- Easy-to-apply
- Free
- Open-source
Help
How to apply or restore "Remove Xbox Identity Provider (breaks Xbox sign-in)" using script
- ≈ 2 min to complete
- Tools: Web Browser
- Difficulty: Simple
- ≈ 5 instructions
- 1
Download
Download the script file by clicking on thebutton above.
Use button above to restore changes. - 2
Keep the file
If warned by your browser, keep the file. - 3
Open
Open the downloaded file. - 4
Exit
Once it's done, press any key to exit the window. - 5
Restart
Restart your computer for all changes to take effect.
Apply with privacy.sexy
Guided, automated application with safety checks- Recommended for most users
- Includes safety checks
- Free
- Open-source
- Popular
- Offline/Online usage
Help
How to apply or restore "Remove Xbox Identity Provider (breaks Xbox sign-in)" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the script name: Remove Xbox Identity Provider (breaks Xbox sign-in)
- Check the script by clicking on the checkbox.
- 3
Run
Click on ▶️ Run button at the bottom of the page.This button only appears on desktop version (recommended). On browser, use 💾 Save button.
- Apply
- Revert
:: Uninstall 'Microsoft.XboxIdentityProvider' Store app
PowerShell -ExecutionPolicy Unrestricted -Command "Get-AppxPackage 'Microsoft.XboxIdentityProvider' | Remove-AppxPackage"
:: Mark 'Microsoft.XboxIdentityProvider' as deprovisioned to block reinstall during Windows updates.
:: Create "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\Microsoft.XboxIdentityProvider_8wekyb3d8bbwe" registry key
PowerShell -ExecutionPolicy Unrestricted -Command "$keyPath='HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\Microsoft.XboxIdentityProvider_8wekyb3d8bbwe'; $registryHive = $keyPath.Split('\')[0]; $registryPath = "^""$($registryHive):$($keyPath.Substring($registryHive.Length))"^""; if (Test-Path $registryPath) { Write-Host "^""Skipping, no action needed, registry path `"^""$registryPath`"^"" already exists."^""; exit 0; }; try { New-Item -Path $registryPath -Force -ErrorAction Stop | Out-Null; Write-Host "^""Successfully created the registry key at path `"^""$registryPath`"^""."^""; } catch { Write-Error "^""Failed to create the registry key at path `"^""$registryPath`"^"": $($_.Exception.Message)"^""; }"
Ijo6IFJlaW5zdGFsbCAnTWljcm9zb2Z0Llhib3hJZGVudGl0eVByb3ZpZGVyJyBpZiBpdCB3YXMgcHJldmlvdXNseSB1bmluc3RhbGxlZFxuUG93ZXJTaGVsbCAtRXhlY3V0aW9uUG9saWN5IFVucmVzdHJpY3RlZCAtQ29tbWFuZCBcIiRwYWNrYWdlTmFtZT0nTWljcm9zb2Z0Llhib3hJZGVudGl0eVByb3ZpZGVyJzsgJHB1Ymxpc2hlcklkPSc4d2VreWIzZDhiYndlJzsgaWYgKEdldC1BcHB4UGFja2FnZSAtTmFtZSAkcGFja2FnZU5hbWUpIHsgV3JpdGUtSG9zdCBcIl5cIlwiU2tpcHBpbmcsIGBcIl5cIlwiJHBhY2thZ2VOYW1lYFwiXlwiXCIgaXMgYWxyZWFkeSBpbnN0YWxsZWQgZm9yIHRoZSBjdXJy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oJ1xcJylbMF07ICRyZWdpc3RyeVBhdGggPSBcIl5cIlwiJCgkcmVnaXN0cnlIaXZlKTokKCRrZXlQYXRoLlN1YnN0cmluZygkcmVnaXN0cnlIaXZlLkxlbmd0aCkpXCJeXCJcIjsgV3JpdGUtSG9zdCBcIl5cIlwiUmVtb3ZpbmcgcmVnaXN0cnkga2V5IGF0IGBcIl5cIlwiJHJlZ2lzdHJ5UGF0aGBcIl5cIlwiLlwiXlwiXCI7IGlmICgtbm90IChUZXN0LVBhdGggLUxpdGVyYWxQYXRoICRyZWdpc3RyeVBhdGgpKSB7IFdyaXRlLUhvc3QgXCJeXCJcIlNraXBwaW5nLCBubyBhY3Rpb24gbmVlZGVkLCByZWdpc3RyeSBrZXkgYFwiXlwiXCIkcmVnaXN0cnlQYXRoYFwiXlwiXCIgZG9lcyBub3QgZXhpc3QuXCJeXCJcIjsgZXhpdCAwOyB9OyB0cnkgeyBSZW1vdmUtSXRlbSAtTGl0ZXJhbFBhdGggJHJlZ2lzdHJ5UGF0aCAtRm9yY2UgLUVycm9yQWN0aW9uIFN0b3AgfCBPdXQtTnVsbDsgV3JpdGUtSG9zdCBcIl5cIlwiU3VjY2Vzc2Z1bGx5IHJlbW92ZWQgdGhlIHJlZ2lzdHJ5IGtleSBhdCBwYXRoIGBcIl5cIlwiJHJlZ2lzdHJ5UGF0aGBcIl5cIlwiLlwiXlwiXCI7IH0gY2F0Y2ggeyBXcml0ZS1FcnJvciBcIl5cIlwiRmFpbGVkIHRvIHJlbW92ZSB0aGUgcmVnaXN0cnkga2V5IGF0IHBhdGggYFwiXlwiXCIkcmVnaXN0cnlQYXRoYFwiXlwiXCI6ICQoJF8uRXhjZXB0aW9uLk1lc3NhZ2UpXCJeXCJcIjsgfVwiIg==
Help
How to apply or restore "Remove Xbox Identity Provider (breaks Xbox sign-in)" using commands
- ≈ 2 min to complete
- Tools: Command Prompt
- Difficulty: Medium
- ≈ 3 instructions
- 1
Open Command Prompt
Open Command Prompt as Administrator. - 2
Copy code
Copy the code: - 3
Paste & run
Paste the commands into Command Prompt and press Enter to run.Some changes require a system restart to take effect
Similar Guides
Wider Goal
Guides below includes this guide to achieve a wider goal.See other more general settings that includes this one as one of its actions.These plans combine multiple privacy settings, including this one, for stronger protection.
- Remove Xbox
- Remove bloatware
This category removes Xbox-related applications and disables associated services from Windows to enhance privacy and system performance. Xbox application...
Same Goal
Other guides in Remove Xbox See settings that are in the same category as this guide.Using other actions in the same category may help you achieve your goal better.
See all 9 guides
About the Creators
These people have authored this documentation and written its scripts:
Reviewed By
This guide has undergone comprehensive auditing and peer review:Expert review by undergroundwires
- Verified technical accuracy and editorial standards
- Assessed system impact and user privacy risks
- Audited and verified using automated security tests
Public review by large community
- Privacy enthusiasts and professionals peer-reviewed
- Millions of end-users tested across different environments
- Audited and verified using third-party security software
History
We continually monitor our guides, their impact and other potential privacy options. We update our guides when new information becomes available. On every update, we publicly store who made the change, what has been changed, why the change was made and when the change was made.