win_updates shouldn't install hidden updates

This commit is contained in:
nitzmahone 2016-04-07 17:19:36 -07:00
parent bc198cc33a
commit 93db039783

View file

@ -121,6 +121,11 @@ $job_body = {
$update.AcceptEula() $update.AcceptEula()
} }
if($update.IsHidden) {
Write-DebugLog "Skipping hidden update $($update.Title)"
continue
}
Write-DebugLog "Adding update $($update.Identity.UpdateID) - $($update.Title)" Write-DebugLog "Adding update $($update.Identity.UpdateID) - $($update.Title)"
$res = $updates_to_install.Add($update) $res = $updates_to_install.Add($update)