The PowerShell commands you ran removed the Gaming Services and Microsoft Store packages for all users, which is why apps like Xbox, Microsoft Store, and other built-in Microsoft apps no longer work.
Before doing anything else, avoid running additional Remove-AppxPackage commands.
Try the following steps:
- Restart your PC.
Press Windows + R, type wsreset.exe, and press Enter. This resets the Microsoft Store cache.
Open Command Prompt (Administrator) and run these commands one at a time:
DISM.exe /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Restart your PC after both scans finish.
If the apps are still missing, go to:
Settings → System → Recovery → Fix problems using Windows Update → Reinstall now
This reinstalls your current version of Windows while keeping your personal files, installed apps, and most settings. It repairs missing or corrupted system components, including built-in Windows apps.
If the issue persists even after the repair install, you may need to re-register the Microsoft Store and reinstall Gaming Services using PowerShell or the Microsoft Store.
I hope this helps!The PowerShell commands you ran removed the Gaming Services and Microsoft Store packages for all users, which is why apps like Xbox, Microsoft Store, and other built-in Microsoft apps no longer work.
Before doing anything else, avoid running additional Remove AppxPackage commands.
Try the following steps:
Restart your PC.
Press Windows + R, type wsreset.exe, and press Enter. This resets the Microsoft Store cache.
Open Command Prompt (Administrator) and run these commands one at a time:
DISM.exe /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Restart your PC after both scans finish.
If the apps are still missing, go to:
Settings → System → Recovery → Fix problems using Windows Update → Reinstall now
This reinstalls your current version of Windows while keeping your personal files, installed apps, and most settings. It repairs missing or corrupted system components, including built-in Windows apps.
If the issue persists even after the repair install, you may need to re-register the Microsoft Store and reinstall Gaming Services using PowerShell or the Microsoft Store.
I hope this helps!