From 74e40e7b381e2671de281040b94fedebfae0c03e Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Fri, 8 Sep 2023 01:06:01 +0200 Subject: [PATCH] Fixed a few issues * Fixed invalid path that broke the 'ClearStart' option * Added more info about the 'ClearStart' option * Removed old reference --- README.md | 4 ++-- Win11Debloat.ps1 | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 652e2a3..962f618 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ In this mode you'll be able to make any of the following changes: - 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. -- Remove all pinned apps from the start menu (Windows 11 update 22H2 or later only) +- Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 update 22H2 or later only) - 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) @@ -87,7 +87,7 @@ To run the script without any user input, simply add parameters at the end, exam | -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. | -| -ClearStart | Remove all pinned apps from the start menu. (Windows 11 update 22H2 or later only) | +| -ClearStart | Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 update 22H2 or later only) | | -HideOnedrive | Hide the onedrive folder in the windows explorer sidepanel. (Windows 10 only) | | -Hide3dObjects | Hide the 3D objects folder under 'This pc' in windows explorer. (Windows 10 only) | | -HideMusic | Hide the music folder under 'This pc' in windows explorer. (Windows 10 only) | diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index f32afef..7c140e3 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -114,7 +114,7 @@ function ClearStartMenu { Write-Output $message # Path to start menu template - $startmenuTemplate = "./Start/start2.bin" + $startmenuTemplate = "$PSScriptRoot/Start/start2.bin" # Get all user profile folders $usersStartMenu = get-childitem -path "C:\Users\*\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState" @@ -199,7 +199,7 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ( '1' { Clear-Host Write-Output "-------------------------------------------------------------------------------------------" - Write-Output " Win11Debloat Script - Windows 10 Default Configuration" + Write-Output " Win11Debloat Script - Default Configuration" Write-Output "-------------------------------------------------------------------------------------------" $PSBoundParameters.Add('RemoveApps', $RemoveApps) $PSBoundParameters.Add('DisableTelemetry', $DisableTelemetry) @@ -223,7 +223,7 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ( Write-Output " Win11Debloat Script - Custom Configuration" Write-Output "-------------------------------------------------------------------------------------------" - if ($( Read-Host -Prompt "Remove the pre-installed windows apps? (y/n)" ) -eq 'y') { + if ($( Read-Host -Prompt "Remove pre-installed bloatware apps? (y/n)" ) -eq 'y') { $PSBoundParameters.Add('RemoveApps', $RemoveApps) Write-Output "" @@ -261,7 +261,7 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ( # Only show this option for windows 11 users if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 11%'"){ - if ($( Read-Host -Prompt "Remove all pinned apps from the start menu? (y/n)" ) -eq 'y') { + if ($( Read-Host -Prompt "Remove all pinned apps from the start menu? This applies to all existing and new users (y/n)" ) -eq 'y') { $PSBoundParameters.Add('ClearStart', $ClearStart) } }