missing parts

pull/83/head
Romain 2022-05-23 00:35:33 +02:00
parent 16ede56a79
commit 4ae12c7ca4
2 changed files with 5 additions and 2 deletions

View File

@ -59,4 +59,7 @@ function Invoke-PostUpdateActions {
#Reset WAU_UpdatePostActions Value #Reset WAU_UpdatePostActions Value
$WAUConfig | New-ItemProperty -Name WAU_PostUpdateActions -Value 0 -Force $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"
} }

View File

@ -15,8 +15,8 @@ Start-Init
$Script:WAUConfig = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Winget-AutoUpdate" $Script:WAUConfig = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Winget-AutoUpdate"
#Run post update actions #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 #Run Scope Machine funtion if run as system