How to remove the XBOX Game Bar from Windows
Microsoft have removed the ability to just "uninstall" the app, therefore a command line.
PowerShell (administrator mode)
DISM Method
dism /Online /Get-ProvisionedAppxPackages | Select-String PackageName | Select-String xbox | ForEach-Object {$_.Line.Split(':')[1].Trim()} | ForEach-Object { dism /Online /Remove-ProvisionedAppxPackage /PackageName:$_}
CMDLET Method
Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match "xbox" } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -PackageName $_.PackageName }
ALLUSERS
If you add the -AllUsers you can remove this from all users on the system
Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match "xbox" } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName }
HAS IT WORKED?
You can check that this has worked by running the command to see what is installed on your system, if you get no results, this has worked.
dism /Online /Get-ProvisionedAppxPackages | Select-String PackageName | Select-String xbox