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.
