It took me all night to figure this out. I had tried to install the windows version of Final Fantasy X/X-2 and came to find my gaming services had been malfunctioning. The Xbox gaming services is the service used in Windows to run Xbox games. While it usually doesn’t break, sometimes an update can break it or in my case, messing with the registry months ago was the culprit. I had tried various methods on how to fix it with none of them working, but finally found out why it was not installing correctly. I’ll go over the first few methods that helped some other people fix their issues, but my fix should be what is causing you grief.
First thing you want to do is run a system file check and a DISM HealthCheck.
If you have modified your system files (including Windows DLL files) running sfc /scannow will revert the system files back to the default state.
It is always a good idea to back up your data beforehand!
To run a system file check (SFC)
Go to start>Type CMD
Right click and run as Administrator
(called an elevated command prompt)
If you want to verify and repair the OS type
sfc /scannow (note the space between sfc and “/”)
If you just want to check (verify only) the OS type
sfc /verifyonly (no changes will be made using verify only)
You may have to run this up to 3 times to fix all the problems!
When you have finished it will say one of three things
Windows did not find any integrity violations (a good thing)
Windows Resource Protection found corrupt files and repaired them (a good thing)
Windows Resource Protection found corrupt files but was unable to fix some (or all) of them (not a good thing) If you get this message run DISM as described below
If SFC was not able to repair some or all of the files there are a few options including a repair install from the OS dvd, and DISM (win 8 & UP)
If SFC did not find any violations it is still a good idea to run DISM Restorehealth
If you are on win 8 (and up) you should also run DISM whether SFC found errors or not!!
From an elevated command prompt:
You can run Check, then Scan, but you should always run RESTORE HEALTH
To check the health (You would use /CheckHealth to only check whether the image has been flagged as corrupted)
run Dism /Online /Cleanup-Image /CheckHealth
To scan the health use /ScanHealth to scan the image for component store corruption. This option does not fix any corruption.
run Dism /Online /Cleanup-Image /ScanHealth
To RESTORE health (recommended)
Use DISM /Online /Cleanup-Image /RestoreHealth to scan the image for component store corruption, perform repair operations automatically, and records that corruption to the log file. This generally takes 15-30 minutes depending on the corruption and size of the partition
You can run scanhealth & restore health at the same time like this
DISM.exe /Online /Cleanup-image /Scanhealth && DISM.exe /Online /Cleanup-image /Restorehealth
Type DISM /Online /Cleanup-Image /RestoreHealth . (please note the space after “dism”, & “online” & “image”)
If the repair is successful you may want to re-run SFC just to check.
After running DISM it is a good idea to re-run SFC /scannow to make sure all the issues were fixed.
If you get the error message “cannot find source files” you need to have an ISO file mounted and need to specify where it is located with the below command
The ISO must be exactly the same version as the running OS. An ISO of 10586.0 will not repair a running system of 10586.35 because it has additional updates and files.
If this doesn’t fix your issues, then try to remove the gaming services Appx Package for all users:
Launch powershell as an administrator and enter (without quotations)
“get-appxpackage Microsoft.GamingServices | remove-AppxPackage -allusers”
In the same powershell window, enter (without quotations)
The last method to fix this issue began with me using CCleaner to clean up my registry. Try that first. Download CCleaner (it’s free) and on the left panel click Registry and scan then fix. Most likely this won’t work if you’ve gone this far. The main issue with Gaming Services are keys in the registry including ghost service entries in the registry, there is a version mismatch, if you ever get this error no matter what you try as long as they are there it will never install, thereby rendering your Game Pass Ultimate experience virtually useless. So, in this case, what fixed my issue was thus:
Reset Gaming Services, then proceeded with the following:
1. Go to C:\Program Files\WindowsApps find 2 gaming services folders, take ownership and delete.
2. Open RegEdit as an administrator and delete the following:
[HKEY_USERS\.DEFAULT\Software\Classes\Local Settings\MrtCache\C:%5CProgram Files%5CWindowsApps%5CMicrosoft.GamingServices_2.45.11001.0_x64__8wekyb3d8bbwe%5Cresources.pri]
[HKEY_USERS\.DEFAULT\Software\Classes\Local Settings\MrtCache\C:%5CProgram Files%5CWindowsApps%5CMicrosoft.Gamingservices_2.45.11001.0_x64__8wekyb3d8bbwe%5Cresources.pri\1d6937194966bce]
The version numbers may be different depending on what you have installed.
3. Restart your PC.
4. Once restarted open Microsoft Store find Gaming Services and install, it will now work. If not, you will need to just reinstall Windows as it could be worse than registry errors. Always run a virus check before and after these kinds of fixes. Hope it works!