XBOX app doesn’t work and You can’t run games like ReCore

In some XBOX apps you get the error 0x406 and you don’t know what to do?
Apps and Games like ReCore freeze on startup?
Here is the solution:

Start the Powershell as admin and enter this (i skipped both lines and just did the third command):
Get-AppxPackage *windowsstore* | Remove-AppxPackage
Get-AppxPackage *xboxapp* | Remove-AppxPackage

(now Restart your computer and go again into powershell and type)

Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}