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
This commit is contained in:
Raphire
2025-11-14 23:50:39 +01:00
parent 2d9e8530eb
commit 6c201fc027
10 changed files with 35 additions and 3 deletions

View File

@@ -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