Skip to content

Commit

Permalink
Fix machine scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Romanitho committed Nov 29, 2023
1 parent f434df4 commit 3f81a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion winget-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function Get-WingetCmd {
function Add-ScopeMachine {
#Get Settings path for system or current user
if ([System.Security.Principal.WindowsIdentity]::GetCurrent().IsSystem) {
$SettingsPath = "$Env:windir\System32\config\systemprofile\AppData\Local\Microsoft\WinGet\Settings\settings.json"
$SettingsPath = "$Env:windir\System32\config\systemprofile\AppData\Local\Microsoft\WinGet\Settings\defaultState\settings.json"
}
else {
$SettingsPath = "$env:LOCALAPPDATA\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json"
Expand Down

0 comments on commit 3f81a38

Please sign in to comment.