From 6c201fc027603bad2589435e1054e71615be6b3c Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Fri, 14 Nov 2025 23:50:39 +0100 Subject: [PATCH] Add additional settings to disable Xbox integrations for controller and game/screen recording This should fix issues with `ms-gamingoverlay` popups after uninstalling the Xbox Game Bar --- Assets/Menus/Info | 2 +- Get.ps1 | 1 + README.md | 2 +- Regfiles/Disable_Controller_Game_Bar_Integration.reg | 5 +++++ Regfiles/Disable_DVR.reg | 3 +++ .../Sysprep/Disable_Controller_Game_Bar_Integration.reg | 5 +++++ Regfiles/Sysprep/Disable_DVR.reg | 3 +++ Regfiles/Undo/Enable_Controller_Game_Bar_Integration.reg | 5 +++++ Regfiles/Undo/Enable_DVR.reg | 3 +++ Win11Debloat.ps1 | 9 ++++++++- 10 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 Regfiles/Disable_Controller_Game_Bar_Integration.reg create mode 100644 Regfiles/Sysprep/Disable_Controller_Game_Bar_Integration.reg create mode 100644 Regfiles/Undo/Enable_Controller_Game_Bar_Integration.reg diff --git a/Assets/Menus/Info b/Assets/Menus/Info index 46b5e8f..c20bb94 100755 --- a/Assets/Menus/Info +++ b/Assets/Menus/Info @@ -56,7 +56,7 @@ Start - Disable the Phone Link mobile devices integration in the start menu. (W11 only) Other -- Disable Xbox game/screen recording, this also stops gaming overlay popups. +- Disable Xbox Game Bar game/screen recording and controller integration. This also disables `msgaming overlay` popups. - Disable Fast Start-up to ensure a full shutdown. - Disable network connectivity during Modern Standby to reduce battery drain. (W11 only) - Option to apply changes to a different user, instead of the currently logged in user. diff --git a/Get.ps1 b/Get.ps1 index 9494dfd..32a6575 100644 --- a/Get.ps1 +++ b/Get.ps1 @@ -17,6 +17,7 @@ param ( [switch]$RemoveW11Outlook, [switch]$ForceRemoveEdge, [switch]$DisableDVR, + [switch]$DisableControllerOverlay, [switch]$DisableTelemetry, [switch]$DisableFastStartup, [switch]$DisableModernStandbyNetworking, diff --git a/README.md b/README.md index 89ae9cc..07991a4 100755 --- a/README.md +++ b/README.md @@ -152,7 +152,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo #### Other -- Disable Xbox game/screen recording, this also stops gaming overlay popups. +- Disable Xbox Game Bar game/screen recording and controller integration. This also disables the annoying `msgaming overlay` popups if you uninstalled the Xbox Game Bar app. - Disable Fast Start-up to ensure a full shutdown. - Disable network connectivity during Modern Standby to reduce battery drain. (W11 only) - Option to [apply changes to a different user](https://github.com/Raphire/Win11Debloat/wiki/Advanced-Features#running-as-another-user), instead of the currently logged in user. diff --git a/Regfiles/Disable_Controller_Game_Bar_Integration.reg b/Regfiles/Disable_Controller_Game_Bar_Integration.reg new file mode 100644 index 0000000..4c3faae --- /dev/null +++ b/Regfiles/Disable_Controller_Game_Bar_Integration.reg @@ -0,0 +1,5 @@ +Windows Registry Editor Version 5.00 + +; Disable allow your controller to open Game Bar +[HKEY_CURRENT_USER\SOFTWARE\Microsoft\GameBar] +"UseNexusForGameBarEnabled"=dword:00000000 diff --git a/Regfiles/Disable_DVR.reg b/Regfiles/Disable_DVR.reg index 0818275..e356daa 100644 --- a/Regfiles/Disable_DVR.reg +++ b/Regfiles/Disable_DVR.reg @@ -3,5 +3,8 @@ Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\System\GameConfigStore] "GameDVR_Enabled"=dword:00000000 +[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR] +"AppCaptureEnabled"=dword:00000000 + [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR] "AllowGameDVR"=dword:00000000 diff --git a/Regfiles/Sysprep/Disable_Controller_Game_Bar_Integration.reg b/Regfiles/Sysprep/Disable_Controller_Game_Bar_Integration.reg new file mode 100644 index 0000000..16ab54f --- /dev/null +++ b/Regfiles/Sysprep/Disable_Controller_Game_Bar_Integration.reg @@ -0,0 +1,5 @@ +Windows Registry Editor Version 5.00 + +; Disable allow your controller to open Game Bar +[hkey_users\default\SOFTWARE\Microsoft\GameBar] +"UseNexusForGameBarEnabled"=dword:00000000 diff --git a/Regfiles/Sysprep/Disable_DVR.reg b/Regfiles/Sysprep/Disable_DVR.reg index 3a48e10..f0ac1ba 100644 --- a/Regfiles/Sysprep/Disable_DVR.reg +++ b/Regfiles/Sysprep/Disable_DVR.reg @@ -3,5 +3,8 @@ Windows Registry Editor Version 5.00 [hkey_users\default\System\GameConfigStore] "GameDVR_Enabled"=dword:00000000 +[hkey_users\default\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR] +"AppCaptureEnabled"=dword:00000000 + [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR] "AllowGameDVR"=dword:00000000 diff --git a/Regfiles/Undo/Enable_Controller_Game_Bar_Integration.reg b/Regfiles/Undo/Enable_Controller_Game_Bar_Integration.reg new file mode 100644 index 0000000..d8beb93 --- /dev/null +++ b/Regfiles/Undo/Enable_Controller_Game_Bar_Integration.reg @@ -0,0 +1,5 @@ +Windows Registry Editor Version 5.00 + +; Enable allow your controller to open Game Bar +[HKEY_CURRENT_USER\SOFTWARE\Microsoft\GameBar] +"UseNexusForGameBarEnabled"=dword:00000001 diff --git a/Regfiles/Undo/Enable_DVR.reg b/Regfiles/Undo/Enable_DVR.reg index 83dd1f4..42966e6 100644 --- a/Regfiles/Undo/Enable_DVR.reg +++ b/Regfiles/Undo/Enable_DVR.reg @@ -3,5 +3,8 @@ Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\System\GameConfigStore] "GameDVR_Enabled"=dword:00000001 +[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR] +"AppCaptureEnabled"=dword:00000001 + [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR] "AllowGameDVR"=dword:00000001 \ No newline at end of file diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 3764fba..534c4f5 100755 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -19,6 +19,7 @@ param ( [switch]$RemoveW11Outlook, [switch]$ForceRemoveEdge, [switch]$DisableDVR, + [switch]$DisableControllerOverlay, [switch]$DisableTelemetry, [switch]$DisableFastStartup, [switch]$DisableModernStandbyNetworking, @@ -980,6 +981,7 @@ function DisplayCustomModeOptions { AddParameter 'RemoveW11Outlook' 'Remove the new Outlook for Windows app' AddParameter 'RemoveGamingApps' 'Remove the Xbox App and Xbox Gamebar' AddParameter 'DisableDVR' 'Disable Xbox game/screen recording' + AddParameter 'DisableControllerOverlay' 'Disable opening the Xbox Game Bar with a controller' } '3' { Write-Output "You have selected $($script:SelectedApps.Count) apps for removal" @@ -988,8 +990,9 @@ function DisplayCustomModeOptions { Write-Output "" - if ($( Read-Host -Prompt "Disable Xbox game/screen recording? This also stops gaming overlay popups (y/n)" ) -eq 'y') { + if ($( Read-Host -Prompt "Disable Game Bar integration for controller and game/screen recording? This also stops msgaming overlay popups (y/n)" ) -eq 'y') { AddParameter 'DisableDVR' 'Disable Xbox game/screen recording' + AddParameter 'DisableControllerOverlay' 'Disable opening the Xbox Game Bar with a controller' } } } @@ -1798,6 +1801,10 @@ switch ($script:Params.Keys) { RegImport "> Disabling Xbox game/screen recording..." "Disable_DVR.reg" continue } + 'DisableControllerOverlay' { + RegImport "> Disabling the option of opening the Xbox Game Bar with a controller..." "Disable_Controller_Game_Bar_Integration.reg" + continue + } 'DisableTelemetry' { RegImport "> Disabling telemetry, diagnostic data, activity history, app-launch tracking and targeted ads..." "Disable_Telemetry.reg" continue