mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-12-16 07:45:13 -06:00
Add option to fully disable ms-gamebar and ms-gamingoverlay popups #367
This commit is contained in:
2
Get.ps1
2
Get.ps1
@@ -17,7 +17,7 @@ param (
|
|||||||
[switch]$RemoveW11Outlook,
|
[switch]$RemoveW11Outlook,
|
||||||
[switch]$ForceRemoveEdge,
|
[switch]$ForceRemoveEdge,
|
||||||
[switch]$DisableDVR,
|
[switch]$DisableDVR,
|
||||||
[switch]$DisableControllerOverlay,
|
[switch]$DisableGameBarIntegration,
|
||||||
[switch]$DisableTelemetry,
|
[switch]$DisableTelemetry,
|
||||||
[switch]$DisableFastStartup,
|
[switch]$DisableFastStartup,
|
||||||
[switch]$DisableModernStandbyNetworking,
|
[switch]$DisableModernStandbyNetworking,
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
Windows Registry Editor Version 5.00
|
|
||||||
|
|
||||||
; Disable allow your controller to open Game Bar
|
|
||||||
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\GameBar]
|
|
||||||
"UseNexusForGameBarEnabled"=dword:00000000
|
|
||||||
22
Regfiles/Disable_Game_Bar_Integration.reg
Normal file
22
Regfiles/Disable_Game_Bar_Integration.reg
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
; Disable allow your controller to open Game Bar
|
||||||
|
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\GameBar]
|
||||||
|
"UseNexusForGameBarEnabled"=dword:00000000
|
||||||
|
|
||||||
|
; Disable `ms-gamebar` popups
|
||||||
|
[HKEY_CLASSES_ROOT\ms-gamebar]
|
||||||
|
@="URL:ms-gamebar"
|
||||||
|
"URL Protocol"=""
|
||||||
|
"NoOpenWith"=""
|
||||||
|
|
||||||
|
[HKEY_CLASSES_ROOT\ms-gamebar\shell\open\command]
|
||||||
|
@="%SystemRoot%/System32/systray.exe"
|
||||||
|
|
||||||
|
[HKEY_CLASSES_ROOT\ms-gamebarservices]
|
||||||
|
@="URL:ms-gamebar"
|
||||||
|
"URL Protocol"=""
|
||||||
|
"NoOpenWith"=""
|
||||||
|
|
||||||
|
[HKEY_CLASSES_ROOT\ms-gamebarservices\shell\open\command]
|
||||||
|
@="%SystemRoot%/System32/systray.exe"
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
Windows Registry Editor Version 5.00
|
|
||||||
|
|
||||||
; Disable allow your controller to open Game Bar
|
|
||||||
[hkey_users\default\SOFTWARE\Microsoft\GameBar]
|
|
||||||
"UseNexusForGameBarEnabled"=dword:00000000
|
|
||||||
22
Regfiles/Sysprep/Disable_Game_Bar_Integration.reg
Normal file
22
Regfiles/Sysprep/Disable_Game_Bar_Integration.reg
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
; Disable allow your controller to open Game Bar
|
||||||
|
[hkey_users\default\SOFTWARE\Microsoft\GameBar]
|
||||||
|
"UseNexusForGameBarEnabled"=dword:00000000
|
||||||
|
|
||||||
|
; Disable `ms-gamebar` popups
|
||||||
|
[HKEY_CLASSES_ROOT\ms-gamebar]
|
||||||
|
@="URL:ms-gamebar"
|
||||||
|
"URL Protocol"=""
|
||||||
|
"NoOpenWith"=""
|
||||||
|
|
||||||
|
[HKEY_CLASSES_ROOT\ms-gamebar\shell\open\command]
|
||||||
|
@="%SystemRoot%/System32/systray.exe"
|
||||||
|
|
||||||
|
[HKEY_CLASSES_ROOT\ms-gamebarservices]
|
||||||
|
@="URL:ms-gamebar"
|
||||||
|
"URL Protocol"=""
|
||||||
|
"NoOpenWith"=""
|
||||||
|
|
||||||
|
[HKEY_CLASSES_ROOT\ms-gamebar\shell\open\command]
|
||||||
|
@="%SystemRoot%/System32/systray.exe"
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
Windows Registry Editor Version 5.00
|
|
||||||
|
|
||||||
; Enable allow your controller to open Game Bar
|
|
||||||
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\GameBar]
|
|
||||||
"UseNexusForGameBarEnabled"=dword:00000001
|
|
||||||
20
Regfiles/Undo/Enable_Game_Bar_Integration.reg
Normal file
20
Regfiles/Undo/Enable_Game_Bar_Integration.reg
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
; Enable allow your controller to open Game Bar
|
||||||
|
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\GameBar]
|
||||||
|
"UseNexusForGameBarEnabled"=dword:00000001
|
||||||
|
|
||||||
|
; Enable `ms-gamebar` popups
|
||||||
|
[HKEY_CLASSES_ROOT\ms-gamebar]
|
||||||
|
@="URL:ms-gamebar"
|
||||||
|
"URL Protocol"=""
|
||||||
|
"NoOpenWith"=-
|
||||||
|
|
||||||
|
[-HKEY_CLASSES_ROOT\ms-gamebar\shell\open\command]
|
||||||
|
|
||||||
|
[HKEY_CLASSES_ROOT\ms-gamebarservices]
|
||||||
|
@="URL:ms-gamebar"
|
||||||
|
"URL Protocol"=""
|
||||||
|
"NoOpenWith"=-
|
||||||
|
|
||||||
|
[-HKEY_CLASSES_ROOT\ms-gamebar\shell\open\command]
|
||||||
@@ -19,7 +19,7 @@ param (
|
|||||||
[switch]$RemoveW11Outlook,
|
[switch]$RemoveW11Outlook,
|
||||||
[switch]$ForceRemoveEdge,
|
[switch]$ForceRemoveEdge,
|
||||||
[switch]$DisableDVR,
|
[switch]$DisableDVR,
|
||||||
[switch]$DisableControllerOverlay,
|
[switch]$DisableGameBarIntegration,
|
||||||
[switch]$DisableTelemetry,
|
[switch]$DisableTelemetry,
|
||||||
[switch]$DisableFastStartup,
|
[switch]$DisableFastStartup,
|
||||||
[switch]$DisableModernStandbyNetworking,
|
[switch]$DisableModernStandbyNetworking,
|
||||||
@@ -991,7 +991,7 @@ function DisplayCustomModeOptions {
|
|||||||
AddParameter 'RemoveW11Outlook' 'Remove the new Outlook for Windows app'
|
AddParameter 'RemoveW11Outlook' 'Remove the new Outlook for Windows app'
|
||||||
AddParameter 'RemoveGamingApps' 'Remove the Xbox App and Xbox Gamebar'
|
AddParameter 'RemoveGamingApps' 'Remove the Xbox App and Xbox Gamebar'
|
||||||
AddParameter 'DisableDVR' 'Disable Xbox game/screen recording'
|
AddParameter 'DisableDVR' 'Disable Xbox game/screen recording'
|
||||||
AddParameter 'DisableControllerOverlay' 'Disable opening the Xbox Game Bar with a controller'
|
AddParameter 'DisableGameBarIntegration' 'Disable Game Bar integration'
|
||||||
}
|
}
|
||||||
'3' {
|
'3' {
|
||||||
Write-Output "You have selected $($script:SelectedApps.Count) apps for removal"
|
Write-Output "You have selected $($script:SelectedApps.Count) apps for removal"
|
||||||
@@ -1000,9 +1000,9 @@ function DisplayCustomModeOptions {
|
|||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Disable Game Bar integration for controller and game/screen recording? This also stops msgaming overlay popups (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Disable Game Bar integration and game/screen recording? This also stops ms-gamingoverlay and ms-gamebar popups (y/n)" ) -eq 'y') {
|
||||||
AddParameter 'DisableDVR' 'Disable Xbox game/screen recording'
|
AddParameter 'DisableDVR' 'Disable Xbox game/screen recording'
|
||||||
AddParameter 'DisableControllerOverlay' 'Disable opening the Xbox Game Bar with a controller'
|
AddParameter 'DisableGameBarIntegration' 'Disable Game Bar integration'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1811,8 +1811,8 @@ switch ($script:Params.Keys) {
|
|||||||
RegImport "> Disabling Xbox game/screen recording..." "Disable_DVR.reg"
|
RegImport "> Disabling Xbox game/screen recording..." "Disable_DVR.reg"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
'DisableControllerOverlay' {
|
'DisableGameBarIntegration' {
|
||||||
RegImport "> Disabling the option of opening the Xbox Game Bar with a controller..." "Disable_Controller_Game_Bar_Integration.reg"
|
RegImport "> Disabling the option of opening the Xbox Game Bar with a controller..." "Disable_Game_Bar_Integration.reg"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
'DisableTelemetry' {
|
'DisableTelemetry' {
|
||||||
|
|||||||
Reference in New Issue
Block a user