23 Commits

Author SHA1 Message Date
Raphire
33ceaee38b Add option to disable bloat in Brave browser 2025-12-27 17:16:50 +01:00
Raphire
e98c1bd273 Update menu text & image 2025-12-27 15:57:05 +01:00
Raphire
82edc87601 Exit after config version check fails 2025-12-26 21:51:34 +01:00
Jeffrey
e612f8e9d5 Improved app removal via cmdline, add JSON config files (#402)
* Add support for removing specific apps via commandline

* Add default and last used settings JSON config files (#362)

---------

Co-authored-by: soulcloude00 <soulcloude00@gmail.com>
Co-authored-by: haresh <h92811311@gmail.com>
Co-authored-by: Sashank <hello@sashank.wiki>
2025-12-26 20:36:51 +01:00
Raphire
48cd513f14 Remove unnecessary spacing 2025-12-16 23:25:17 +01:00
Jeffrey
71043ccc7d Cleaning up to improve readability and fix some minor bug (#394)
* Cleaned up the script by extracting a lot of logic into their own functions
* Separated the CreateRestorePoint logic to always be checked & run before executing any changes
* Removed Windows 10 specific app removal logic that was added as a workaround for W10 issues that have since been fixed
* Fixed not all default parameters being applied correctly when running the script with both the `-RunDefaults`/`-RunDefaultsLite` and `-Silent` parameters
2025-12-15 23:22:29 +01:00
Raphire
0971b72c48 Fix script not exiting correctly when selecting 0 options in Custom Mode 2025-12-14 02:17:01 +01:00
Raphire
d403a2284c Fix issue with Disable Give access to also disabling share tab in folder properties #390 2025-12-13 01:15:40 +01:00
Raphire
990957e3ca Add option to disable Game Bar Integration in Default Mode
This option is only shown if you opt to disable the XboxGameOverlay/XboxGamingOverlay apps
2025-12-07 17:45:05 +01:00
Raphire
fb343e2a70 Fix registry files for disabling Game Bar Integration
Thanks @agadiffe!
2025-12-07 17:19:56 +01:00
Raphire
977a0ecb2d Update README.md & Info screen 2025-12-04 23:49:40 +01:00
Raphire
cd29f6987a Updated Get.ps1 to always fetch latest release, instead of using a hardcoded release version #381
Thanks @agadiffe for the suggestion!
2025-12-01 21:04:39 +01:00
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
23 changed files with 1239 additions and 528 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,5 @@
LastSettings
SavedSettings
LastUsedSettings.json
CustomAppsList
Win11Debloat.log

View File

@@ -105,6 +105,7 @@ XING # Professional networking platfor
#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.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.OneDrive # OneDrive consumer cloud storage client
#Microsoft.OutlookForWindows # New mail app: Outlook for Windows

View File

@@ -1,11 +0,0 @@
- Disable & remove Microsoft Copilot
- Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads
- Disable tips, tricks, suggestions and ads in start, settings, notifications and File Explorer
- Disable ads, suggestions and the MSN news feed in Microsoft Edge
- Disable tips & tricks on the lockscreen (This may change your lockscreen wallpaper)
- Disable & remove Bing web search, Bing AI and Cortana from Windows search
- Show file extensions for known file types
- Disable widgets on the taskbar & lockscreen
- Disable Fast Start-up

View File

@@ -1,4 +1,4 @@
Win11Debloat is a lightweight and easy to use PowerShell script that allows you to quickly
Win11Debloat is a lightweight, easy to use PowerShell script that allows you to quickly
declutter and improve your Windows experience. It can remove pre-installed bloatware apps,
disable telemetry, remove intrusive interface elements and much more.
@@ -56,9 +56,11 @@ 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 integration & game/screen recording. This also disables `ms-gamingoverlay`/`ms-gamebar` popups.
- Disable Fast Start-up to ensure a full shutdown.
- Disable network connectivity during Modern Standby to reduce battery drain. (W11 only)
Advanced Features
- Option to apply changes to a different user, instead of the currently logged in user.
- Sysprep mode to apply changes to the Windows Default user profile.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 29 KiB

257
DefaultSettings.json Normal file
View File

@@ -0,0 +1,257 @@
{
"Version": "1.0",
"Settings": [
{
"Name": "CreateRestorePoint",
"Value": true
},
{
"Name": "DisableTelemetry",
"Value": true
},
{
"Name": "DisableSuggestions",
"Value": true
},
{
"Name": "DisableEdgeAds",
"Value": true
},
{
"Name": "DisableLockscreenTips",
"Value": true
},
{
"Name": "DisableBing",
"Value": true
},
{
"Name": "DisableCopilot",
"Value": true
},
{
"Name": "DisableRecall",
"Value": true
},
{
"Name": "DisableClickToDo",
"Value": true
},
{
"Name": "DisableWidgets",
"Value": true
},
{
"Name": "HideChat",
"Value": true
},
{
"Name": "ShowKnownFileExt",
"Value": true
},
{
"Name": "DisableFastStartup",
"Value": true
},
{
"Name": "Hide3dObjects",
"Value": true
},
{
"Name": "DisableModernStandbyNetworking",
"Value": true
},
{
"Name": "DisableDVR",
"Value": false
},
{
"Name": "DisableGameBarIntegration",
"Value": false
},
{
"Name": "ClearStart",
"Value": false
},
{
"Name": "ClearStartAllUsers",
"Value": false
},
{
"Name": "DisableStartRecommended",
"Value": false
},
{
"Name": "DisableStartPhoneLink",
"Value": false
},
{
"Name": "DisableSettings365Ads",
"Value": false
},
{
"Name": "DisableEdgeAI",
"Value": false
},
{
"Name": "DisablePaintAI",
"Value": false
},
{
"Name": "DisableNotepadAI",
"Value": false
},
{
"Name": "EnableDarkMode",
"Value": false
},
{
"Name": "RevertContextMenu",
"Value": false
},
{
"Name": "DisableMouseAcceleration",
"Value": false
},
{
"Name": "DisableStickyKeys",
"Value": false
},
{
"Name": "DisableDesktopSpotlight",
"Value": false
},
{
"Name": "TaskbarAlignLeft",
"Value": false
},
{
"Name": "CombineTaskbarAlways",
"Value": false
},
{
"Name": "CombineMMTaskbarAlways",
"Value": false
},
{
"Name": "CombineTaskbarWhenFull",
"Value": false
},
{
"Name": "CombineMMTaskbarWhenFull",
"Value": false
},
{
"Name": "CombineTaskbarNever",
"Value": false
},
{
"Name": "CombineMMTaskbarNever",
"Value": false
},
{
"Name": "MMTaskbarModeAll",
"Value": false
},
{
"Name": "MMTaskbarModeMainActive",
"Value": false
},
{
"Name": "MMTaskbarModeActive",
"Value": false
},
{
"Name": "HideSearchTb",
"Value": false
},
{
"Name": "ShowSearchIconTb",
"Value": false
},
{
"Name": "ShowSearchLabelTb",
"Value": false
},
{
"Name": "ShowSearchBoxTb",
"Value": false
},
{
"Name": "HideTaskview",
"Value": false
},
{
"Name": "EnableEndTask",
"Value": false
},
{
"Name": "EnableLastActiveClick",
"Value": false
},
{
"Name": "ShowHiddenFolders",
"Value": false
},
{
"Name": "ExplorerToHome",
"Value": false
},
{
"Name": "ExplorerToThisPC",
"Value": false
},
{
"Name": "ExplorerToDownloads",
"Value": false
},
{
"Name": "ExplorerToOneDrive",
"Value": false
},
{
"Name": "HideHome",
"Value": false
},
{
"Name": "HideGallery",
"Value": false
},
{
"Name": "HideDupliDrive",
"Value": false
},
{
"Name": "DisableTransparency",
"Value": false
},
{
"Name": "DisableAnimations",
"Value": false
},
{
"Name": "ForceRemoveEdge",
"Value": false
},
{
"Name": "HideIncludeInLibrary",
"Value": false
},
{
"Name": "HideGiveAccessTo",
"Value": false
},
{
"Name": "HideShare",
"Value": false
},
{
"Name": "HideOnedrive",
"Value": false
},
{
"Name": "HideMusic",
"Value": false
}
]
}

28
Get.ps1
View File

@@ -9,7 +9,8 @@ param (
[switch]$RunDefaults,
[switch]$RunDefaultsLite,
[switch]$RunSavedSettings,
[switch]$RemoveApps,
[string]$Apps,
[switch]$RemoveApps,
[switch]$RemoveAppsCustom,
[switch]$RemoveGamingApps,
[switch]$RemoveCommApps,
@@ -17,6 +18,7 @@ param (
[switch]$RemoveW11Outlook,
[switch]$ForceRemoveEdge,
[switch]$DisableDVR,
[switch]$DisableGameBarIntegration,
[switch]$DisableTelemetry,
[switch]$DisableFastStartup,
[switch]$DisableModernStandbyNetworking,
@@ -25,6 +27,7 @@ param (
[switch]$DisableLockscrTips, [switch]$DisableLockscreenTips,
[switch]$DisableWindowsSuggestions, [switch]$DisableSuggestions,
[switch]$DisableEdgeAds,
[switch]$DisableBraveBloat,
[switch]$DisableSettings365Ads,
[switch]$DisableSettingsHome,
[switch]$ShowHiddenFolders,
@@ -64,6 +67,7 @@ param (
[switch]$ExplorerToThisPC,
[switch]$ExplorerToDownloads,
[switch]$ExplorerToOneDrive,
[switch]$NoRestartExplorer,
[switch]$DisableOnedrive, [switch]$HideOnedrive,
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
[switch]$DisableMusic, [switch]$HideMusic,
@@ -88,14 +92,24 @@ Write-Output "------------------------------------------------------------------
Write-Output "> Downloading Win11Debloat..."
# 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"
# Download latest version of Win11Debloat from GitHub as zip archive
try {
$LatestReleaseUri = (Invoke-RestMethod https://api.github.com/repos/Raphire/Win11Debloat/releases/latest).zipball_url
Invoke-RestMethod $LatestReleaseUri -OutFile "$env:TEMP/win11debloat.zip"
}
catch {
Write-Host "Error: Unable to fetch latest release from GitHub. Please check your internet connection and try again." -ForegroundColor Red
Write-Output ""
Write-Output "Press enter to exit..."
Read-Host | Out-Null
Exit
}
# Remove old script folder if it exists, except for CustomAppsList and SavedSettings files
# Remove old script folder if it exists, except for CustomAppsList and LastUsedSettings.json files
if (Test-Path "$env:TEMP/Win11Debloat") {
Write-Output ""
Write-Output "> Cleaning up old Win11Debloat folder..."
Get-ChildItem -Path "$env:TEMP/Win11Debloat" -Exclude CustomAppsList,SavedSettings,Win11Debloat.log | Remove-Item -Recurse -Force
Get-ChildItem -Path "$env:TEMP/Win11Debloat" -Exclude CustomAppsList,LastUsedSettings.json,Win11Debloat.log | Remove-Item -Recurse -Force
}
Write-Output ""
@@ -131,13 +145,13 @@ if ($null -ne $debloatProcess) {
$debloatProcess.WaitForExit()
}
# Remove all remaining script files, except for CustomAppsList and SavedSettings files
# Remove all remaining script files, except for CustomAppsList and LastUsedSettings.json files
if (Test-Path "$env:TEMP/Win11Debloat") {
Write-Output ""
Write-Output "> Cleaning up..."
# Cleanup, remove Win11Debloat directory
Get-ChildItem -Path "$env:TEMP/Win11Debloat" -Exclude CustomAppsList,SavedSettings,Win11Debloat.log | Remove-Item -Recurse -Force
Get-ChildItem -Path "$env:TEMP/Win11Debloat" -Exclude CustomAppsList,LastUsedSettings.json,Win11Debloat.log | Remove-Item -Recurse -Force
}
Write-Output ""

View File

@@ -18,9 +18,9 @@
[![Join the Discussion](https://img.shields.io/badge/Join-the%20Discussion-2D9F2D?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Raphire/Win11Debloat/discussions)
[![Static Badge](https://img.shields.io/badge/Documentation-_?style=for-the-badge&logo=bookstack&color=grey)](https://github.com/Raphire/Win11Debloat/wiki/)
Win11Debloat is a simple, easy to use and lightweight PowerShell script that allows you to quickly declutter and improve your Windows experience. It can remove pre-installed bloatware apps, disable telemetry, remove intrusive interface elements and much more. No need to painstakingly go through all the settings yourself or remove apps one by one. Win11Debloat makes the process quick and easy!
Win11Debloat is a lightweight, easy to use PowerShell script that allows you to quickly declutter and improve your Windows experience. It can remove pre-installed bloatware apps, disable telemetry, remove intrusive interface elements and much more. No need to painstakingly go through all the settings yourself or remove apps one by one. Win11Debloat makes the process quick and easy!
The script also includes many features that system administrators will enjoy. Such as support for Windows Audit mode, the option to make changes to other Windows users and the ability to run the script without requiring user input during runtime. Please refer to our [wiki](https://github.com/Raphire/Win11Debloat/wiki/) for more details.
The script also includes many features that system administrators and power users will enjoy. Such as support for Windows Audit mode, the option to make changes to other Windows users and the ability to access all of Win11Debloat's features right from the command-line. Please refer to our [wiki](https://github.com/Raphire/Win11Debloat/wiki/) for more details.
![Win11Debloat Menu](/Assets/menu.png)
@@ -152,11 +152,14 @@ 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 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 network connectivity during Modern Standby to reduce battery drain. (W11 only)
#### Advanced Features
- 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.
- [Sysprep mode](https://github.com/Raphire/Win11Debloat/wiki/Advanced-Features#sysprep-mode) to apply changes to the Windows Default user profile. Afterwards, all new users will have the changes automatically applied to them.
- [Sysprep mode](https://github.com/Raphire/Win11Debloat/wiki/Advanced-Features#sysprep-mode) to apply changes to the Windows Default user profile. Which ensures, all new users will have the changes automatically applied to them.
### Default Settings
@@ -297,6 +300,7 @@ These apps will not be removed by Win11Debloat unless explicitly selected by the
Miscellaneous apps:
- Microsoft.Edge (Edge browser, only removeable in the EEA)
- 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.OutlookForWindows (New mail app)
- Microsoft.OneDrive (OneDrive consumer)

View File

@@ -0,0 +1,9 @@
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Policies\BraveSoftware\Brave]
"BraveVPNDisabled"=dword:00000001
"BraveWalletDisabled"=dword:00000001
"BraveAIChatEnabled"=dword:00000000
"BraveRewardsDisabled"=dword:00000001
"BraveTalkDisabled"=dword:00000001
"BraveNewsDisabled"=dword:00000001

View File

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

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-gamebarservices"
"URL Protocol"=""
"NoOpenWith"=""
[HKEY_CLASSES_ROOT\ms-gamebarservices\shell\open\command]
@="%SystemRoot%/System32/systray.exe"

View File

@@ -0,0 +1,9 @@
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Policies\BraveSoftware\Brave]
"BraveVPNDisabled"=dword:00000001
"BraveWalletDisabled"=dword:00000001
"BraveAIChatEnabled"=dword:00000000
"BraveRewardsDisabled"=dword:00000001
"BraveTalkDisabled"=dword:00000001
"BraveNewsDisabled"=dword:00000001

View File

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

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

@@ -0,0 +1,4 @@
Windows Registry Editor Version 5.00
; Remove all Brave Browser Policies
[-HKEY_LOCAL_MACHINE\Software\Policies\BraveSoftware\Brave]

View File

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

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-gamebarservices"
"URL Protocol"=""
"NoOpenWith"=-
[-HKEY_CLASSES_ROOT\ms-gamebar\shell\open\command]

File diff suppressed because it is too large Load Diff