diff --git a/update/windows-update.ps1 b/update/windows-update.ps1 index aca6543..5ed026d 100644 --- a/update/windows-update.ps1 +++ b/update/windows-update.ps1 @@ -201,6 +201,11 @@ for ($i = 0; $i -lt $searchResult.Updates.Count; ++$i) { Write-Output "Warning The update '$updateTitle' has the CanRequestUserInput flag set (if the install hangs, you might need to exclude it with the filter 'exclude:`$_.InstallationBehavior.CanRequestUserInput' or 'exclude:`$_.Title -like '*$updateTitle*'')" } + if (($updatesToInstall | Select-Object -ExpandProperty Title) -contains $updateTitle) { + Write-Output "Warning, Skipping queueing the duplicated titled update '$updateTitle'." + continue + } + Write-Output "Found $updateSummary" $update.AcceptEula() | Out-Null