diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 13001a3..1e99566 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -605,7 +605,7 @@ function ReplaceStartMenu { $startMenuTemplate = "$PSScriptRoot/Start/start2.bin" ) - $userName = $startMenuBinFile.Split("\")[2] + $userName = $env:USERNAME # Check if template bin file exists, return early if it doesn't if (-not (Test-Path $startMenuTemplate)) {