mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 02:56:17 +00:00
Fixed bug with clearing start for all users
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user