mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 02:56:17 +00:00
fix: use env:USERNAME when removing start menu items (#169)
This commit is contained in:
@@ -605,7 +605,7 @@ function ReplaceStartMenu {
|
|||||||
$startMenuTemplate = "$PSScriptRoot/Start/start2.bin"
|
$startMenuTemplate = "$PSScriptRoot/Start/start2.bin"
|
||||||
)
|
)
|
||||||
|
|
||||||
$userName = $startMenuBinFile.Split("\")[2]
|
$userName = $env:USERNAME
|
||||||
|
|
||||||
# Check if template bin file exists, return early if it doesn't
|
# Check if template bin file exists, return early if it doesn't
|
||||||
if (-not (Test-Path $startMenuTemplate)) {
|
if (-not (Test-Path $startMenuTemplate)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user