default settings path for system account changed

pull/145/head
Romain 2022-08-12 09:19:49 +02:00 committed by GitHub
parent 1db56ac445
commit 30351047bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ param(
<# APP INFO #>
$WAUVersion = "1.13.2"
$WAUVersion = "1.14.0"
<# FUNCTIONS #>

View File

@ -52,5 +52,5 @@ function Get-WingetOutdatedApps {
}
}
return $upgradeList
return $upgradeList | Sort-Object {Get-Random}
}

View File

@ -21,7 +21,7 @@ if (!($WAUConfig.WAU_PostUpdateActions -eq 0)) {
#Run Scope Machine funtion if run as system
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"
Add-ScopeMachine $SettingsPath
}