:: Copy highlighted commands in a text file and save it as GS.bat
:: Right-click and 'Run as administrator' when required.
:: Uninstall Old GamingServices
powershell "get-appxpackage Microsoft.GamingServices | remove-AppxPackage -allusers"
:: Remove Old Registry Entry
echo y | reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\GamingServices"
:: Reinstall Gaming Services
echo y | winget install 9MWPM2CQNLHN --source msstore
:: Or Open Store and Manually Install by entering this:
:: start ms-windows-store://pdp/?productid=9MWPM2CQNLHN
If doesn't work try deleting these too
echo y | reg delete "HKEY_USERS.DEFAULT\Software\Classes\Local Settings\MrtCache\C:%5CProgram Files%5CWindowsApps%5CMicrosoft.GamingServices_13.78.12002.0_x64__8wekyb3d8bbwe%5Cresources.pri"
echo y | reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\GamingServices"
echo y | reg delete "HKLM\SYSTEM\ControlSet001\Services\GamingServices"
echo y | reg delete "HKLM\SYSTEM\ControlSet001\Services\GamingServicesNet"
echo y | reg delete "HKLM\SYSTEM\CurrentControlSet\Services\GamingServices"
echo y | reg delete "HKLM\SYSTEM\CurrentControlSet\Services\GamingServicesNet"