Fixed a few issues

* Fixed invalid path that broke the 'ClearStart' option
* Added more info about the 'ClearStart' option
* Removed old reference
This commit is contained in:
Raphire
2023-09-08 01:06:01 +02:00
parent 6bbe9fe55d
commit 74e40e7b38
2 changed files with 6 additions and 6 deletions

View File

@@ -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. - 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 hidden files, folders and drives.
- Show file extensions for known file types. - 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) - Align taskbar icons to the left. (Windows 11 only)
- Hide or change the search icon/box on the taskbar. (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) - 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) | | -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. | | -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. | | -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) | | -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) | | -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) | | -HideMusic | Hide the music folder under 'This pc' in windows explorer. (Windows 10 only) |

View File

@@ -114,7 +114,7 @@ function ClearStartMenu {
Write-Output $message Write-Output $message
# Path to start menu template # Path to start menu template
$startmenuTemplate = "./Start/start2.bin" $startmenuTemplate = "$PSScriptRoot/Start/start2.bin"
# Get all user profile folders # Get all user profile folders
$usersStartMenu = get-childitem -path "C:\Users\*\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState" $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' { '1' {
Clear-Host Clear-Host
Write-Output "-------------------------------------------------------------------------------------------" Write-Output "-------------------------------------------------------------------------------------------"
Write-Output " Win11Debloat Script - Windows 10 Default Configuration" Write-Output " Win11Debloat Script - Default Configuration"
Write-Output "-------------------------------------------------------------------------------------------" Write-Output "-------------------------------------------------------------------------------------------"
$PSBoundParameters.Add('RemoveApps', $RemoveApps) $PSBoundParameters.Add('RemoveApps', $RemoveApps)
$PSBoundParameters.Add('DisableTelemetry', $DisableTelemetry) $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 " Win11Debloat Script - Custom Configuration"
Write-Output "-------------------------------------------------------------------------------------------" 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) $PSBoundParameters.Add('RemoveApps', $RemoveApps)
Write-Output "" Write-Output ""
@@ -261,7 +261,7 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
# Only show this option for windows 11 users # Only show this option for windows 11 users
if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 11%'"){ 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) $PSBoundParameters.Add('ClearStart', $ClearStart)
} }
} }