missing parts
parent
16ede56a79
commit
4ae12c7ca4
|
@ -59,4 +59,7 @@ function Invoke-PostUpdateActions {
|
|||
#Reset WAU_UpdatePostActions Value
|
||||
$WAUConfig | New-ItemProperty -Name WAU_PostUpdateActions -Value 0 -Force
|
||||
|
||||
#Get updated WAU Config
|
||||
$Script:WAUConfig = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Winget-AutoUpdate"
|
||||
|
||||
}
|
|
@ -15,8 +15,8 @@ Start-Init
|
|||
$Script:WAUConfig = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Winget-AutoUpdate"
|
||||
|
||||
#Run post update actions
|
||||
if (!($WAUConfig.WAU_UpdatePostActions -eq 0)){
|
||||
|
||||
if (!($WAUConfig.WAU_PostUpdateActions -eq 0)){
|
||||
Invoke-PostUpdateActions
|
||||
}
|
||||
|
||||
#Run Scope Machine funtion if run as system
|
||||
|
|
Loading…
Reference in New Issue