From 8bc12a5a85092f24d17e6a0790ee51e7bcec4412 Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Wed, 11 Jun 2025 00:05:10 +0200 Subject: [PATCH] Fixed bug with clearing start for all users --- {Start => Assets/Start}/What is this file.txt | 0 {Start => Assets/Start}/start2.bin | Bin Win11Debloat.ps1 | 6 +++--- 3 files changed, 3 insertions(+), 3 deletions(-) rename {Start => Assets/Start}/What is this file.txt (100%) rename {Start => Assets/Start}/start2.bin (100%) diff --git a/Start/What is this file.txt b/Assets/Start/What is this file.txt similarity index 100% rename from Start/What is this file.txt rename to Assets/Start/What is this file.txt diff --git a/Start/start2.bin b/Assets/Start/start2.bin similarity index 100% rename from Start/start2.bin rename to Assets/Start/start2.bin diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 90347f7..c174ab5 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -595,7 +595,7 @@ function RestartExplorer { # Credit: https://lazyadmin.nl/win-11/customize-windows-11-start-menu-layout/ function ReplaceStartMenuForAllUsers { param ( - $startMenuTemplate = "$PSScriptRoot/Start/start2.bin" + $startMenuTemplate = "$PSScriptRoot/Assets/Start/start2.bin" ) Write-Output "> Removing all pinned apps from the start menu for all users..." @@ -613,7 +613,7 @@ function ReplaceStartMenuForAllUsers { # Go through all users and replace the start menu file ForEach ($startMenuPath in $usersStartMenuPaths) { - ReplaceStartMenu "$($startMenuPath.Fullname)\start2.bin" $startMenuTemplate + ReplaceStartMenu $startMenuTemplate "$($startMenuPath.Fullname)\start2.bin" } # Also replace the start menu file for the default user profile @@ -636,7 +636,7 @@ function ReplaceStartMenuForAllUsers { # Credit: https://lazyadmin.nl/win-11/customize-windows-11-start-menu-layout/ function ReplaceStartMenu { param ( - $startMenuTemplate = "$PSScriptRoot/Start/start2.bin", + $startMenuTemplate = "$PSScriptRoot/Assets/Start/start2.bin", $startMenuBinFile = "$env:LOCALAPPDATA\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start2.bin" )