From 93db039783428e9c4f6da34d0b9e60f579bc9960 Mon Sep 17 00:00:00 2001 From: nitzmahone Date: Thu, 7 Apr 2016 17:19:36 -0700 Subject: [PATCH] win_updates shouldn't install hidden updates --- windows/win_updates.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/windows/win_updates.ps1 b/windows/win_updates.ps1 index 890e3670d86..fbf260ac0fe 100644 --- a/windows/win_updates.ps1 +++ b/windows/win_updates.ps1 @@ -121,6 +121,11 @@ $job_body = { $update.AcceptEula() } + if($update.IsHidden) { + Write-DebugLog "Skipping hidden update $($update.Title)" + continue + } + Write-DebugLog "Adding update $($update.Identity.UpdateID) - $($update.Title)" $res = $updates_to_install.Add($update)