win_updates shouldn't install hidden updates

pull/18777/head
nitzmahone 9 years ago committed by Matt Clay
parent e7e1a8bfea
commit e20eac089f

@ -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)

Loading…
Cancel
Save