9 Commits

Author SHA1 Message Date
Raphire
b4b003d816 Add option to DefaultSettings.json 2025-12-27 17:35:16 +01:00
Raphire
cd2035d737 Fix: Use correct custom mode option for AddFoldersToThisPC 2025-12-27 17:02:20 +01:00
Raphire
fc64809ad4 Move taskbar custom mode options for more logical order 2025-12-27 17:01:39 +01:00
Raphire
fbe33ea4b8 Cleanup 2025-12-27 16:53:20 +01:00
Raphire
86bb79cefa Add option re-add all common folders under 'This PC' in File Explorer 2025-12-27 16:44:05 +01:00
Raphire
6d6d4cc7c6 Add option re-add all common folders under 'This PC' in File Explorer 2025-12-27 16:43:28 +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
11 changed files with 1082 additions and 395 deletions

1
.gitignore vendored
View File

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

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

@@ -36,6 +36,7 @@ File Explorer
- Change the default location that File Explorer opens to.
- Show hidden files, folders and drives.
- Show file extensions for known file types.
- Add all common folders (Desktop, Downloads, Etc.) back to 'This PC' in File Explorer. (W11 only)
- Hide the Home or Gallery section from the File Explorer navigation pane. (W11 only)
- Hide the 3D objects, music or OneDrive folder from the File Explorer navigation pane. (W10 only)
- Hide duplicate removable drive entries from the File Explorer navigation pane.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 29 KiB

261
DefaultSettings.json Normal file
View File

@@ -0,0 +1,261 @@
{
"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": "AddFoldersToThisPC",
"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
}
]
}

14
Get.ps1
View File

@@ -4,12 +4,14 @@ param (
[switch]$Sysprep,
[string]$LogPath,
[string]$User,
[switch]$NoRestartExplorer,
[switch]$CreateRestorePoint,
[switch]$RunAppsListGenerator, [switch]$RunAppConfigurator,
[switch]$RunDefaults,
[switch]$RunDefaultsLite,
[switch]$RunSavedSettings,
[switch]$RemoveApps,
[string]$Apps,
[switch]$RemoveApps,
[switch]$RemoveAppsCustom,
[switch]$RemoveGamingApps,
[switch]$RemoveCommApps,
@@ -65,7 +67,7 @@ param (
[switch]$ExplorerToThisPC,
[switch]$ExplorerToDownloads,
[switch]$ExplorerToOneDrive,
[switch]$NoRestartExplorer,
[switch]$AddFoldersToThisPC,
[switch]$DisableOnedrive, [switch]$HideOnedrive,
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
[switch]$DisableMusic, [switch]$HideMusic,
@@ -103,11 +105,11 @@ catch {
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 ""
@@ -143,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

@@ -20,7 +20,7 @@
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)
@@ -129,6 +129,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo
- Change the default location that File Explorer opens to.
- Show hidden files, folders and drives.
- Show file extensions for known file types.
- Add all common folders (Desktop, Downloads, etc.) back to 'This PC' in File Explorer. (W11 only)
- Hide the Home or Gallery section from the File Explorer navigation pane. (W11 only)
- Hide the 3D objects, music or OneDrive folder from the File Explorer navigation pane. (W10 only)
- Hide duplicate removable drive entries from the File Explorer navigation pane, so only the entry under 'This PC' remains.

View File

@@ -0,0 +1,46 @@
Windows Registry Editor Version 5.00
; Desktop
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
"HideIfEnabled"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
"HiddenByDefault"=dword:00000000
; Documents
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
"HideIfEnabled"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
"HiddenByDefault"=dword:00000000
; Downloads
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
"HideIfEnabled"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
"HiddenByDefault"=dword:00000000
; Music
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
"HideIfEnabled"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
"HiddenByDefault"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
"HiddenByDefault"=dword:00000000
; Pictures
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
"HideIfEnabled"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
"HiddenByDefault"=dword:00000000
; Videos
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
"HideIfEnabled"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
"HiddenByDefault"=dword:00000000

View File

@@ -0,0 +1,46 @@
Windows Registry Editor Version 5.00
; Desktop
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
"HideIfEnabled"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
"HiddenByDefault"=dword:00000000
; Documents
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
"HideIfEnabled"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
"HiddenByDefault"=dword:00000000
; Downloads
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
"HideIfEnabled"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
"HiddenByDefault"=dword:00000000
; Music
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
"HideIfEnabled"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
"HiddenByDefault"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
"HiddenByDefault"=dword:00000000
; Pictures
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
"HideIfEnabled"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
"HiddenByDefault"=dword:00000000
; Videos
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
"HideIfEnabled"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
"HiddenByDefault"=dword:00000000

View File

@@ -0,0 +1,46 @@
Windows Registry Editor Version 5.00
; Desktop
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
"HideIfEnabled"=dword:022ab9b9
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
"HiddenByDefault"=dword:00000001
; Documents
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
"HideIfEnabled"=dword:022ab9b9
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
"HiddenByDefault"=dword:00000001
; Downloads
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
"HideIfEnabled"=dword:022ab9b9
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
"HiddenByDefault"=dword:00000001
; Music
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
"HideIfEnabled"=dword:022ab9b9
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
"HiddenByDefault"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
"HiddenByDefault"=dword:00000001
; Pictures
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
"HideIfEnabled"=dword:022ab9b9
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
"HiddenByDefault"=dword:00000001
; Videos
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
"HideIfEnabled"=dword:022ab9b9
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
"HiddenByDefault"=dword:00000001

File diff suppressed because it is too large Load Diff