mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 02:56:17 +00:00
Reduced clutter of options in custom mode
- Certain options now only show if you are running specific windows builds - Added more info to in-script info pages - Updated README instructions
This commit is contained in:
@@ -7,8 +7,8 @@ Win11Debloat will make the following changes:
|
|||||||
- Disable bing search & cortana in windows search.
|
- Disable bing search & cortana in windows search.
|
||||||
- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper)
|
- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper)
|
||||||
- Disable tips, tricks and suggestions in the start menu and settings, and ads in windows explorer.
|
- Disable tips, tricks and suggestions in the start menu and settings, and ads in windows explorer.
|
||||||
|
- Disable Windows Copilot. (Windows 11 build 22621+)
|
||||||
- Show file extensions for known file types.
|
- Show file extensions for known file types.
|
||||||
- Disable Windows Copilot. (Windows 11 only)
|
|
||||||
- Disable the widget service & hide the icon from the taskbar.
|
- Disable the widget service & hide the icon from the taskbar.
|
||||||
- Hide the Chat (meet now) icon from the taskbar.
|
- Hide the Chat (meet now) icon from the taskbar.
|
||||||
- Hide the 3D objects folder in windows explorer. (Windows 10 only)
|
- Hide the 3D objects folder in windows explorer. (Windows 10 only)
|
||||||
|
|||||||
@@ -24,20 +24,20 @@ through all the settings yourself, or removing apps one by one!
|
|||||||
-------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------
|
||||||
- Remove bloatware apps, the list can be found in the 'Appslist.txt' file.
|
- Remove bloatware apps, the list can be found in the 'Appslist.txt' file.
|
||||||
- Remove gaming-related apps, the list can be found in the 'GamingAppslist.txt' file.
|
- Remove gaming-related apps, the list can be found in the 'GamingAppslist.txt' file.
|
||||||
|
- Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 build 22621+)
|
||||||
- Disable telemetry, diagnostic data, app-launch tracking & targeted ads.
|
- Disable telemetry, diagnostic data, app-launch tracking & targeted ads.
|
||||||
- Disable bing search, bing AI & cortana in windows search.
|
- Disable bing search, bing AI & cortana in windows search.
|
||||||
- Disable tips, tricks, suggestions and ads in start, settings, notifications, windows explorer, and on the lockscreen.
|
- Disable tips, tricks, suggestions and ads in start, settings, notifications, windows explorer, and on the lockscreen.
|
||||||
- Disable Windows Copilot. (Windows 11 only)
|
- Disable Windows Copilot. (Windows 11 build 22621+)
|
||||||
- Restore the old Windows 10 style context menu (Windows 11 only)
|
- Restore the old Windows 10 style context menu. (Windows 11 build 22000+)
|
||||||
- Show hidden files, folders and drives.
|
- Show hidden files, folders and drives.
|
||||||
- Show file extensions for known file types.
|
- Show file extensions for known file types.
|
||||||
- Hide duplicate removable drive entries from the windows explorer navigation pane, so only the entry under 'This PC' remains.
|
- Hide duplicate removable drive entries from the windows explorer navigation pane, so only the entry under 'This PC' remains.
|
||||||
- Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 update 22H2 or later only)
|
- Align taskbar icons to the left. (Windows 11 build 22000+)
|
||||||
- Align taskbar icons to the left. (Windows 11 only)
|
- Hide or change the search icon/box on the taskbar. (Windows 11 build 22000+)
|
||||||
- Hide or change the search icon/box on the taskbar. (Windows 11 only)
|
- Hide the taskview button from the taskbar. (Windows 11 build 22000+)
|
||||||
- Hide the taskview button from the taskbar. (Windows 11 only)
|
|
||||||
- Disable the widget service & hide the icon from the taskbar.
|
- Disable the widget service & hide the icon from the taskbar.
|
||||||
- Hide the chat (meet now) icon from the taskbar.
|
- Hide the chat (meet now) icon from the taskbar. (Up to build 22621)
|
||||||
- Hide the 3D objects, music or onedrive folder in the windows explorer sidepanel. (Windows 10 only)
|
- Hide the 3D objects, music or onedrive folder in the windows explorer sidepanel. (Windows 10 only)
|
||||||
- Hide the 'Include in library', 'Give access to' and 'Share' options in the context menu. (Windows 10 only)
|
- Hide the 'Include in library', 'Give access to' and 'Share' options in the context menu. (Windows 10 only)
|
||||||
|
|
||||||
|
|||||||
11
README.md
11
README.md
@@ -26,12 +26,12 @@ Give you access to even more options and allow you to customize the script to yo
|
|||||||
|
|
||||||
In this mode you'll be able to make any of the following changes:
|
In this mode you'll be able to make any of the following changes:
|
||||||
- Remove all bloatware apps from [this list](#click-for-list-of-bloat-that-is-removed) and optionally also remove gaming-related apps.
|
- Remove all bloatware apps from [this list](#click-for-list-of-bloat-that-is-removed) and optionally also remove gaming-related apps.
|
||||||
- Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 update 22H2 or later only)
|
- Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 only)
|
||||||
- Disable telemetry, diagnostic data, app-launch tracking & targeted ads.
|
- Disable telemetry, diagnostic data, app-launch tracking & targeted ads.
|
||||||
- Disable bing search, bing AI & cortana in windows search.
|
- Disable bing search, bing AI & cortana in windows search.
|
||||||
- Disable tips, tricks, suggestions and ads in start, settings, notifications, windows explorer, and on the lockscreen.
|
- Disable tips, tricks, suggestions and ads in start, settings, notifications, windows explorer, and on the lockscreen.
|
||||||
- Disable Windows Copilot. (Windows 11 only)
|
- Disable Windows Copilot. (Windows 11 only)
|
||||||
- Restore the old Windows 10 style context menu (Windows 11 only)
|
- Restore the old Windows 10 style context menu. (Windows 11 only)
|
||||||
- Show hidden files, folders and drives.
|
- Show hidden files, folders and drives.
|
||||||
- Show file extensions for known file types.
|
- Show file extensions for known file types.
|
||||||
- Hide duplicate removable drive entries from the windows explorer navigation pane, so only the entry under 'This PC' remains.
|
- Hide duplicate removable drive entries from the windows explorer navigation pane, so only the entry under 'This PC' remains.
|
||||||
@@ -56,6 +56,9 @@ Disclaimer: I believe this script to be completely safe to run, in fact, great c
|
|||||||
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.
|
||||||
5. A new powershell window will now open, showing the Win11Debloat menu. Select either the default or custom setup to continue.
|
5. A new powershell window will now open, showing the Win11Debloat menu. Select either the default or custom setup to continue.
|
||||||
|
6. Carefully read through and follow the on-screen instructions.
|
||||||
|
|
||||||
|
After making the selected changes the Win11Debloat script will restart the Windows Explorer process to properly apply them. If Windows Explorer does not recover after running the script and your desktop stays black, don't worry. Just press Ctrl + Alt + Del to restart your PC.
|
||||||
|
|
||||||
### Advanced method
|
### Advanced method
|
||||||
|
|
||||||
@@ -66,7 +69,7 @@ This method gives you the option to run the script with certain parameters to ta
|
|||||||
3. Enable powershell execution by entering the following command: `Set-ExecutionPolicy Unrestricted -Scope Process`
|
3. Enable powershell execution by entering the following command: `Set-ExecutionPolicy Unrestricted -Scope Process`
|
||||||
4. In powershell, navigate to the directory where the files were extracted. Example: `cd c:\Win11Debloat`
|
4. In powershell, navigate to the directory where the files were extracted. Example: `cd c:\Win11Debloat`
|
||||||
5. Enter this into powershell to run the script: `.\Win11Debloat.ps1`
|
5. Enter this into powershell to run the script: `.\Win11Debloat.ps1`
|
||||||
6. A menu will now open. Select either the default or custom setup to continue.
|
6. The Win11Debloat menu will now open. Select either the default or custom setup to continue.
|
||||||
|
|
||||||
To run the script without any user input, simply add parameters at the end, example: `.\Win11Debloat.ps1 -RemoveApps -DisableBing -Silent`
|
To run the script without any user input, simply add parameters at the end, example: `.\Win11Debloat.ps1 -RemoveApps -DisableBing -Silent`
|
||||||
|
|
||||||
@@ -103,7 +106,7 @@ To run the script without any user input, simply add parameters at the end, exam
|
|||||||
|
|
||||||
## Debloat Windows
|
## Debloat Windows
|
||||||
|
|
||||||
By default, this script removes a large selection preinstalled bloatware, while preserving actually useful apps like the calculator, mail, media player and photos. If you do end up needing any of the removed apps in the future you can easily reinstall them through the Microsoft store. A full list of what is and isn't removed can be found below, but if you're unhappy with the default selection you can customize exactly which apps are removed by the script by editing the apps list found in the ['Appslist.txt'](https://github.com/Raphire/Win11Debloat/blob/master/Appslist.txt) and ['GamingAppslist.txt'](https://github.com/Raphire/Win11Debloat/blob/master/GamingAppslist.txt) files.
|
By default, this script removes a large selection preinstalled bloatware, while preserving actually useful apps like the calculator, mail, media player and photos. If you do end up needing any of the removed apps in the future you can easily reinstall them through the Microsoft store. A full list of what is and isn't removed can be found below. If you're unhappy with the default selection you can customize exactly which apps are removed by the script by editing the apps list found in the ['Appslist.txt'](https://github.com/Raphire/Win11Debloat/blob/master/Appslist.txt) and ['GamingAppslist.txt'](https://github.com/Raphire/Win11Debloat/blob/master/GamingAppslist.txt) files.
|
||||||
|
|
||||||
<details open>
|
<details open>
|
||||||
<summary><h4>Click for list of bloat that is removed</h4></summary>
|
<summary><h4>Click for list of bloat that is removed</h4></summary>
|
||||||
|
|||||||
@@ -240,6 +240,9 @@ if ((-not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
|
|
||||||
# Custom mode, add options based on user input
|
# Custom mode, add options based on user input
|
||||||
'2' {
|
'2' {
|
||||||
|
# Get current windows version to compare against features
|
||||||
|
$winversion = Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' CurrentBuild
|
||||||
|
|
||||||
Clear-Host
|
Clear-Host
|
||||||
Write-Output "-------------------------------------------------------------------------------------------"
|
Write-Output "-------------------------------------------------------------------------------------------"
|
||||||
Write-Output " Win11Debloat Script - Custom Configuration"
|
Write-Output " Win11Debloat Script - Custom Configuration"
|
||||||
@@ -255,10 +258,10 @@ if ((-not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output ""
|
# Only show this option for windows 11 users running build 22621 or later
|
||||||
|
if ($winversion -ge 22621){
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
# Only show this options for windows 11 users
|
|
||||||
if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 11%'"){
|
|
||||||
if ($( Read-Host -Prompt "Remove all pinned apps from the start menu? This applies to all existing and new users and can't be reverted (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Remove all pinned apps from the start menu? This applies to all existing and new users and can't be reverted (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('ClearStart', $ClearStart)
|
$PSBoundParameters.Add('ClearStart', $ClearStart)
|
||||||
}
|
}
|
||||||
@@ -283,14 +286,17 @@ if ((-not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
$PSBoundParameters.Add('DisableLockscreenTips', $DisableLockscreenTips)
|
$PSBoundParameters.Add('DisableLockscreenTips', $DisableLockscreenTips)
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output ""
|
# Only show this option for windows 11 users running build 22621 or later
|
||||||
|
if ($winversion -ge 22621){
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
# Only show these options for windows 11 users
|
|
||||||
if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 11%'"){
|
|
||||||
if ($( Read-Host -Prompt "Disable Windows Copilot? This applies to all users (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Disable Windows Copilot? This applies to all users (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('DisableCopilot', $DisableCopilot)
|
$PSBoundParameters.Add('DisableCopilot', $DisableCopilot)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Only show this option for windows 11 users running build 22000 or later
|
||||||
|
if ($winversion -ge 22000){
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Restore the old Windows 10 style context menu? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Restore the old Windows 10 style context menu? (y/n)" ) -eq 'y') {
|
||||||
@@ -301,8 +307,8 @@ if ((-not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Do you want to make any changes to the taskbar and related services? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Do you want to make any changes to the taskbar and related services? (y/n)" ) -eq 'y') {
|
||||||
# Only show these specific options for windows 11 users
|
# Only show these specific options for windows 11 users running build 22000 or later
|
||||||
if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 11%'"){
|
if ($winversion -ge 22000){
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt " Align taskbar buttons to the left side? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt " Align taskbar buttons to the left side? (y/n)" ) -eq 'y') {
|
||||||
@@ -351,10 +357,13 @@ if ((-not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
$PSBoundParameters.Add('DisableWidgets', $DisableWidgets)
|
$PSBoundParameters.Add('DisableWidgets', $DisableWidgets)
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output ""
|
# Only show this options for windows users running build 22621 or earlier
|
||||||
|
if ($winversion -le 22621){
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt " Hide the chat (meet now) icon from the taskbar? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt " Hide the chat (meet now) icon from the taskbar? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('HideChat', $HideChat)
|
$PSBoundParameters.Add('HideChat', $HideChat)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -375,7 +384,7 @@ if ((-not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt " Hide duplicate removable drive entries from the windows explorer sidepane so they only show under 'This PC'? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt " Hide duplicate removable drive entries from the windows explorer sidepane so they only show under This PC? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('HideDupliDrive', $HideDupliDrive)
|
$PSBoundParameters.Add('HideDupliDrive', $HideDupliDrive)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user