11 Commits

Author SHA1 Message Date
Raphire
163117d703 Update Get.ps1 to new release 2025-11-30 01:31:32 +01:00
Raphire
7a1d4ff679 Update Disable Game Bar integration text 2025-11-30 01:30:34 +01:00
Raphire
0e5b49fb19 Update README.md 2025-11-30 01:22:35 +01:00
Raphire
8b2cadb37d Add option to fully disable ms-gamebar and ms-gamingoverlay popups #367 2025-11-29 17:15:12 +01:00
Raphire
186a2f08b7 Remove OneDrive Setup key when uninstalling OneDrive for other users or in Sysprep mode 2025-11-29 16:43:02 +01:00
Raphire
e66103f57a Add task for removing MS Edge & OneDrive when run as other user or sysprep mode #366 2025-11-15 00:46:39 +01:00
Raphire
6c201fc027 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
2025-11-14 23:50:39 +01:00
Raphire
2d9e8530eb No longer show option to disable start recommended on build 26200+
This setting was made redundant by the updated Start menu
2025-11-14 23:45:06 +01:00
Raphire
14ba4d529c Merge branch 'master' of https://github.com/Raphire/Win11Debloat 2025-11-11 00:00:05 +01:00
Raphire
f97a01e8a9 Add support for removing Microsoft 365 Business companion apps
Note: These apps may be reinstalled if your Microsoft 365 admin has checked the `Enable automatic installation of Microsoft 365 companion apps` option.
2025-11-11 00:00:04 +01:00
oyxnaut
791232e097 Add NoRestartExplorer switch (#370) 2025-11-07 22:13:53 +01:00
13 changed files with 121 additions and 10 deletions

View File

@@ -105,6 +105,7 @@ XING # Professional networking platfor
#Microsoft.Edge # Edge browser (Can only be uninstalled in European Economic Area) #Microsoft.Edge # Edge browser (Can only be uninstalled in European Economic Area)
#Microsoft.GamingApp # Modern Xbox Gaming App, required for installing some PC games #Microsoft.GamingApp # Modern Xbox Gaming App, required for installing some PC games
#Microsoft.GetHelp # Required for some Windows 11 Troubleshooters and support interactions #Microsoft.GetHelp # Required for some Windows 11 Troubleshooters and support interactions
#Microsoft.M365Companions # Microsoft 365 (Business) Calendar, Files and People mini-apps, these apps may be reinstalled if enabled by your Microsoft 365 admin
#Microsoft.MSPaint # Paint 3D (Modern paint application with 3D features) #Microsoft.MSPaint # Paint 3D (Modern paint application with 3D features)
#Microsoft.OneDrive # OneDrive consumer cloud storage client #Microsoft.OneDrive # OneDrive consumer cloud storage client
#Microsoft.OutlookForWindows # New mail app: Outlook for Windows #Microsoft.OutlookForWindows # New mail app: Outlook for Windows

View File

@@ -56,7 +56,7 @@ Start
- Disable the Phone Link mobile devices integration in the start menu. (W11 only) - Disable the Phone Link mobile devices integration in the start menu. (W11 only)
Other Other
- Disable Xbox game/screen recording, this also stops gaming overlay popups. - Disable Xbox Game Bar integration & game/screen recording. This also disables `ms-gamingoverlay`/`ms-gamebar` popups.
- Disable Fast Start-up to ensure a full shutdown. - Disable Fast Start-up to ensure a full shutdown.
- Disable network connectivity during Modern Standby to reduce battery drain. (W11 only) - 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. - Option to apply changes to a different user, instead of the currently logged in user.

View File

@@ -17,6 +17,7 @@ param (
[switch]$RemoveW11Outlook, [switch]$RemoveW11Outlook,
[switch]$ForceRemoveEdge, [switch]$ForceRemoveEdge,
[switch]$DisableDVR, [switch]$DisableDVR,
[switch]$DisableGameBarIntegration,
[switch]$DisableTelemetry, [switch]$DisableTelemetry,
[switch]$DisableFastStartup, [switch]$DisableFastStartup,
[switch]$DisableModernStandbyNetworking, [switch]$DisableModernStandbyNetworking,
@@ -64,6 +65,7 @@ param (
[switch]$ExplorerToThisPC, [switch]$ExplorerToThisPC,
[switch]$ExplorerToDownloads, [switch]$ExplorerToDownloads,
[switch]$ExplorerToOneDrive, [switch]$ExplorerToOneDrive,
[switch]$NoRestartExplorer,
[switch]$DisableOnedrive, [switch]$HideOnedrive, [switch]$DisableOnedrive, [switch]$HideOnedrive,
[switch]$Disable3dObjects, [switch]$Hide3dObjects, [switch]$Disable3dObjects, [switch]$Hide3dObjects,
[switch]$DisableMusic, [switch]$HideMusic, [switch]$DisableMusic, [switch]$HideMusic,
@@ -89,7 +91,7 @@ Write-Output "------------------------------------------------------------------
Write-Output "> Downloading Win11Debloat..." Write-Output "> Downloading Win11Debloat..."
# Download latest version of Win11Debloat from github as zip archive # Download latest version of Win11Debloat from github as zip archive
Invoke-RestMethod https://api.github.com/repos/Raphire/Win11Debloat/zipball/2025.10.06 -OutFile "$env:TEMP/win11debloat.zip" Invoke-RestMethod https://api.github.com/repos/Raphire/Win11Debloat/zipball/2025.11.30 -OutFile "$env:TEMP/win11debloat.zip"
# Remove old script folder if it exists, except for CustomAppsList and SavedSettings files # Remove old script folder if it exists, except for CustomAppsList and SavedSettings files
if (Test-Path "$env:TEMP/Win11Debloat") { if (Test-Path "$env:TEMP/Win11Debloat") {

View File

@@ -152,7 +152,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo
#### Other #### Other
- Disable Xbox game/screen recording, this also stops gaming overlay popups. - Disable Xbox Game Bar integration & game/screen recording. This also disables `ms-gamingoverlay`/`ms-gamebar` popups if you uninstall the Xbox Game Bar.
- Disable Fast Start-up to ensure a full shutdown. - Disable Fast Start-up to ensure a full shutdown.
- Disable network connectivity during Modern Standby to reduce battery drain. (W11 only) - 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. - 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.
@@ -297,6 +297,7 @@ These apps will not be removed by Win11Debloat unless explicitly selected by the
Miscellaneous apps: Miscellaneous apps:
- Microsoft.Edge (Edge browser, only removeable in the EEA) - Microsoft.Edge (Edge browser, only removeable in the EEA)
- Microsoft.GetHelp (Required for some Windows 11 Troubleshooters) - Microsoft.GetHelp (Required for some Windows 11 Troubleshooters)
- Microsoft.M365Companions (Microsoft 365 Business Calendar, Files and People mini-apps, these apps may be reinstalled if enabled by your Microsoft 365 admin)
- Microsoft.MSPaint (Paint 3D) - Microsoft.MSPaint (Paint 3D)
- Microsoft.OutlookForWindows (New mail app) - Microsoft.OutlookForWindows (New mail app)
- Microsoft.OneDrive (OneDrive consumer) - Microsoft.OneDrive (OneDrive consumer)

View File

@@ -3,5 +3,8 @@ Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\System\GameConfigStore] [HKEY_CURRENT_USER\System\GameConfigStore]
"GameDVR_Enabled"=dword:00000000 "GameDVR_Enabled"=dword:00000000
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR]
"AppCaptureEnabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR] [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR]
"AllowGameDVR"=dword:00000000 "AllowGameDVR"=dword:00000000

View 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"

View File

@@ -3,5 +3,8 @@ Windows Registry Editor Version 5.00
[hkey_users\default\System\GameConfigStore] [hkey_users\default\System\GameConfigStore]
"GameDVR_Enabled"=dword:00000000 "GameDVR_Enabled"=dword:00000000
[hkey_users\default\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR]
"AppCaptureEnabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR] [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR]
"AllowGameDVR"=dword:00000000 "AllowGameDVR"=dword:00000000

View 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"

View File

@@ -0,0 +1,4 @@
Windows Registry Editor Version 5.00
[hkey_users\default\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"UninstallMicrosoftEdge"="cmd.exe /c winget uninstall --accept-source-agreements --disable-interactivity --id Microsoft.Edge"

View File

@@ -0,0 +1,9 @@
Windows Registry Editor Version 5.00
; Create task to remove OneDrive if it's already installed
[hkey_users\default\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"UninstallMicrosoftOneDrive"="cmd.exe /c winget uninstall --accept-source-agreements --disable-interactivity --id Microsoft.OneDrive"
; Remove task that installs OneDrive
[hkey_users\default\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"OneDriveSetup"=-

View File

@@ -3,5 +3,8 @@ Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\System\GameConfigStore] [HKEY_CURRENT_USER\System\GameConfigStore]
"GameDVR_Enabled"=dword:00000001 "GameDVR_Enabled"=dword:00000001
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR]
"AppCaptureEnabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR] [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR]
"AllowGameDVR"=dword:00000001 "AllowGameDVR"=dword:00000001

View 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]

View File

@@ -19,6 +19,7 @@ param (
[switch]$RemoveW11Outlook, [switch]$RemoveW11Outlook,
[switch]$ForceRemoveEdge, [switch]$ForceRemoveEdge,
[switch]$DisableDVR, [switch]$DisableDVR,
[switch]$DisableGameBarIntegration,
[switch]$DisableTelemetry, [switch]$DisableTelemetry,
[switch]$DisableFastStartup, [switch]$DisableFastStartup,
[switch]$DisableModernStandbyNetworking, [switch]$DisableModernStandbyNetworking,
@@ -66,6 +67,7 @@ param (
[switch]$ExplorerToThisPC, [switch]$ExplorerToThisPC,
[switch]$ExplorerToDownloads, [switch]$ExplorerToDownloads,
[switch]$ExplorerToOneDrive, [switch]$ExplorerToOneDrive,
[switch]$NoRestartExplorer,
[switch]$DisableOnedrive, [switch]$HideOnedrive, [switch]$DisableOnedrive, [switch]$HideOnedrive,
[switch]$Disable3dObjects, [switch]$Hide3dObjects, [switch]$Disable3dObjects, [switch]$Hide3dObjects,
[switch]$DisableMusic, [switch]$HideMusic, [switch]$DisableMusic, [switch]$HideMusic,
@@ -381,8 +383,18 @@ function RemoveApps {
Write-Host "Error: WinGet is either not installed or is outdated, $app could not be removed" -ForegroundColor Red Write-Host "Error: WinGet is either not installed or is outdated, $app could not be removed" -ForegroundColor Red
} }
else { else {
# Uninstall app via winget $appName = $app -replace '\.', '_'
Strip-Progress -ScriptBlock { winget uninstall --accept-source-agreements --disable-interactivity --id $app } | Tee-Object -Variable wingetOutput
# Uninstall app via winget, or create a scheduled task to uninstall it later
if ($script:Params.ContainsKey("User")) {
RegImport "Adding scheduled task to uninstall $app for user $(GetUserName)..." "Uninstall_$($appName).reg"
}
elseif ($script:Params.ContainsKey("Sysprep")) {
RegImport "Adding scheduled task to uninstall $app after new users log in..." "Uninstall_$($appName).reg"
}
else {
Strip-Progress -ScriptBlock { winget uninstall --accept-source-agreements --disable-interactivity --id $app } | Tee-Object -Variable wingetOutput
}
If (($app -eq "Microsoft.Edge") -and (Select-String -InputObject $wingetOutput -Pattern "Uninstall failed with exit code")) { If (($app -eq "Microsoft.Edge") -and (Select-String -InputObject $wingetOutput -Pattern "Uninstall failed with exit code")) {
Write-Host "Unable to uninstall Microsoft Edge via Winget" -ForegroundColor Red Write-Host "Unable to uninstall Microsoft Edge via Winget" -ForegroundColor Red
@@ -641,7 +653,7 @@ function RegImport {
# Restart the Windows Explorer process # Restart the Windows Explorer process
function RestartExplorer { function RestartExplorer {
if ($script:Params.ContainsKey("Sysprep") -or $script:Params.ContainsKey("User")) { if ($script:Params.ContainsKey("Sysprep") -or $script:Params.ContainsKey("User") -or $script:Params.ContainsKey("NoRestartExplorer")) {
return return
} }
@@ -979,6 +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 '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"
@@ -987,8 +1000,9 @@ function DisplayCustomModeOptions {
Write-Output "" 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 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 'DisableGameBarIntegration' 'Disable Game Bar integration'
} }
} }
} }
@@ -1162,10 +1176,13 @@ function DisplayCustomModeOptions {
} }
} }
Write-Output "" # Don't show option for users running build 26200 and above, as this setting was removed in this build
if ($WinVersion -lt 26200) {
Write-Output ""
if ($( Read-Host -Prompt " Disable the recommended section in the start menu? This applies to all users (y/n)" ) -eq 'y') { if ($( Read-Host -Prompt " Disable the recommended section in the start menu? This applies to all users (y/n)" ) -eq 'y') {
AddParameter 'DisableStartRecommended' 'Disable the recommended section in the start menu.' AddParameter 'DisableStartRecommended' 'Disable the recommended section in the start menu.'
}
} }
Write-Output "" Write-Output ""
@@ -1794,6 +1811,10 @@ switch ($script:Params.Keys) {
RegImport "> Disabling Xbox game/screen recording..." "Disable_DVR.reg" RegImport "> Disabling Xbox game/screen recording..." "Disable_DVR.reg"
continue continue
} }
'DisableGameBarIntegration' {
RegImport "> Disabling Game Bar integration..." "Disable_Game_Bar_Integration.reg"
continue
}
'DisableTelemetry' { 'DisableTelemetry' {
RegImport "> Disabling telemetry, diagnostic data, activity history, app-launch tracking and targeted ads..." "Disable_Telemetry.reg" RegImport "> Disabling telemetry, diagnostic data, activity history, app-launch tracking and targeted ads..." "Disable_Telemetry.reg"
continue continue