10 Commits

Author SHA1 Message Date
Raphire
26ebc7d91f Update Get.ps1 to new release 2025-05-26 21:04:51 +02:00
Raphire
355ae22da8 Add link to latest release badge 2025-05-25 20:26:20 +02:00
Raphire
a3851e3dbb Add latest release button to README.md 2025-05-25 20:25:22 +02:00
Raphire
0aa146ac3e Cleanup / Linting 2025-05-25 20:25:06 +02:00
TPAXcc
44703765fb Support launching script through Windows Terminal if installed (#225) 2025-05-21 21:57:40 +02:00
Raphire
c324483c7b Added support for removing StartExperiencesApp as part of disabling widgets 2025-05-21 12:04:58 +02:00
Raphire
6c4b791d79 Added option to completely disable/hide Settings Home page 2025-05-20 21:56:04 +02:00
Raphire
6eccf15d88 Added option to disable MS 365 ads in Settings Home 2025-05-20 21:55:38 +02:00
Raphire
df9f00c726 Move DisableDesktopSpotlight into it's own option in custom mode selection 2025-05-20 20:38:47 +02:00
Raphire
1e7d212c10 Use proper download link for latest tag 2025-05-20 00:25:31 +02:00
11 changed files with 86 additions and 31 deletions

View File

@@ -101,42 +101,34 @@ XING
#Microsoft.BingSearch # Web Search from Microsoft Bing (Integrates into Windows Search) #Microsoft.BingSearch # Web Search from Microsoft Bing (Integrates into Windows Search)
#Microsoft.Copilot # New Microsoft Copilot app #Microsoft.Copilot # New Microsoft Copilot app
#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.GetHelp # Required for some Windows 11 Troubleshooters #Microsoft.GetHelp # Required for some Windows 11 Troubleshooters
#Microsoft.MSPaint # Paint 3D #Microsoft.MSPaint # Paint 3D
#Microsoft.OneDrive # OneDrive consumer #Microsoft.OneDrive # OneDrive consumer
#Microsoft.OutlookForWindows # New mail app: Outlook for Windows
#Microsoft.Paint # Classic Paint #Microsoft.Paint # Classic Paint
#Microsoft.People # Required for & included with Mail & Calendar
#Microsoft.PowerAutomateDesktop
#Microsoft.RemoteDesktop
#Microsoft.ScreenSketch # Snipping Tool #Microsoft.ScreenSketch # Snipping Tool
#Microsoft.StartExperiencesApp # This app powers Windows Widgets My Feed
#Microsoft.Whiteboard # Only preinstalled on devices with touchscreen and/or pen support #Microsoft.Whiteboard # Only preinstalled on devices with touchscreen and/or pen support
#Microsoft.Windows.DevHome
#Microsoft.Windows.Photos #Microsoft.Windows.Photos
#Microsoft.WindowsCalculator #Microsoft.WindowsCalculator
#Microsoft.WindowsCamera #Microsoft.WindowsCamera
#Microsoft.windowscommunicationsapps # Mail & Calendar
#Microsoft.WindowsNotepad #Microsoft.WindowsNotepad
#Microsoft.WindowsStore # Microsoft Store, WARNING: This app cannot be reinstalled! #Microsoft.WindowsStore # Microsoft Store, WARNING: This app cannot be reinstalled!
#Microsoft.WindowsTerminal # New default terminal app in windows 11 #Microsoft.WindowsTerminal # New default terminal app in windows 11
#Microsoft.Xbox.TCUI # UI framework, seems to be required for MS store, photos and certain games #Microsoft.Xbox.TCUI # UI framework, seems to be required for MS store, photos and certain games
#Microsoft.XboxGameOverlay # Game overlay, required/useful for some games
#Microsoft.XboxGamingOverlay # Game overlay, required/useful for some games
#Microsoft.XboxIdentityProvider # Xbox sign-in framework, required for some games #Microsoft.XboxIdentityProvider # Xbox sign-in framework, required for some games
#Microsoft.XboxSpeechToTextOverlay # Might be required for some games, WARNING: This app cannot be reinstalled! #Microsoft.XboxSpeechToTextOverlay # Might be required for some games, WARNING: This app cannot be reinstalled!
#Microsoft.YourPhone # Phone link #Microsoft.YourPhone # Phone link
#Microsoft.ZuneMusic # Modern Media Player #Microsoft.ZuneMusic # Modern Media Player
#MicrosoftWindows.CrossDevice # Phone integration within File Explorer, Camera and more #MicrosoftWindows.CrossDevice # Phone integration within File Explorer, Camera and more
# --------------------------------------------------------------------------------------------------------------- #
# The apps below this line will NOT be uninstalled by default, unless selected during custom mode app selection #
# or when launching the script with the specific parameters found in the README.md. Remove the # character in #
# front of any app you want to UNINSTALL by default. #
# --------------------------------------------------------------------------------------------------------------- #
#Microsoft.GamingApp # Modern Xbox Gaming App, required for installing some PC games
#Microsoft.OutlookForWindows # New mail app: Outlook for Windows
#Microsoft.People # Required for & included with Mail & Calendar
#Microsoft.PowerAutomateDesktop
#Microsoft.RemoteDesktop
#Microsoft.Windows.DevHome
#Microsoft.windowscommunicationsapps # Mail & Calendar
#Microsoft.XboxGameOverlay # Game overlay, required/useful for some games
#Microsoft.XboxGamingOverlay # Game overlay, required/useful for some games
#AD2F1837.HPAIExperienceCenter #AD2F1837.HPAIExperienceCenter
#AD2F1837.HPConnectedMusic #AD2F1837.HPConnectedMusic
#AD2F1837.HPConnectedPhotopoweredbySnapfish #AD2F1837.HPConnectedPhotopoweredbySnapfish

View File

@@ -23,6 +23,8 @@ param (
[switch]$DisableDesktopSpotlight, [switch]$DisableDesktopSpotlight,
[switch]$DisableLockscrTips, [switch]$DisableLockscreenTips, [switch]$DisableLockscrTips, [switch]$DisableLockscreenTips,
[switch]$DisableWindowsSuggestions, [switch]$DisableSuggestions, [switch]$DisableWindowsSuggestions, [switch]$DisableSuggestions,
[switch]$DisableSettings365Ads,
[switch]$DisableSettingsHome,
[switch]$ShowHiddenFolders, [switch]$ShowHiddenFolders,
[switch]$ShowKnownFileExt, [switch]$ShowKnownFileExt,
[switch]$HideDupliDrive, [switch]$HideDupliDrive,
@@ -58,7 +60,7 @@ param (
# Show error if current powershell environment does not have LanguageMode set to FullLanguage # Show error if current powershell environment does not have LanguageMode set to FullLanguage
if ($ExecutionContext.SessionState.LanguageMode -ne "FullLanguage") { if ($ExecutionContext.SessionState.LanguageMode -ne "FullLanguage") {
Write-Host "Error: Win11Debloat is unable to run on your system. Powershell execution is restricted by security policies" -ForegroundColor Red Write-Host "Error: Win11Debloat is unable to run on your system. PowerShell execution is restricted by security policies" -ForegroundColor Red
Write-Output "" Write-Output ""
Write-Output "Press enter to exit..." Write-Output "Press enter to exit..."
Read-Host | Out-Null Read-Host | Out-Null
@@ -73,7 +75,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-WebRequest https://github.com/Raphire/Win11Debloat/zipball/master -OutFile "$env:TEMP/win11debloat-temp.zip" Invoke-WebRequest https://github.com/Raphire/Win11Debloat/zipball/2025.05.26 -OutFile "$env:TEMP/win11debloat-temp.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

@@ -14,6 +14,7 @@
# Win11Debloat # Win11Debloat
[![GitHub Release](https://img.shields.io/github/v/release/Raphire/Win11Debloat?style=for-the-badge&label=Latest%20release)](https://github.com/Raphire/Win11Debloat/releases/latest)
[![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) [![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/) [![Static Badge](https://img.shields.io/badge/Documentation-_?style=for-the-badge&logo=bookstack&color=grey)](https://github.com/Raphire/Win11Debloat/wiki/)
@@ -53,7 +54,7 @@ This method supports parameters to customize the behaviour of the script. Please
<details> <details>
<summary>Manually download & run the script.</summary><br/> <summary>Manually download & run the script.</summary><br/>
1. [Download the latest version of the script](https://github.com/Raphire/Win11Debloat/zipball/master), and extract the .ZIP file to your desired location. 1. [Download the latest version of the script](https://github.com/Raphire/Win11Debloat/releases/latest), and extract the .ZIP file to your desired location.
2. Navigate to the Win11Debloat folder 2. Navigate to the Win11Debloat folder
3. Double click the `Run.bat` file to start the script. NOTE: If the console window immediately closes and nothing happens, try the advanced method below. 3. Double click the `Run.bat` file to start the script. NOTE: If the console window immediately closes and nothing happens, try the advanced method below.
4. Accept the Windows UAC prompt to run the script as administrator, this is required for the script to function. 4. Accept the Windows UAC prompt to run the script as administrator, this is required for the script to function.
@@ -65,7 +66,7 @@ This method supports parameters to customize the behaviour of the script. Please
<details> <details>
<summary>Manually download the script & run the script via PowerShell. Recommended for advanced users.</summary><br/> <summary>Manually download the script & run the script via PowerShell. Recommended for advanced users.</summary><br/>
1. [Download the latest version of the script](https://github.com/Raphire/Win11Debloat/zipball/master), and extract the .ZIP file to your desired location. 1. [Download the latest version of the script](https://github.com/Raphire/Win11Debloat/releases/latest), and extract the .ZIP file to your desired location.
2. Open PowerShell or Terminal as an administrator. 2. Open PowerShell or Terminal as an administrator.
3. Temporarily enable PowerShell execution by entering the following command: 3. Temporarily enable PowerShell execution by entering the following command:
@@ -144,7 +145,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo
### Default Settings ### Default Settings
The default mode allows you to quickly and easily apply the changes that are recommended for most people. This includes uninstalling apps that most would consider bloatware, removing many annoying distractions and disabling telemetry and tracking. Expand the section below for more information. Win11Debloat offers a 1-click default mode that allows you to quickly and easily apply the changes that are recommended for most people. This includes uninstalling apps that most would consider bloatware, removing many annoying distractions and disabling telemetry and tracking. Expand the section below for more information.
<details> <details>
<summary>Click to expand</summary> <summary>Click to expand</summary>
@@ -326,7 +327,7 @@ The default mode allows you to quickly and easily apply the changes that are rec
- Microsoft.RemoteDesktop* - Microsoft.RemoteDesktop*
- Windows.DevHome* - Windows.DevHome*
* Can be removed by running the script with the relevant parameter. (See parameters section below) * Can be removed by running the script with the relevant parameter. (Please refer to the wiki for more details)
</blockquote> </blockquote>
</details> </details>
</details> </details>

View File

@@ -0,0 +1,5 @@
Windows Registry Editor Version 5.00
; Disable MS 365 Ads in Settings Home
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent]
"DisableConsumerAccountStateContent"=dword:00000001

View File

@@ -0,0 +1,4 @@
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"SettingsPageVisibility"="hide:home"

View File

@@ -0,0 +1,5 @@
Windows Registry Editor Version 5.00
; Disable MS 365 Ads in Settings Home
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent]
"DisableConsumerAccountStateContent"=dword:00000001

View File

@@ -0,0 +1,4 @@
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"SettingsPageVisibility"="hide:home"

View File

@@ -0,0 +1,5 @@
Windows Registry Editor Version 5.00
; Enable MS 365 Ads in Settings Home
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent]
"DisableConsumerAccountStateContent"=-

View File

@@ -0,0 +1,4 @@
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"SettingsPageVisibility"=-

15
Run.bat
View File

@@ -1 +1,14 @@
PowerShell -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""%~dp0Win11Debloat.ps1""' -Verb RunAs}" @echo off
:: Set Windows Terminal installation paths. (Default and Scoop installation)
set "wtDefaultPath=%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe"
set "wtScoopPath=%USERPROFILE%\scoop\apps\windows-terminal\current\wt.exe"
:: Launch the script in Windows Terminal if installed, otherwise use default PowerShell.
if exist "%wtDefaultPath%" (
PowerShell -Command "Start-Process -FilePath '%wtDefaultPath%' -ArgumentList 'PowerShell -NoProfile -ExecutionPolicy Bypass -File \"\"%~dp0Win11Debloat.ps1\"\"' -Verb RunAs"
) else if exist "%wtScoopPath%" (
PowerShell -Command "Start-Process -FilePath '%wtScoopPath%' -ArgumentList 'PowerShell -NoProfile -ExecutionPolicy Bypass -File \"\"%~dp0Win11Debloat.ps1\"\"' -Verb RunAs"
) else (
echo Windows Terminal not found, using default PowerShell...
PowerShell -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File \"\"%~dp0Win11Debloat.ps1\"\"' -Verb RunAs}"
)

View File

@@ -25,6 +25,8 @@ param (
[switch]$DisableDesktopSpotlight, [switch]$DisableDesktopSpotlight,
[switch]$DisableLockscrTips, [switch]$DisableLockscreenTips, [switch]$DisableLockscrTips, [switch]$DisableLockscreenTips,
[switch]$DisableWindowsSuggestions, [switch]$DisableSuggestions, [switch]$DisableWindowsSuggestions, [switch]$DisableSuggestions,
[switch]$DisableSettings365Ads,
[switch]$DisableSettingsHome,
[switch]$ShowHiddenFolders, [switch]$ShowHiddenFolders,
[switch]$ShowKnownFileExt, [switch]$ShowKnownFileExt,
[switch]$HideDupliDrive, [switch]$HideDupliDrive,
@@ -579,7 +581,7 @@ function RestartExplorer {
} }
# Only restart if the powershell process matches the OS architecture. # Only restart if the powershell process matches the OS architecture.
# Restarting explorer from a 32bit Powershell window will fail on a 64bit OS # Restarting explorer from a 32bit PowerShell window will fail on a 64bit OS
if ([Environment]::Is64BitProcess -eq [Environment]::Is64BitOperatingSystem) { if ([Environment]::Is64BitProcess -eq [Environment]::Is64BitOperatingSystem) {
Stop-Process -processName: Explorer -Force Stop-Process -processName: Explorer -Force
} }
@@ -872,9 +874,9 @@ function DisplayCustomModeOptions {
Write-Output "" Write-Output ""
if ($( Read-Host -Prompt "Disable tips, tricks, suggestions and ads in start, settings, notifications, explorer, desktop and lockscreen? (y/n)" ) -eq 'y') { if ($( Read-Host -Prompt "Disable tips, tricks, suggestions and ads in start, settings, notifications, explorer and lockscreen? (y/n)" ) -eq 'y') {
AddParameter 'DisableSuggestions' 'Disable tips, tricks, suggestions and ads in start, settings, notifications and File Explorer' AddParameter 'DisableSuggestions' 'Disable tips, tricks, suggestions and ads in start, settings, notifications and File Explorer'
AddParameter 'DisableDesktopSpotlight' 'Disable the Windows Spotlight desktop background option.' AddParameter 'DisableSettings365Ads' 'Disable Microsoft 365 ads in Settings Home'
AddParameter 'DisableLockscreenTips' 'Disable tips & tricks on the lockscreen' AddParameter 'DisableLockscreenTips' 'Disable tips & tricks on the lockscreen'
} }
@@ -894,6 +896,12 @@ function DisplayCustomModeOptions {
} }
} }
Write-Output ""
if ($( Read-Host -Prompt "Disable Windows Spotlight background on desktop? (y/n)" ) -eq 'y') {
AddParameter 'DisableDesktopSpotlight' 'Disable the Windows Spotlight desktop background option.'
}
# Only show this option for Windows 11 users running build 22000 or later # Only show this option for Windows 11 users running build 22000 or later
if ($WinVersion -ge 22000) { if ($WinVersion -ge 22000) {
Write-Output "" Write-Output ""
@@ -1510,14 +1518,22 @@ switch ($script:Params.Keys) {
RegImport "> Disabling tips, tricks, suggestions and ads across Windows..." "Disable_Windows_Suggestions.reg" RegImport "> Disabling tips, tricks, suggestions and ads across Windows..." "Disable_Windows_Suggestions.reg"
continue continue
} }
'DisableDesktopSpotlight' { 'DisableSettings365Ads' {
RegImport "> Disabling the 'Windows Spotlight' desktop background option..." "Disable_Desktop_Spotlight.reg" RegImport "> Disabling Microsoft 365 ads in Settings Home..." "Disable_Settings_365_Ads.reg"
continue continue
} }
{$_ -in "DisableLockscrTips", "DisableLockscreenTips"} { {$_ -in "DisableLockscrTips", "DisableLockscreenTips"} {
RegImport "> Disabling tips & tricks on the lockscreen..." "Disable_Lockscreen_Tips.reg" RegImport "> Disabling tips & tricks on the lockscreen..." "Disable_Lockscreen_Tips.reg"
continue continue
} }
'DisableDesktopSpotlight' {
RegImport "> Disabling the 'Windows Spotlight' desktop background option..." "Disable_Desktop_Spotlight.reg"
continue
}
'DisableSettingsHome' {
RegImport "> Disabling the Settings Home page..." "Disable_Settings_Home.reg"
continue
}
{$_ -in "DisableBingSearches", "DisableBing"} { {$_ -in "DisableBingSearches", "DisableBing"} {
RegImport "> Disabling bing web search, bing AI & cortana in Windows search..." "Disable_Bing_Cortana_In_Search.reg" RegImport "> Disabling bing web search, bing AI & cortana in Windows search..." "Disable_Bing_Cortana_In_Search.reg"
@@ -1604,6 +1620,10 @@ switch ($script:Params.Keys) {
} }
{$_ -in "HideWidgets", "DisableWidgets"} { {$_ -in "HideWidgets", "DisableWidgets"} {
RegImport "> Disabling the widget service and hiding the widget icon from the taskbar..." "Disable_Widgets_Taskbar.reg" RegImport "> Disabling the widget service and hiding the widget icon from the taskbar..." "Disable_Widgets_Taskbar.reg"
# Also remove the app package for Widgets
$appsList = 'Microsoft.StartExperiencesApp'
RemoveApps $appsList
continue continue
} }
{$_ -in "HideChat", "DisableChat"} { {$_ -in "HideChat", "DisableChat"} {