Hi thanks for your fix. But now here a new problem.
The command does not return the right version
This is correct
Get-LatestOSBuild -OSName Win11 -OSVersion 25H2 -ExcludePreview -ExcludeOutOfBand -LatestReleases 2
Version : Version 25H2 (OS build 26200)
Build : 26200.8246
Availability date : 2026-04-14
Preview : False
Out-of-band : False
Servicing option : General Availability Channel
KB article : KB5083769
KB URL : https://support.microsoft.com/en-us/help/5083769
Catalog URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5083769
Version : Version 25H2 (OS build 26200)
Build : 26200.8037
Availability date : 2026-03-10
Preview : False
Out-of-band : False
Servicing option : General Availability Channel
KB article : KB5079473
KB URL : https://support.microsoft.com/en-us/help/5079473
Catalog URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5079473
This one return a 23h2 build instead of the April baseline and march hotpatch (Same behavior for 24h2)
Get-LatestOSBuild -OSName Win11Hotpatch -OSVersion 25H2 -ExcludePreview -ExcludeOutOfBand -LatestReleases 2
Version : Version 25H2 (OS build 26200)
Build : 22631.6936
Availability date : 2026-04-14
Hotpatch : False
Preview : False
Out-of-band : False
Servicing option : LTSC
KB article : KB5089602 / KB5083768
KB URL : https://support.microsoft.com/en-us/help/5089602
Catalog URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5089602
Version : Version 25H2 (OS build 26200)
Build : 22631.6783
Availability date : 2026-03-10
Hotpatch : True
Preview : False
Out-of-band : False
Servicing option : LTSC
KB article : KB5079420
KB URL : https://support.microsoft.com/en-us/help/5079420
For this one half good
Get-LatestOSBuild -OSName Win11Hotpatch -OSVersion 24H2 -LatestReleases 2
Version : Version 24H2 (OS build 26100)
Build : 22631.6936
Availability date : 2026-04-14
Hotpatch : False
Preview : False
Out-of-band : False
Servicing option : LTSC
KB article : KB5089602 / KB5083768
KB URL : https://support.microsoft.com/en-us/help/5089602
Catalog URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5089602
Version : Version 24H2 (OS build 26100)
Build : March 23, 2026—Hotpatch KB5085518 (OS Builds 26200.7985 and 26100.7985) Out-of-band - Microsoft Support
Availability date : 2026-03-23
Hotpatch : True
Preview : False
Out-of-band : True
Servicing option : LTSC
KB article : KB5085518
KB URL : https://support.microsoft.com/en-us/help/5085518
Catalog URL : N/A
I pretty sure it's tricky with baseline page that are redirected to the "classic" page.
Hi thanks for your fix. But now here a new problem.
The command does not return the right version
This is correct
Get-LatestOSBuild -OSName Win11 -OSVersion 25H2 -ExcludePreview -ExcludeOutOfBand -LatestReleases 2
This one return a 23h2 build instead of the April baseline and march hotpatch (Same behavior for 24h2)
Get-LatestOSBuild -OSName Win11Hotpatch -OSVersion 25H2 -ExcludePreview -ExcludeOutOfBand -LatestReleases 2
For this one half good
Get-LatestOSBuild -OSName Win11Hotpatch -OSVersion 24H2 -LatestReleases 2
I pretty sure it's tricky with baseline page that are redirected to the "classic" page.