From 18bc8d68a2bffb1476d30bc22bb4e89bc5a7a1c0 Mon Sep 17 00:00:00 2001 From: Ashley How <28279067+AshleyHow@users.noreply.github.com> Date: Tue, 28 Nov 2023 23:28:46 +0000 Subject: [PATCH] Add files via upload --- Public/Get-LatestOSBuild.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Public/Get-LatestOSBuild.ps1 b/Public/Get-LatestOSBuild.ps1 index 77481f8..4478c01 100644 --- a/Public/Get-LatestOSBuild.ps1 +++ b/Public/Get-LatestOSBuild.ps1 @@ -173,7 +173,7 @@ If ($OSName -eq "Server2022") { $Table = @() $Table = @( - $VersionDataRaw = $Webpage.Links | Where-Object {$_.outerHTML -match "supLeftNavLink" -and $_.outerHTML -match "KB"} | Sort-Object -Property href -Unique + $VersionDataRaw = $Webpage.Links | Where-Object {$_.outerHTML -match "supLeftNavLink" -and $_.outerHTML -match "KB" -and $_.outerHTML -notmatch "25398."} | Sort-Object -Property href -Unique $UniqueList = (Convert-ParsedArray -Array $VersionDataRaw) | Sort-Object OSBuild -Descending ForEach ($Update in $UniqueList) { $ResultObject = [Ordered] @{}