Page 1 of 1

[RESOLVED] Xbox Game Bar

Published: June 30, 2021 - 08:59
by Christophe0110
To all,

For those who, like me, are bothered by the Xbox Game Bar that regularly appears on our users' screens (following a press of the Windows + G keys or the launch of certain applications that have nothing to do with a game), here is the script I created to get rid of this bar (uninstall it) but also to disable game mode and the association of this key combination.

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():

    print('Removing Xbox Game Bar')
    run_powershell(r'Get-AppxPackage Microsoft.XboxGamingOverlay | Remove-AppxPackage')

def session_setup():

    print('Removing Game Mode')
    registry_set(HKEY_CURRENT_USER, r'SOFTWARE\Microsoft\GameBar','AutoGameModeEnabled',0)
    registry_set(HKEY_CURRENT_USER, r'SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR','AppCaptureEnabled',0)

For those who want to know where I got this information, here are the references:
https://wethegeek.com/how-to-disable-xb...indows-10/
https://www.top-password.com/blog/disab ... Game%20DVR.
https://www.windowsdispatch.com/turn-on...indows-10/


Hopefully this might help some people.

A+
Christophe.

Re: Xbox Game Bar

Published: July 7, 2021 - 10:37 AM
by dcardon
Thanks for sharing, Christophe0110.

I'll check with Jimmy about including this in the generic appx cleanup package. There's really more and more crapware on Windows 10...

Denis