mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 02:56:17 +00:00
Multiple changes & additions
* Hiding widgets icon now also fully disables the widgets service * Added new option to align taskbar icons to the left in windows 11 * Custom configuration is made more readable by spacing out the options * Option to hide folders now only shows on windows 10, no longer needed on windows 11
This commit is contained in:
26
README.md
26
README.md
@@ -15,7 +15,8 @@ You can pick and choose exactly which modifications you want the script to make,
|
|||||||
- 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 to the windows default)
|
- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper to the windows default)
|
||||||
- Disable tips, tricks and suggestions in the startmenu and settings, and sync provider ads in windows explorer.
|
- Disable tips, tricks and suggestions in the startmenu and settings, and sync provider ads in windows explorer.
|
||||||
- Hide the Chat (meet now) & Widget (news and interests) icons from the taskbar.
|
- Disable the widget service & hide the widget (news and interests) icon on the taskbar.
|
||||||
|
- Hide the Chat (meet now) icon from the taskbar.
|
||||||
- Hide the 3D objects folder under 'This pc' in windows explorer.
|
- Hide the 3D objects folder under 'This pc' in windows explorer.
|
||||||
- Disable the 'Include in library' from context menu.
|
- Disable the 'Include in library' from context menu.
|
||||||
- Disable the 'Give access to' from context menu.
|
- Disable the 'Give access to' from context menu.
|
||||||
@@ -28,7 +29,8 @@ You can pick and choose exactly which modifications you want the script to make,
|
|||||||
- Disable bing search, bing AI & cortana in windows search.
|
- Disable bing search, bing AI & cortana in windows search.
|
||||||
- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper to the windows default)
|
- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper to the windows default)
|
||||||
- Disable tips, tricks and suggestions in the startmenu and settings, and sync provider ads in windows explorer.
|
- Disable tips, tricks and suggestions in the startmenu and settings, and sync provider ads in windows explorer.
|
||||||
- Hide the Chat & Widget icons from the taskbar.
|
- Disable the widget service & hide the widget icon on the taskbar.
|
||||||
|
- Hide the Chat icon from the taskbar.
|
||||||
|
|
||||||
## The 'Custom' option allows you to customize the script to your exact needs
|
## The 'Custom' option allows you to customize the script to your exact needs
|
||||||
A full list of what changes this script can make can be found [here](https://github.com/Raphire/Win10Debloat#improve-your-windows-1011-experience).
|
A full list of what changes this script can make can be found [here](https://github.com/Raphire/Win10Debloat#improve-your-windows-1011-experience).
|
||||||
@@ -67,8 +69,9 @@ To run the script without any user input, simply add parameters at the end, exam
|
|||||||
| -DisableBing | Disable bing search, bing AI & cortana in windows search. |
|
| -DisableBing | Disable bing search, bing AI & cortana in windows search. |
|
||||||
| -DisableLockscreenTips | Disable tips & tricks on the lockscreen. |
|
| -DisableLockscreenTips | Disable tips & tricks on the lockscreen. |
|
||||||
| -DisableSuggestions | Disable tips, tricks and suggestions in the startmenu and settings, and sync provider ads in windows explorer. |
|
| -DisableSuggestions | Disable tips, tricks and suggestions in the startmenu and settings, and sync provider ads in windows explorer. |
|
||||||
|
| -TaskbarAlignLeft | Align taskbar icons to the left. (Windows 11 only) |
|
||||||
|
| -DisableWidgets | Disable the widget service & hide the widget (news and interests) icon on the taskbar. |
|
||||||
| -DisableChat | Hide the chat (meet now) icon on the taskbar. |
|
| -DisableChat | Hide the chat (meet now) icon on the taskbar. |
|
||||||
| -DisableWidgets | Hide the widget (news and interests) icon on the taskbar. |
|
|
||||||
| -DisableOnedrive | Hide the onedrive folder in the windows explorer sidepanel. |
|
| -DisableOnedrive | Hide the onedrive folder in the windows explorer sidepanel. |
|
||||||
| -Disable3dObjects | Hide the 3D objects folder under 'This pc' in windows explorer. |
|
| -Disable3dObjects | Hide the 3D objects folder under 'This pc' in windows explorer. |
|
||||||
| -DisableMusic | Hide the music folder under 'This pc' in windows explorer. |
|
| -DisableMusic | Hide the music folder under 'This pc' in windows explorer. |
|
||||||
@@ -153,19 +156,20 @@ By default, this script only removes preinstalled apps that most people are unli
|
|||||||
|
|
||||||
## Improve your Windows 10/11 experience
|
## Improve your Windows 10/11 experience
|
||||||
|
|
||||||
This script can also make various changes to declutter & improve your overall windows 10/11 experience, and protect your privacy. These changes include:
|
This script can also make various changes to declutter & improve your overall windows 10/11 experience, and protect your privacy. Such as:
|
||||||
|
|
||||||
- Disable telemetry, diagnostic data & targeted ads.
|
- Disable telemetry, diagnostic data & targeted ads.
|
||||||
- Disable bing search, bing AI & cortana in windows search.
|
- Disable bing search, bing AI & cortana in windows search.
|
||||||
- Disable tips & tricks on the lockscreen. (This changes your lockscreen wallpaper to the windows default)
|
- Disable tips & tricks on the lockscreen. (This changes your lockscreen wallpaper to the windows default)
|
||||||
- Disable tips, tricks and suggestions in the startmenu and settings, and sync provider ads in windows explorer.
|
- Disable tips, tricks and suggestions in the startmenu and settings, and sync provider ads in windows explorer.
|
||||||
|
- Align taskbar icons to the left. (Windows 11 only)
|
||||||
|
- Disable the widget service & hide the widget (news and interests) icon on the taskbar.
|
||||||
- Hide the chat (meet now) icon on the taskbar.
|
- Hide the chat (meet now) icon on the taskbar.
|
||||||
- Hide the widget (news and interests) icon on the taskbar.
|
- Hide the onedrive folder in the windows explorer sidepanel. (Windows 10 only)
|
||||||
- Hide the onedrive folder in the windows explorer sidepanel.
|
- Hide the 3D objects folder under 'This pc' in windows explorer. (Windows 10 only)
|
||||||
- Hide the 3D objects folder under 'This pc' in windows explorer.
|
- Hide the music folder under 'This pc' in windows explorer. (Windows 10 only)
|
||||||
- Hide the music folder under 'This pc' in windows explorer.
|
- Disable the 'Include in library' option in the context menu. (Windows 10 only)
|
||||||
- Disable the 'Include in library' option in the context menu.
|
- Disable the 'Give access to' option in the context menu. (Windows 10 only)
|
||||||
- Disable the 'Give access to' option in the context menu.
|
- Disable the 'Share' from context menu. (Windows 10 only)
|
||||||
- Disable the 'Share' from context menu. (Does not remove the onedrive share option)
|
|
||||||
|
|
||||||
All of these changes can be individually reverted with the registry files that are included in the 'Regfiles' folder.
|
All of these changes can be individually reverted with the registry files that are included in the 'Regfiles' folder.
|
||||||
BIN
Regfiles/Align_Taskbar_Center.reg
Normal file
BIN
Regfiles/Align_Taskbar_Center.reg
Normal file
Binary file not shown.
BIN
Regfiles/Align_Taskbar_Left.reg
Normal file
BIN
Regfiles/Align_Taskbar_Left.reg
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -12,8 +12,9 @@ param
|
|||||||
[Parameter(ValueFromPipeline = $true)][switch]$DisableLockscreenTips,
|
[Parameter(ValueFromPipeline = $true)][switch]$DisableLockscreenTips,
|
||||||
[Parameter(ValueFromPipeline = $true)][switch]$DisableWindowsSuggestions,
|
[Parameter(ValueFromPipeline = $true)][switch]$DisableWindowsSuggestions,
|
||||||
[Parameter(ValueFromPipeline = $true)][switch]$DisableSuggestions,
|
[Parameter(ValueFromPipeline = $true)][switch]$DisableSuggestions,
|
||||||
[Parameter(ValueFromPipeline = $true)][switch]$DisableChat,
|
|
||||||
[Parameter(ValueFromPipeline = $true)][switch]$DisableWidgets,
|
[Parameter(ValueFromPipeline = $true)][switch]$DisableWidgets,
|
||||||
|
[Parameter(ValueFromPipeline = $true)][switch]$DisableChat,
|
||||||
|
[Parameter(ValueFromPipeline = $true)][switch]$TaskbarAlignLeft,
|
||||||
[Parameter(ValueFromPipeline = $true)][switch]$DisableOnedrive,
|
[Parameter(ValueFromPipeline = $true)][switch]$DisableOnedrive,
|
||||||
[Parameter(ValueFromPipeline = $true)][switch]$Disable3dObjects,
|
[Parameter(ValueFromPipeline = $true)][switch]$Disable3dObjects,
|
||||||
[Parameter(ValueFromPipeline = $true)][switch]$DisableMusic,
|
[Parameter(ValueFromPipeline = $true)][switch]$DisableMusic,
|
||||||
@@ -167,7 +168,8 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
Write-Output "- Disable bing search & cortana in windows search."
|
Write-Output "- Disable bing search & cortana in windows search."
|
||||||
Write-Output "- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper to the default)"
|
Write-Output "- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper to the default)"
|
||||||
Write-Output "- Disable tips, tricks and suggestions in the startmenu and settings, and ads in windows explorer."
|
Write-Output "- Disable tips, tricks and suggestions in the startmenu and settings, and ads in windows explorer."
|
||||||
Write-Output "- Hide the Chat (meet now) & Widget (news and interests) icons from the taskbar."
|
Write-Output "- Disable the widget service & hide the widget (news and interests) icon on the taskbar. "
|
||||||
|
Write-Output "- Hide the Chat (meet now) icon from the taskbar."
|
||||||
Write-Output "- Hide the 3D objects folder under 'This pc' in windows explorer."
|
Write-Output "- Hide the 3D objects folder under 'This pc' in windows explorer."
|
||||||
Write-Output "- Disable the 'Include in library' from context menu."
|
Write-Output "- Disable the 'Include in library' from context menu."
|
||||||
Write-Output "- Disable the 'Give access to' from context menu."
|
Write-Output "- Disable the 'Give access to' from context menu."
|
||||||
@@ -181,7 +183,8 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
Write-Output "- Disable bing search, bing AI & cortana in windows search."
|
Write-Output "- Disable bing search, bing AI & cortana in windows search."
|
||||||
Write-Output "- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper to the default)"
|
Write-Output "- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper to the default)"
|
||||||
Write-Output "- Disable tips, tricks and suggestions in the startmenu and settings, and ads in windows explorer."
|
Write-Output "- Disable tips, tricks and suggestions in the startmenu and settings, and ads in windows explorer."
|
||||||
Write-Output "- Hide the Chat & Widget icons from the taskbar."
|
Write-Output "- Disable the widget service & hide the widget icon on the taskbar."
|
||||||
|
Write-Output "- Hide the Chat icon from the taskbar."
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
Write-Output "Press any key to go back..."
|
Write-Output "Press any key to go back..."
|
||||||
@@ -235,44 +238,78 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
$PSBoundParameters.Add('RemoveApps', $RemoveApps)
|
$PSBoundParameters.Add('RemoveApps', $RemoveApps)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Disable telemetry, diagnostic data and targeted ads? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Disable telemetry, diagnostic data and targeted ads? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('DisableTelemetry', $DisableTelemetry)
|
$PSBoundParameters.Add('DisableTelemetry', $DisableTelemetry)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Disable bing search, bing AI & cortana in windows search? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Disable bing search, bing AI & cortana in windows search? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('DisableBing', $DisableBing)
|
$PSBoundParameters.Add('DisableBing', $DisableBing)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Disable tips & tricks on the lockscreen? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Disable tips & tricks on the lockscreen? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('DisableLockscreenTips', $DisableLockscreenTips)
|
$PSBoundParameters.Add('DisableLockscreenTips', $DisableLockscreenTips)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Disable tips, tricks and suggestions in the startmenu and settings, and ads in windows explorer? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Disable tips, tricks and suggestions in the startmenu and settings, and ads in windows explorer? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('DisableSuggestions', $DisableSuggestions)
|
$PSBoundParameters.Add('DisableSuggestions', $DisableSuggestions)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Do you want to hide any icons from the taskbar? (y/n)" ) -eq 'y') {
|
Write-Output ""
|
||||||
if ($( Read-Host -Prompt "Hide the chat (meet now) icon on the taskbar? (y/n)" ) -eq 'y') {
|
|
||||||
$PSBoundParameters.Add('DisableChat', $DisableChat)
|
if ($( Read-Host -Prompt "Do you want to make any changes to the taskbar? (y/n)" ) -eq 'y') {
|
||||||
|
# Only show option for taskbar alignment in windows 11
|
||||||
|
if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 11%'"){
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt " Align taskbar buttons to left side? (y/n)" ) -eq 'y') {
|
||||||
|
$PSBoundParameters.Add('TaskbarAlignLeft', $TaskbarAlignLeft)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Hide the widget (news and interests) icon on the taskbar? (y/n)" ) -eq 'y') {
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt " Disable the widgets service and hide the widget (news and interests) icon on the taskbar? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('DisableWidgets', $DisableWidgets)
|
$PSBoundParameters.Add('DisableWidgets', $DisableWidgets)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Do you want to hide any folders from the windows explorer sidepanel? (y/n)" ) -eq 'y') {
|
Write-Output ""
|
||||||
if ($( Read-Host -Prompt "Hide the onedrive folder in windows explorer? (y/n)" ) -eq 'y') {
|
|
||||||
$PSBoundParameters.Add('DisableOnedrive', $DisableOnedrive)
|
if ($( Read-Host -Prompt " Hide the chat (meet now) icon on the taskbar? (y/n)" ) -eq 'y') {
|
||||||
|
$PSBoundParameters.Add('DisableChat', $DisableChat)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Only show option for disabling these specific folders in windows 10
|
# Only show option for disabling these specific folders in windows 10
|
||||||
if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 10%'"){
|
if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 10%'"){
|
||||||
if ($( Read-Host -Prompt "Hide the 3D objects folder in windows explorer? (y/n)" ) -eq 'y') {
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt "Do you want to hide any folders from the windows explorer sidepanel? (y/n)" ) -eq 'y') {
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt " Hide the onedrive folder in windows explorer? (y/n)" ) -eq 'y') {
|
||||||
|
$PSBoundParameters.Add('DisableOnedrive', $DisableOnedrive)
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt " Hide the 3D objects folder in windows explorer? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('Disable3dObjects', $Disable3dObjects)
|
$PSBoundParameters.Add('Disable3dObjects', $Disable3dObjects)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Hide the music folder in windows explorer? (y/n)" ) -eq 'y') {
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt " Hide the music folder in windows explorer? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('DisableMusic', $DisableMusic)
|
$PSBoundParameters.Add('DisableMusic', $DisableMusic)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -280,16 +317,26 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
|
|
||||||
# Only show option for disabling context menu items in windows 10
|
# Only show option for disabling context menu items in windows 10
|
||||||
if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 10%'"){
|
if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 10%'"){
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Do you want to disable any context menu options? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Do you want to disable any context menu options? (y/n)" ) -eq 'y') {
|
||||||
if ($( Read-Host -Prompt "Disable the 'Include in library' option in the context menu? (y/n)" ) -eq 'y') {
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt " Disable the 'Include in library' option in the context menu? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('DisableIncludeInLibrary', $DisableIncludeInLibrary)
|
$PSBoundParameters.Add('DisableIncludeInLibrary', $DisableIncludeInLibrary)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Disable the 'Give access to' option in the context menu? (y/n)" ) -eq 'y') {
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt " Disable the 'Give access to' option in the context menu? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('DisableGiveAccessTo', $DisableGiveAccessTo)
|
$PSBoundParameters.Add('DisableGiveAccessTo', $DisableGiveAccessTo)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Disable the 'Share' option in the context menu? (y/n)" ) -eq 'y') {
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt " Disable the 'Share' option in the context menu? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('DisableShare', $DisableShare)
|
$PSBoundParameters.Add('DisableShare', $DisableShare)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -329,11 +376,14 @@ switch ($PSBoundParameters.Keys) {
|
|||||||
'DisableSuggestions' {
|
'DisableSuggestions' {
|
||||||
RegImport "> Disabling tips, tricks and suggestions in the startmenu and settings, and ads in windows explorer..." $PSScriptRoot\Regfiles\Disable_Windows_Suggestions.reg
|
RegImport "> Disabling tips, tricks and suggestions in the startmenu and settings, and ads in windows explorer..." $PSScriptRoot\Regfiles\Disable_Windows_Suggestions.reg
|
||||||
}
|
}
|
||||||
'DisableChat' {
|
'TaskbarAlignLeft' {
|
||||||
RegImport "> Hiding the chat icon on the taskbar..." $PSScriptRoot\Regfiles\Disable_Chat_Taskbar.reg
|
RegImport "> Aligning taskbar buttons to the left..." $PSScriptRoot\Regfiles\Align_Taskbar_Left.reg
|
||||||
}
|
}
|
||||||
'DisableWidgets' {
|
'DisableWidgets' {
|
||||||
RegImport "> Hiding the widget icon on the taskbar..." $PSScriptRoot\Regfiles\Disable_Widgets_Taskbar.reg
|
RegImport "> Disabling the widget service and hiding the widget icon on the taskbar..." $PSScriptRoot\Regfiles\Disable_Widgets_Taskbar.reg
|
||||||
|
}
|
||||||
|
'DisableChat' {
|
||||||
|
RegImport "> Hiding the chat icon on the taskbar..." $PSScriptRoot\Regfiles\Disable_Chat_Taskbar.reg
|
||||||
}
|
}
|
||||||
'DisableOnedrive' {
|
'DisableOnedrive' {
|
||||||
RegImport "> Hiding the onedrive folder in windows explorer..." $PSScriptRoot\Regfiles\Hide_Onedrive_Folder.reg
|
RegImport "> Hiding the onedrive folder in windows explorer..." $PSScriptRoot\Regfiles\Hide_Onedrive_Folder.reg
|
||||||
@@ -355,6 +405,7 @@ switch ($PSBoundParameters.Keys) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
Write-Output "Script completed! Please restart your PC to make sure all changes are properly applied."
|
Write-Output "Script completed! Please restart your PC to make sure all changes are properly applied."
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|||||||
Reference in New Issue
Block a user