jdhitsolutions / WingetTools

A set of PowerShell tools for working with the winget package manager.
MIT License
146 stars 14 forks source link

Update Get-WingetPath.ps1 #23

Closed fredrikhenne closed 9 months ago

fredrikhenne commented 9 months ago

Change currentUser variable to .NET GetCurrent().User.Value and match on SID S-1-5-18 for SYSTEM instead of whoami account names that are different depending on locale.