fix: use env:USERNAME when removing start menu items (#169)

This commit is contained in:
Rohan Kapadia
2024-12-24 16:02:07 +01:00
committed by GitHub
parent c25dcb298b
commit e3b4ea24da
+1 -1
View File
@@ -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)) {