diff --git a/README.md b/README.md index b2e45db..d4749d1 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,9 @@ You can pick and choose exactly which modifications you want the script to make, - Disable telemetry, diagnostic data & targeted ads. - 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 and suggestions in the startmenu and settings, and sync provider ads in windows explorer. -- Disable the widget service & hide the widget (news and interests) icon on the taskbar. +- Disable tips, tricks and suggestions in the start menu and settings, and sync provider ads in windows explorer. +- Show file extensions for known file types. +- Disable the widget service & hide the widget (news and interests) icon from the taskbar. - Hide the Chat (meet now) icon from the taskbar. - Hide the 3D objects folder under 'This pc' in windows explorer. (Windows 10 only) @@ -55,10 +56,16 @@ To run the script without any user input, simply add parameters at the end, exam | -DisableTelemetry | Disable telemetry, diagnostic data & targeted ads. | | -DisableBing | Disable bing search, bing AI & cortana in windows search. | | -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 start menu and settings, and sync provider ads in windows explorer. | +| -ShowHiddenFolders | Show hidden files, folders and drives. | +| -ShowKnownFileExt | Show file extensions for known file types. | | -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. | -| -HideChat | Hide the chat (meet now) icon on the taskbar. | +| -HideSearchTb | Hide search icon from the taskbar. (Windows 11 only) | +| -ShowSearchIconTb | Show search icon on the taskbar. (Windows 11 only) | +| -ShowSearchLabelTb | Show search icon with label on the taskbar. (Windows 11 only) | +| -ShowSearchBoxTb | Show search box on the taskbar. (Windows 11 only) | +| -DisableWidgets | Disable the widget service & hide the widget (news and interests) icon from the taskbar. | +| -HideChat | Hide the chat (meet now) icon from the taskbar. | | -HideOnedrive | Hide the onedrive folder in the windows explorer sidepanel. | | -Hide3dObjects | Hide the 3D objects folder under 'This pc' in windows explorer. | | -HideMusic | Hide the music folder under 'This pc' in windows explorer. | @@ -200,12 +207,14 @@ This script can also make various changes to declutter & improve your overall wi - Disable telemetry, diagnostic data & targeted ads. - 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 and suggestions in the startmenu and settings, and sync provider ads in windows explorer. +- Disable tips, tricks and suggestions in the start menu and settings, and sync provider ads in windows explorer. +- Show hidden files, folders and drives. +- Show file extensions for known file types. - 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 onedrive folder in the windows explorer sidepanel. (Windows 10 only) -- Hide the 3D objects and/or music folders under 'This pc' in windows explorer. (Windows 10 only) +- Hide or change the search icon/box on the taskbar. (Windows 11 only) +- Disable the widget service & hide the widget (news and interests) icon from the taskbar. +- Hide the chat (meet now) icon from the taskbar. +- 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) All of these changes can be individually reverted with the registry files that are included in the 'Regfiles' folder. \ No newline at end of file diff --git a/Regfiles/Disable_Windows_Suggestions.reg b/Regfiles/Disable_Windows_Suggestions.reg index 9456ada..6861166 100644 Binary files a/Regfiles/Disable_Windows_Suggestions.reg and b/Regfiles/Disable_Windows_Suggestions.reg differ diff --git a/Regfiles/Hide_Search_Taskbar.reg b/Regfiles/Hide_Search_Taskbar.reg new file mode 100644 index 0000000..96c30c5 Binary files /dev/null and b/Regfiles/Hide_Search_Taskbar.reg differ diff --git a/Regfiles/Show_Extensions_For_Known_File_Types.reg b/Regfiles/Show_Extensions_For_Known_File_Types.reg new file mode 100644 index 0000000..b4e5a2c Binary files /dev/null and b/Regfiles/Show_Extensions_For_Known_File_Types.reg differ diff --git a/Regfiles/Show_Hidden_Folders.reg b/Regfiles/Show_Hidden_Folders.reg new file mode 100644 index 0000000..ae2c739 Binary files /dev/null and b/Regfiles/Show_Hidden_Folders.reg differ diff --git a/Regfiles/Show_Search_Box.reg b/Regfiles/Show_Search_Box.reg new file mode 100644 index 0000000..1ea5d3c Binary files /dev/null and b/Regfiles/Show_Search_Box.reg differ diff --git a/Regfiles/Show_Search_Icon.reg b/Regfiles/Show_Search_Icon.reg new file mode 100644 index 0000000..fa70f19 Binary files /dev/null and b/Regfiles/Show_Search_Icon.reg differ diff --git a/Regfiles/Show_Search_Icon_And_Label.reg b/Regfiles/Show_Search_Icon_And_Label.reg new file mode 100644 index 0000000..16c6bf5 Binary files /dev/null and b/Regfiles/Show_Search_Icon_And_Label.reg differ diff --git a/Regfiles/Align_Taskbar_Center.reg b/Regfiles/Undo/Align_Taskbar_Center.reg similarity index 100% rename from Regfiles/Align_Taskbar_Center.reg rename to Regfiles/Undo/Align_Taskbar_Center.reg diff --git a/Regfiles/Enable_Bing_Cortana_In_Search.reg b/Regfiles/Undo/Enable_Bing_Cortana_In_Search.reg similarity index 100% rename from Regfiles/Enable_Bing_Cortana_In_Search.reg rename to Regfiles/Undo/Enable_Bing_Cortana_In_Search.reg diff --git a/Regfiles/Enable_Chat_Taskbar.reg b/Regfiles/Undo/Enable_Chat_Taskbar.reg similarity index 100% rename from Regfiles/Enable_Chat_Taskbar.reg rename to Regfiles/Undo/Enable_Chat_Taskbar.reg diff --git a/Regfiles/Enable_Give_access_to_context_menu.reg b/Regfiles/Undo/Enable_Give_access_to_context_menu.reg similarity index 100% rename from Regfiles/Enable_Give_access_to_context_menu.reg rename to Regfiles/Undo/Enable_Give_access_to_context_menu.reg diff --git a/Regfiles/Enable_Include_in_library_to_context_menu.reg b/Regfiles/Undo/Enable_Include_in_library_to_context_menu.reg similarity index 100% rename from Regfiles/Enable_Include_in_library_to_context_menu.reg rename to Regfiles/Undo/Enable_Include_in_library_to_context_menu.reg diff --git a/Regfiles/Enable_Lockscreen_Tips.reg b/Regfiles/Undo/Enable_Lockscreen_Tips.reg similarity index 100% rename from Regfiles/Enable_Lockscreen_Tips.reg rename to Regfiles/Undo/Enable_Lockscreen_Tips.reg diff --git a/Regfiles/Enable_Share_to_context_menu.reg b/Regfiles/Undo/Enable_Share_to_context_menu.reg similarity index 100% rename from Regfiles/Enable_Share_to_context_menu.reg rename to Regfiles/Undo/Enable_Share_to_context_menu.reg diff --git a/Regfiles/Enable_Telemetry.reg b/Regfiles/Undo/Enable_Telemetry.reg similarity index 100% rename from Regfiles/Enable_Telemetry.reg rename to Regfiles/Undo/Enable_Telemetry.reg diff --git a/Regfiles/Enable_Widgets_Taskbar.reg b/Regfiles/Undo/Enable_Widgets_Taskbar.reg similarity index 100% rename from Regfiles/Enable_Widgets_Taskbar.reg rename to Regfiles/Undo/Enable_Widgets_Taskbar.reg diff --git a/Regfiles/Enable_Windows_Suggestions.reg b/Regfiles/Undo/Enable_Windows_Suggestions.reg similarity index 79% rename from Regfiles/Enable_Windows_Suggestions.reg rename to Regfiles/Undo/Enable_Windows_Suggestions.reg index 6d6bd4e..4e56713 100644 Binary files a/Regfiles/Enable_Windows_Suggestions.reg and b/Regfiles/Undo/Enable_Windows_Suggestions.reg differ diff --git a/Regfiles/Undo/Hide_Extensions_For_Known_File_Types.reg b/Regfiles/Undo/Hide_Extensions_For_Known_File_Types.reg new file mode 100644 index 0000000..48b6178 Binary files /dev/null and b/Regfiles/Undo/Hide_Extensions_For_Known_File_Types.reg differ diff --git a/Regfiles/Undo/Hide_Hidden_Folders.reg b/Regfiles/Undo/Hide_Hidden_Folders.reg new file mode 100644 index 0000000..b83cba3 Binary files /dev/null and b/Regfiles/Undo/Hide_Hidden_Folders.reg differ diff --git a/Regfiles/Show_3D_Objects_Folder.reg b/Regfiles/Undo/Show_3D_Objects_Folder.reg similarity index 100% rename from Regfiles/Show_3D_Objects_Folder.reg rename to Regfiles/Undo/Show_3D_Objects_Folder.reg diff --git a/Regfiles/Show_Music_Folder.reg b/Regfiles/Undo/Show_Music_Folder.reg similarity index 100% rename from Regfiles/Show_Music_Folder.reg rename to Regfiles/Undo/Show_Music_Folder.reg diff --git a/Regfiles/Show_Onedrive_folder.reg b/Regfiles/Undo/Show_Onedrive_folder.reg similarity index 100% rename from Regfiles/Show_Onedrive_folder.reg rename to Regfiles/Undo/Show_Onedrive_folder.reg diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 3554410..88372b2 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -13,11 +13,17 @@ param [Parameter(ValueFromPipeline = $true)][switch]$DisableLockscreenTips, [Parameter(ValueFromPipeline = $true)][switch]$DisableWindowsSuggestions, [Parameter(ValueFromPipeline = $true)][switch]$DisableSuggestions, + [Parameter(ValueFromPipeline = $true)][switch]$ShowHiddenFolders, + [Parameter(ValueFromPipeline = $true)][switch]$ShowKnownFileExt, + [Parameter(ValueFromPipeline = $true)][switch]$TaskbarAlignLeft, + [Parameter(ValueFromPipeline = $true)][switch]$HideSearchTb, + [Parameter(ValueFromPipeline = $true)][switch]$ShowSearchIconTb, + [Parameter(ValueFromPipeline = $true)][switch]$ShowSearchLabelTb, + [Parameter(ValueFromPipeline = $true)][switch]$ShowSearchBoxTb, [Parameter(ValueFromPipeline = $true)][switch]$DisableWidgets, [Parameter(ValueFromPipeline = $true)][switch]$HideWidgets, [Parameter(ValueFromPipeline = $true)][switch]$DisableChat, [Parameter(ValueFromPipeline = $true)][switch]$HideChat, - [Parameter(ValueFromPipeline = $true)][switch]$TaskbarAlignLeft, [Parameter(ValueFromPipeline = $true)][switch]$DisableOnedrive, [Parameter(ValueFromPipeline = $true)][switch]$HideOnedrive, [Parameter(ValueFromPipeline = $true)][switch]$Disable3dObjects, @@ -102,27 +108,35 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ( Write-Output "painstakingly go through all the settings yourself, or removing apps one by one!" Write-Output "" Write-Output "-------------------------------------------------------------------------------------------" - Write-Output " Windows 10 default settings will:" + Write-Output " The default settings will" Write-Output "-------------------------------------------------------------------------------------------" - Write-Output "- Remove bloatware apps, full list can be found on github. (github.com/raphire/win11debloat)" + Write-Output "- Remove bloatware apps, the list can be found in the 'Appslist.txt' file." Write-Output "- Disable telemetry, diagnostic data & targeted ads." 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 and suggestions in the startmenu and settings, and ads in windows explorer." - Write-Output "- Disable the widget service & hide the widget (news and interests) icon on the taskbar. " + Write-Output "- Disable tips, tricks and suggestions in the start menu and settings, and ads in windows explorer." + Write-Output "- Show file extensions for known file types." + Write-Output "- Disable the widget service & hide the widget (news and interests) icon from 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 in windows explorer. (Windows 10 only)" Write-Output "" Write-Output "-------------------------------------------------------------------------------------------" - Write-Output " Windows 11 default settings will:" + Write-Output " The custom mode has more options, in custom mode you can" Write-Output "-------------------------------------------------------------------------------------------" - Write-Output "- Remove bloatware apps, full list can be found on github. (github.com/raphire/win11debloat)" + Write-Output "- Remove bloatware apps, the list can be found in the 'Appslist.txt' file." + Write-Output "- Remove gaming-related apps, the list can be found in the 'GamingAppslist.txt' file." Write-Output "- Disable telemetry, diagnostic data & targeted ads." - Write-Output "- Disable bing search, bing AI & 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 and suggestions in the startmenu and settings, and ads in windows explorer." - Write-Output "- Disable the widget service & hide the widget icon on the taskbar." - Write-Output "- Hide the Chat icon from the taskbar." + Write-Output "- Disable tips, tricks and suggestions in the start menu and settings, and ads in windows explorer." + Write-Output "- Show hidden files, folders and drives." + Write-Output "- Show file extensions for known file types." + Write-Output "- Align taskbar icons to the left. (Windows 11 only)" + Write-Output "- Hide or change the search icon/box on the taskbar. (Windows 11 only)" + Write-Output "- Disable the widget service & hide the widget (news and interests) icon from the taskbar. " + Write-Output "- Hide the Chat (meet now) icon from the taskbar." + Write-Output "- Hide the 3D objects, music or onedrive folders in windows explorer. (Windows 10 only)" + Write-Output "- Hide the 'Include in library', 'Give access to' and 'Share' options in the context menu. (Windows 10 only)" Write-Output "" Write-Output "" Write-Output "Press any key to go back..." @@ -144,6 +158,7 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ( $PSBoundParameters.Add('DisableBing', $DisableBing) $PSBoundParameters.Add('DisableLockscreenTips', $DisableLockscreenTips) $PSBoundParameters.Add('DisableSuggestions', $DisableSuggestions) + $PSBoundParameters.Add('ShowKnownFileExt', $ShowKnownFileExt) $PSBoundParameters.Add('DisableWidgets', $DisableWidgets) $PSBoundParameters.Add('HideChat', $HideChat) @@ -183,49 +198,87 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ( Write-Output "" + if ($( Read-Host -Prompt "Disable tips, tricks and suggestions in the start menu, settings and windows explorer? (y/n)" ) -eq 'y') { + $PSBoundParameters.Add('DisableSuggestions', $DisableSuggestions) + } + + Write-Output "" + if ($( Read-Host -Prompt "Disable tips & tricks on the lockscreen? (y/n)" ) -eq 'y') { $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') { - $PSBoundParameters.Add('DisableSuggestions', $DisableSuggestions) - } - - Write-Output "" - - if ($( Read-Host -Prompt "Do you want to make any changes to the taskbar? (y/n)" ) -eq 'y') { + if ($( Read-Host -Prompt "Do you want to make any changes to the taskbar and start menu? (y/n)" ) -eq 'y') { # Only show option for taskbar alignment for windows 11 users 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) } + + Do { + Write-Output "" + Write-Output " Options:" + Write-Output " (0) No change" + Write-Output " (1) Hide search icon from the taskbar" + Write-Output " (2) Show search icon on the taskbar" + Write-Output " (3) Show search icon with label on the taskbar" + Write-Output " (4) Show search box on the taskbar" + $TbSearchInput = Read-Host " Hide or change the search icon on the taskbar? (0/1/2/3/4)" + } + while ($TbSearchInput -ne 'n' -and $TbSearchInput -ne '0' -and $TbSearchInput -ne '1' -and $TbSearchInput -ne '2' -and $TbSearchInput -ne '3' -and $TbSearchInput -ne '4') + + # Select correct taskbar search option based on user input + switch ($TbSearchInput) { + '1' { + $PSBoundParameters.Add('HideSearchTb', $HideSearchTb) + } + '2' { + $PSBoundParameters.Add('ShowSearchIconTb', $ShowSearchIconTb) + } + '3' { + $PSBoundParameters.Add('ShowSearchLabelTb', $ShowSearchLabelTb) + } + '4' { + $PSBoundParameters.Add('ShowSearchBoxTb', $ShowSearchBoxTb) + } + + } } 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') { + if ($( Read-Host -Prompt " Disable the widgets service and hide the widget (news and interests) icon from the taskbar? (y/n)" ) -eq 'y') { $PSBoundParameters.Add('DisableWidgets', $DisableWidgets) } Write-Output "" - if ($( Read-Host -Prompt " Hide the chat (meet now) icon on 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) } } + if ($( Read-Host -Prompt "Do you want to make any changes to windows explorer? (y/n)" ) -eq 'y') { + Write-Output "" + + if ($( Read-Host -Prompt " Show hidden files, folders and drives? (y/n)" ) -eq 'y') { + $PSBoundParameters.Add('ShowHiddenFolders', $ShowHiddenFolders) + } + + if ($( Read-Host -Prompt " Show file extensions for known file types? (y/n)" ) -eq 'y') { + $PSBoundParameters.Add('ShowKnownFileExt', $ShowKnownFileExt) + } + } + # Only show option for disabling these specific folders for windows 10 users if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 10%'"){ - 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') { @@ -248,11 +301,9 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ( # Only show option for disabling context menu items for windows 10 users 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') { - Write-Output "" if ($( Read-Host -Prompt " Hide the 'Include in library' option in the context menu? (y/n)" ) -eq 'y') { @@ -317,17 +368,7 @@ switch ($PSBoundParameters.Keys) { continue } {$_ -in "DisableSuggestions", "DisableWindowsSuggestions"} { - RegImport "> Disabling tips, tricks and suggestions in the startmenu and settings, and ads in windows explorer..." $PSScriptRoot\Regfiles\Disable_Windows_Suggestions.reg - Write-Output "" - continue - } - {$_ -in "HideWidgets", "DisableWidgets"} { - RegImport "> Disabling the widget service and hiding the widget icon on the taskbar..." $PSScriptRoot\Regfiles\Disable_Widgets_Taskbar.reg - Write-Output "" - continue - } - {$_ -in "HideChat", "DisableChat"} { - RegImport "> Hiding the chat icon on the taskbar..." $PSScriptRoot\Regfiles\Disable_Chat_Taskbar.reg + RegImport "> Disabling tips, tricks and suggestions in the start menu, settings and windows explorer..." $PSScriptRoot\Regfiles\Disable_Windows_Suggestions.reg Write-Output "" continue } @@ -336,6 +377,46 @@ switch ($PSBoundParameters.Keys) { Write-Output "" continue } + 'HideSearchTb' { + RegImport "> Hiding the search icon from the taskbar..." $PSScriptRoot\Regfiles\Hide_Search_Taskbar.reg + Write-Output "" + continue + } + 'ShowSearchIconTb' { + RegImport "> Changing taskbar search to icon only..." $PSScriptRoot\Regfiles\Show_Search_Icon.reg + Write-Output "" + continue + } + 'ShowSearchLabelTb' { + RegImport "> Changing taskbar search to icon with label..." $PSScriptRoot\Regfiles\Show_Search_Icon_And_Label.reg + Write-Output "" + continue + } + 'ShowSearchBoxTb' { + RegImport "> Changing taskbar search to search box..." $PSScriptRoot\Regfiles\Show_Search_Box.reg + Write-Output "" + continue + } + {$_ -in "HideWidgets", "DisableWidgets"} { + RegImport "> Disabling the widget service and hiding the widget icon from the taskbar..." $PSScriptRoot\Regfiles\Disable_Widgets_Taskbar.reg + Write-Output "" + continue + } + {$_ -in "HideChat", "DisableChat"} { + RegImport "> Hiding the chat icon from the taskbar..." $PSScriptRoot\Regfiles\Disable_Chat_Taskbar.reg + Write-Output "" + continue + } + 'ShowHiddenFolders' { + RegImport "> Unhiding hidden files, folders and drives..." $PSScriptRoot\Regfiles\Show_Hidden_Folders.reg + Write-Output "" + continue + } + 'ShowKnownFileExt' { + RegImport "> Enabling file extensions for known file types..." $PSScriptRoot\Regfiles\Show_Extensions_For_Known_File_Types.reg + Write-Output "" + continue + } {$_ -in "HideOnedrive", "DisableOnedrive"} { RegImport "> Hiding the onedrive folder in windows explorer..." $PSScriptRoot\Regfiles\Hide_Onedrive_Folder.reg Write-Output ""