From 8ec952288533ca6a64f391305e3fcf75b82256cb Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Thu, 3 Aug 2023 20:10:24 +0200 Subject: [PATCH] New features and additions: * Option added to show hidden files, folders and drivers. * Option added to show file extensions for known file types. * Option added to hide or change the search icon on the taskbar. * Added 'show file extensions for known file types' to default configuration * Moved regfiles for undoing changes to a seperate folder * Updated README.md --- README.md | 29 ++-- Regfiles/Disable_Windows_Suggestions.reg | Bin 2458 -> 3078 bytes Regfiles/Hide_Search_Taskbar.reg | Bin 0 -> 300 bytes .../Show_Extensions_For_Known_File_Types.reg | Bin 0 -> 304 bytes Regfiles/Show_Hidden_Folders.reg | Bin 0 -> 294 bytes Regfiles/Show_Search_Box.reg | Bin 0 -> 300 bytes Regfiles/Show_Search_Icon.reg | Bin 0 -> 300 bytes Regfiles/Show_Search_Icon_And_Label.reg | Bin 0 -> 300 bytes Regfiles/{ => Undo}/Align_Taskbar_Center.reg | Bin .../Enable_Bing_Cortana_In_Search.reg | Bin Regfiles/{ => Undo}/Enable_Chat_Taskbar.reg | Bin .../Enable_Give_access_to_context_menu.reg | Bin ...ble_Include_in_library_to_context_menu.reg | Bin .../{ => Undo}/Enable_Lockscreen_Tips.reg | Bin .../Enable_Share_to_context_menu.reg | Bin Regfiles/{ => Undo}/Enable_Telemetry.reg | Bin .../{ => Undo}/Enable_Widgets_Taskbar.reg | Bin .../{ => Undo}/Enable_Windows_Suggestions.reg | Bin 2462 -> 3086 bytes .../Hide_Extensions_For_Known_File_Types.reg | Bin 0 -> 304 bytes Regfiles/Undo/Hide_Hidden_Folders.reg | Bin 0 -> 294 bytes .../{ => Undo}/Show_3D_Objects_Folder.reg | Bin Regfiles/{ => Undo}/Show_Music_Folder.reg | Bin Regfiles/{ => Undo}/Show_Onedrive_folder.reg | Bin Win11Debloat.ps1 | 155 +++++++++++++----- 24 files changed, 137 insertions(+), 47 deletions(-) create mode 100644 Regfiles/Hide_Search_Taskbar.reg create mode 100644 Regfiles/Show_Extensions_For_Known_File_Types.reg create mode 100644 Regfiles/Show_Hidden_Folders.reg create mode 100644 Regfiles/Show_Search_Box.reg create mode 100644 Regfiles/Show_Search_Icon.reg create mode 100644 Regfiles/Show_Search_Icon_And_Label.reg rename Regfiles/{ => Undo}/Align_Taskbar_Center.reg (100%) rename Regfiles/{ => Undo}/Enable_Bing_Cortana_In_Search.reg (100%) rename Regfiles/{ => Undo}/Enable_Chat_Taskbar.reg (100%) rename Regfiles/{ => Undo}/Enable_Give_access_to_context_menu.reg (100%) rename Regfiles/{ => Undo}/Enable_Include_in_library_to_context_menu.reg (100%) rename Regfiles/{ => Undo}/Enable_Lockscreen_Tips.reg (100%) rename Regfiles/{ => Undo}/Enable_Share_to_context_menu.reg (100%) rename Regfiles/{ => Undo}/Enable_Telemetry.reg (100%) rename Regfiles/{ => Undo}/Enable_Widgets_Taskbar.reg (100%) rename Regfiles/{ => Undo}/Enable_Windows_Suggestions.reg (79%) create mode 100644 Regfiles/Undo/Hide_Extensions_For_Known_File_Types.reg create mode 100644 Regfiles/Undo/Hide_Hidden_Folders.reg rename Regfiles/{ => Undo}/Show_3D_Objects_Folder.reg (100%) rename Regfiles/{ => Undo}/Show_Music_Folder.reg (100%) rename Regfiles/{ => Undo}/Show_Onedrive_folder.reg (100%) 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 9456adab799beb51238c6e4d7e57470700681b9d..68611666e81bdcafe9625628f228350d097c714a 100644 GIT binary patch delta 194 zcmbOw+$OQ%6!YXX_NvJS%x3D948;s345nZ@p$`BXcr8W% delta 12 TcmZpZm?ga76!YdAEEiY-A+rT7 diff --git a/Regfiles/Hide_Search_Taskbar.reg b/Regfiles/Hide_Search_Taskbar.reg new file mode 100644 index 0000000000000000000000000000000000000000..96c30c55aa7e075b66cee8c53c8f24c5ce4c4319 GIT binary patch literal 300 zcmY+9&1%9>5Jt~h=sQRrpmfuX;HngaqKjxO#T3b(HV6sCmeiM5Pj2ZVTrP9JZ)VP& zxn19>X((ywIWr}u;;47#n~saltJzxBs;6wtcV=sKqkiU*C(i?uaCa_9FdZm34b7QaSjI*%Ou+{$=wz~uKPBm2k literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..b4e5a2cb5809ad429cbe3767b076a49e4c054af1 GIT binary patch literal 304 zcmY+9&1%9>5QV?B(02$vfOO-g;6h5JAa;?eMS4Xv8V)3+WbEx7I8t-9^X4=cRpNxX^V(@HF2#L%JR47R+V{;nV>t^}yfRZS z6@4%j&-k=X3FeBOnhk5!GCLC$H`bNff3v`&x1iq1jksUReRL93zVJgKJ8sl!4t0L^ lhf?Ltdf7Vc>M$2&jLd~OGLLi_*lk+=mY4Rbc-eo%3-9R*HUR(t literal 0 HcmV?d00001 diff --git a/Regfiles/Show_Hidden_Folders.reg b/Regfiles/Show_Hidden_Folders.reg new file mode 100644 index 0000000000000000000000000000000000000000..ae2c739250bb78c91b1238895a88b0ff635adab3 GIT binary patch literal 294 zcmY+9!3x4K5JcxJ_z$HYAbRj3cn}c;(L=S07!k2m0+L9pR)1c7O-~X^cXoGPCg0CS zR!*6`DwT?qDA$Evsk;ij=}eeflt)KeGcTB0v_tpRQJ2$JD||amHN&&jL1U%x64XK~ zbgCtFBE#S7471V^T25yU@kH%mH#4LEYzE$gje6hV{ZC>bzjV_TcfC=-9FhFV4GwZn cy$=av5?WLiII)IQRd8h*gtyf1X-+RVe!Y7%BLDyZ literal 0 HcmV?d00001 diff --git a/Regfiles/Show_Search_Box.reg b/Regfiles/Show_Search_Box.reg new file mode 100644 index 0000000000000000000000000000000000000000..1ea5d3cce4970b9eabf0990e98e86e25a0d15126 GIT binary patch literal 300 zcmY+9%ZkE45Jk^g@E^nv5E0x6u4F(EUBnk+2Jw*@gOET}qCc;mw5!lGRrgla>FW1u zO-jazoRTXoA`<@fuG}bi>ik$uRk^yw%6efnRcGox9lD+-jc~V&nK-jy$B3o8NHt@j zUNSe2h>baaGE4T-5}m2Uqj@g-TZ^gh7R$TaQT1oe);Fn`NuV7$^BZ<)*Sv$=hkNXO c;ld&GPW4XCwHX>qRbd>2A638lo?f7R0P|WkR{#J2 literal 0 HcmV?d00001 diff --git a/Regfiles/Show_Search_Icon.reg b/Regfiles/Show_Search_Icon.reg new file mode 100644 index 0000000000000000000000000000000000000000..fa70f19214e3b58e258ed81414ed247783cfbdc9 GIT binary patch literal 300 zcmY+9%ZkE45Jk^g@E^nv5M8(tT*-hSx`;2t4B{g*1|fl{M1NjAX;-0Xs_w0-)79_S znv{$aIVD$GL?ry{UAa;4)cLWRs&aLUmG#1Es?OAXI&?iv8sTmkGjV3ajuA_Fk!r?5 zy<~145gT*lR!Ii<~Qupu6YN!5BJ#n c!i7WVo$8&OYcn*Ks=_!3KdOH9J-tBt0P|EeRsaA1 literal 0 HcmV?d00001 diff --git a/Regfiles/Show_Search_Icon_And_Label.reg b/Regfiles/Show_Search_Icon_And_Label.reg new file mode 100644 index 0000000000000000000000000000000000000000..16c6bf5034cddc6800778f4f65f35c2ee99fefb4 GIT binary patch literal 300 zcmY+9%ZkE45Jk^g@E^nv5JB7su4F(EUBnk+2Jw*@gOET}qCc;mw5!lGRrgla>FW1u zO-jazoRTXoA`<@fuG}bi>ik$uRk^yw%6efnRcGox9lD+-jc~V&nK-jy$B3o8NHt@j zUNSe2h>baaGE4T-5}m2Uqj@g-TZ^gh7R$TaQT1oe);Fn`NuV7$^BZ<)*Sv$=hkNXO c;ld&GPW4XCwHX>qRbd>2A638lo?f7R0P|oqSO5S3 literal 0 HcmV?d00001 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 6d6bd4effef2f5ffc27ffc694fe75b9b2b4fe6e8..4e56713cec30b94e6e47fc79ecd557e4f00c010d 100644 GIT binary patch delta 194 zcmbOy+$XW&6!YXX_NvJS%x3D948;s3455QV?B;5 P;}9a&_xlYAnhXl6fs4lMhQq#lGy0Ww|==O4E*`LPUN}v~nfRF}Mn<1rcst%$$l0=I%38fh z^ubEJW@#M}n{!TT)*Mtz?7XY^ZJn##&SJXWV)d?WH2ay{u9H~h8$VoRHyeeTuR8zr mhfL+f`YSjb>M#{0%*_{b!>kzcVz&4XJctN_=%HFgjELAO0ZF7)t3R*4rY8xdJG(nClkaCE zE2m6el}bfQlT%khFR$dEvGYwc%t^Oo0-vnHUsa$M!oOw{wFbzU%KgvyWS{Zj!6FG1_wE( c-iL%S2`wrMoLEDuD!4KY!dvS1G^ZCFKfQr8Bme*a literal 0 HcmV?d00001 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 ""