Let's go to some more possible solutions, test if it solved after each one:
1-If you are sure that these games that do not install are included in your Game Pass subscription, test from within the app, access and download:
https://www.xbox.com/en-us/xbox-game-pass/pc-ga...
2-Start in safe mode:
https://support.microsoft.com/en-us/windows/sta...
Now Windows+X> open Command Prompt(admin) or PowerShekk(admin) enter these commands:
net user administrador /active:yes [Enter]
taskkill /im explorer.exe /f [Enter]
secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose [Enter]
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /V EnableLUA /T REG_DWORD /D 0 /F [Enter]
RD /S /Q "%WinDir%\System32\GroupPolicyUsers" [Enter]
RD /S /Q "%WinDir%\System32\GroupPolicy" [Enter]
gpupdate /force [Enter]
takeown /f C:\ /r /d y [Enter]
icacls C:\ /grant administradores:F /inheritance:E /T [Enter]
icacls C:\ /grant administrators:F /inheritance:E /T [Enter]
icacls C:\ /grant everyone:F /inheritance:E /T [Enter]
icacls C:\ /grant todos:F /inheritance:E /T [Enter]
net stop bits [Enter]
net stop wuauserv [Enter]
net stop appidsvc [Enter]
net stop cryptsvc [Enter]
for %i IN (dir /b *.dll) DO (regsvr32 /i /s %i) [Enter]
cd %windir%\syswow64 [Enter]
for %i IN (dir /b *.dll) DO (regsvr32 /i /s %i) [Enter]
REN %systemroot%\SoftwareDistribution SoftwareDistribution.bak [Enter]
REN %Systemroot%\System32\Catroot2. catroot2.bak [Enter]
REN %Systemroot%\System32\Catroot. catroot.bak [Enter]
REN %systemroot%\System32\Spupdsvc.exe Spupdsvc.old [Enter]
sc config wuauserv type= share [Enter]
sc config bits type= share [Enter]
sc config cryptsvc type= share [Enter]
sc config trustedinstaller type= share [Enter]
sc config wuauserv start= auto [Enter]
sc config bits start= auto [Enter]
sc config cryptsvc start= auto [Enter]
sc config trustedinstaller start= auto [Enter]
start explorer.exe [Enter]
Restart the PC and test.
3-Windows + R and type: %programfiles%, click OK > Click the View tab at the top and check the Hidden Items box.
Right-click WindowsApps and select Properties > Security >Advanced (if you already have read permission, click Change >Add > Type: All > Check Names > OK and give Full Control to the added user)
Check the Replace owner on subcontainers and objects box and click Apply.
Then click Change Permissions > Add > Select a security principal > Type: All > Check names and click OK > Select the Full control box and Apply these permissions only to objects and/or containers within this container and finish by clicking on OK.
Returning to the main window, go to the Audit tab, click Add > Select a security principal > Type: All > Check names and click OK > Select the Full control box and Apply these permissions only to objects and/or containers within this container and finish by clicking OK;
In the main window, click Replace all child object permission entries with permission entries inheritable from this object, then click Apply and OK.
Restart the PC and test.
(Credits to Moderator Caroltors from which I used some solutions)
Yours sincerely,
Claudeir