From 035565324d913c8324daab42693a7fec792825cf Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Sat, 8 Feb 2025 18:14:46 +0100 Subject: [PATCH] Updated custom mode settings order, updated info page to include new start menu setting --- Assets/Menus/Info | 31 ++++++++--------- README.md | 2 +- Win11Debloat.ps1 | 84 ++++++++++++++++++++++++----------------------- 3 files changed, 60 insertions(+), 57 deletions(-) diff --git a/Assets/Menus/Info b/Assets/Menus/Info index 24ce3b7..259c476 100644 --- a/Assets/Menus/Info +++ b/Assets/Menus/Info @@ -11,7 +11,7 @@ all the settings yourself, or remove apps one by one. ------------------------------------------------------------------------------------------- App Removal - Remove a wide variety of bloatware apps. -- Remove all pinned apps from start for the current user, or for all existing & new users. (Windows 11 only) +- Remove all pinned apps from start for the current user, or for all existing & new users. (W11 only) Telemetry, Tracking & Suggested Content - Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads. @@ -20,27 +20,28 @@ Telemetry, Tracking & Suggested Content Bing, Copilot & More - Disable & remove Bing web search & Cortana from Windows search. -- Disable & remove Windows Copilot. (Windows 11 only) -- Disable Windows Recall snapshots. (Windows 11 only) +- Disable & remove Windows Copilot. (W11 only) +- Disable Windows Recall snapshots. (W11 only) File Explorer - Change the default location that File Explorer opens to. - Show hidden files, folders & drives. - Show file extensions for known file types. -- Hide the Home or Gallery section from the File Explorer navigation pane. (Windows 11 only) -- Hide the 3D objects, music or OneDrive folder from the File Explorer sidepanel. (Windows 10 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 sidepanel. (W10 only) - Hide duplicate removable drive entries from the File Explorer sidepanel. -Taskbar -- Align taskbar icons to the left. (Windows 11 only) -- Hide or change the search icon/box on the taskbar. (Windows 11 only) -- Hide the taskview button from the taskbar. (Windows 11 only) +Taskbar & Start +- Align taskbar icons to the left. (W11 only) +- Hide or change the search icon/box on the taskbar. (W11 only) +- Hide the taskview button from the taskbar. (W11 only) - Disable the widgets service & hide icon from the taskbar. - Hide the chat (meet now) icon from the taskbar. +- Disable & hide the recommended section in the start menu. (W11 only) Context menu -- Restore the old Windows 10 style context menu. (Windows 11 only) -- Hide the 'Include in library', 'Give access to' & 'Share' options from the context menu. (Windows 10 only) +- Restore the old Windows 10 style context menu. (W11 only) +- Hide the 'Include in library', 'Give access to' & 'Share' options from the context menu. (W10 only) Other - Disable Xbox game/screen recording. (Also stops gaming overlay popups) @@ -49,15 +50,15 @@ Other ------------------------------------------------------------------------------------------- Default mode ------------------------------------------------------------------------------------------- -The default mode applies the changes that are recommended for most users, this includes: +The default mode applies the changes that are recommended for most users. This includes: - Remove the default selection of apps, the list can be found in the 'Appslist.txt' file. - Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads. - Disable & remove Bing web search & Cortana from Windows search. - Disable tips, tricks, suggestions & ads across Windows. -- Disable Windows Copilot. (Windows 11 only) +- Disable Windows Copilot. (W11 only) - Show file extensions for known file types. - Disable the widget service & hide the icon from the taskbar. - Hide the Chat (meet now) icon from the taskbar. -- Hide the 3D objects folder under 'This pc' from File Explorer. (Windows 10 only) -- Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (Windows 10 only) +- Hide the 3D objects folder under 'This pc' from File Explorer. (W10 only) +- Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (W10 only) diff --git a/README.md b/README.md index 7c64ee8..f32c5f6 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ The script also includes many features that system administrators will enjoy. Su - Hide the taskview button from the taskbar. (W11 only) - Disable the widgets service & hide icon from the taskbar. - Hide the chat (meet now) icon from the taskbar. -- Disable & hide the recommended section in the start menu. +- Disable & hide the recommended section in the start menu. (W11 only) #### Context Menu diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 5bfc5bc..42a6e74 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -942,37 +942,6 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or $RunS } } - # Only show this option for Windows 11 users running build 22621 or later - if ($WinVersion -ge 22621){ - Write-Output "" - - if ($global:Params.ContainsKey("Sysprep")) { - if ($( Read-Host -Prompt "Remove all pinned apps from the start menu for all existing and new users? (y/n)" ) -eq 'y') { - AddParameter 'ClearStartAllUsers' 'Remove all pinned apps from the start menu for existing and new users' - } - } - else { - Do { - Write-Host "Options:" -ForegroundColor Yellow - Write-Host " (n) Don't remove any pinned apps from the start menu" -ForegroundColor Yellow - Write-Host " (1) Remove all pinned apps from the start menu for this user only ($env:USERNAME)" -ForegroundColor Yellow - Write-Host " (2) Remove all pinned apps from the start menu for all existing and new users" -ForegroundColor Yellow - $ClearStartInput = Read-Host "Remove all pinned apps from the start menu? (n/1/2)" - } - while ($ClearStartInput -ne 'n' -and $ClearStartInput -ne '0' -and $ClearStartInput -ne '1' -and $ClearStartInput -ne '2') - - # Select correct option based on user input - switch ($ClearStartInput) { - '1' { - AddParameter 'ClearStart' "Remove all pinned apps from the start menu for this user only" - } - '2' { - AddParameter 'ClearStartAllUsers' "Remove all pinned apps from the start menu for all existing and new users" - } - } - } - } - Write-Output "" if ($( Read-Host -Prompt "Disable telemetry, diagnostic data, activity history, app-launch tracking and targeted ads? (y/n)" ) -eq 'y') { @@ -997,7 +966,7 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or $RunS if ($WinVersion -ge 22621){ Write-Output "" - if ($( Read-Host -Prompt "Disable and remove Windows Copilot? This applies to all users (y/n)" ) -eq 'y') { + if ($( Read-Host -Prompt "Disable & remove Windows Copilot? This applies to all users (y/n)" ) -eq 'y') { AddParameter 'DisableCopilot' 'Disable and remove Windows Copilot' } @@ -1017,9 +986,50 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or $RunS } } + # Only show this option for Windows 11 users running build 22621 or later + if ($WinVersion -ge 22621){ + Write-Output "" + + if ($( Read-Host -Prompt "Do you want to make any changes to the start menu? (y/n)" ) -eq 'y') { + Write-Output "" + + if ($global:Params.ContainsKey("Sysprep")) { + if ($( Read-Host -Prompt "Remove all pinned apps from the start menu for all existing and new users? (y/n)" ) -eq 'y') { + AddParameter 'ClearStartAllUsers' 'Remove all pinned apps from the start menu for existing and new users' + } + } + else { + Do { + Write-Host " Options:" -ForegroundColor Yellow + Write-Host " (n) Don't remove any pinned apps from the start menu" -ForegroundColor Yellow + Write-Host " (1) Remove all pinned apps from the start menu for this user only ($env:USERNAME)" -ForegroundColor Yellow + Write-Host " (2) Remove all pinned apps from the start menu for all existing and new users" -ForegroundColor Yellow + $ClearStartInput = Read-Host " Remove all pinned apps from the start menu? (n/1/2)" + } + while ($ClearStartInput -ne 'n' -and $ClearStartInput -ne '0' -and $ClearStartInput -ne '1' -and $ClearStartInput -ne '2') + + # Select correct option based on user input + switch ($ClearStartInput) { + '1' { + AddParameter 'ClearStart' "Remove all pinned apps from the start menu for this user only" + } + '2' { + AddParameter 'ClearStartAllUsers' "Remove all pinned apps from the start menu for all existing and new users" + } + } + } + + Write-Output "" + + if ($( Read-Host -Prompt " Disable & hide the recommended section in the start menu? This applies to all users (y/n)" ) -eq 'y') { + AddParameter 'DisableStartRecommended' 'Disable & hide the recommended section in the start menu.' + } + } + } + Write-Output "" - if ($( Read-Host -Prompt "Do you want to make any changes to the taskbar, start menu 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 running build 22000 or later if ($WinVersion -ge 22000){ Write-Output "" @@ -1078,14 +1088,6 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or $RunS AddParameter 'HideChat' 'Hide the chat (meet now) icon from the taskbar' } } - - if ($WinVersion -ge 22000){ - Write-Output "" - - if ($( Read-Host -Prompt " Disable & hide the recommended section in the start menu? This applies to all users (y/n)" ) -eq 'y') { - AddParameter 'DisableStartRecommended' 'Disable & hide the recommended section in the start menu.' - } - } } Write-Output ""