default settings path for system account changed
parent
1db56ac445
commit
30351047bf
|
@ -71,7 +71,7 @@ param(
|
||||||
|
|
||||||
<# APP INFO #>
|
<# APP INFO #>
|
||||||
|
|
||||||
$WAUVersion = "1.13.2"
|
$WAUVersion = "1.14.0"
|
||||||
|
|
||||||
<# FUNCTIONS #>
|
<# FUNCTIONS #>
|
||||||
|
|
||||||
|
|
|
@ -52,5 +52,5 @@ function Get-WingetOutdatedApps {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $upgradeList
|
return $upgradeList | Sort-Object {Get-Random}
|
||||||
}
|
}
|
|
@ -21,7 +21,7 @@ if (!($WAUConfig.WAU_PostUpdateActions -eq 0)) {
|
||||||
|
|
||||||
#Run Scope Machine funtion if run as system
|
#Run Scope Machine funtion if run as system
|
||||||
if ([System.Security.Principal.WindowsIdentity]::GetCurrent().IsSystem) {
|
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
|
Add-ScopeMachine $SettingsPath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue