diff --git a/lib/ansible/modules/extras/windows/win_updates.ps1 b/lib/ansible/modules/extras/windows/win_updates.ps1 index 890e3670d8..fbf260ac0f 100644 --- a/lib/ansible/modules/extras/windows/win_updates.ps1 +++ b/lib/ansible/modules/extras/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)