Skip to content

Commit

Permalink
feat(STARTMENU): migrate to Get-UserPath
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Aug 11, 2024
1 parent 5c5d372 commit 5e62c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playbook/Executables/STARTMENU.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ foreach ($userKey in (Get-RegUserPaths).PsPath) {

# Get Local AppData
$appData = if ($default) {
"$env:systemdrive\Users\Default\AppData\Local"
Get-UserPath -Folder 'F1B32785-6FBA-4FCF-9D55-7B8E7F157091'
} else {
Get-ItemPropertyValue "$userKey\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" -Name 'Local AppData' -EA 0
}
Expand Down

0 comments on commit 5e62c60

Please sign in to comment.