AshleyHow / WindowsOSBuild

Windows patch release information (Version, Build, Availability date, Hotpatch, Preview, Out-of-band, Servicing option, KB article, KB URL and Catalog URL) for Windows client and server versions. Useful for scripting and automation purposes. Supports Windows 10 and Windows Server 2016 onwards. Supports Hotpatch on Windows Server 2022 Azure Edition.
MIT License
46 stars 15 forks source link

Not working on Server 2022 as expected #3

Closed CarlosAmericano closed 8 months ago

CarlosAmericano commented 2 years ago

Unless im doing something really wrong, the Server 2022 is not working as intended, I think the main page doesnt provide the data for this OS.

PS C:\Windows\system32> Get-LatestOSBuild -OSName Server2022 -OSVersion 21H2 -LatestReleases 5

Version : Version 21H2 (OS build 19044) Servicing option : LTSC • General Availability Channel Availability date : 2021-11-22 Build : 19044.1387 KB article : KB5007253

Version : Version 21H2 (OS build 19044) Servicing option : LTSC • General Availability Channel Availability date : 2021-11-16 Build : 19044.1288 KB article :

These are the details for the OS

PS C:\Windows\system32> $CurrentBuild 20348.350

PS C:\Windows\system32> $OSVersion

Major Minor Build Revision


10 0 20348 0

that can be found here https://support.microsoft.com/en-us/topic/november-9-2021-kb5007205-os-build-20348-350-af102e6f-cc7c-4cd4-8dc2-8b08d73d2b31

AshleyHow commented 2 years ago

Apologies it was assumed that this was built off of the same codebase as win 10 21H2 like previous server releases (so same build numbers) however it seems that this is not the case. There is no table to query this information currently. This would mean major reworking of the code to query the page your refering too which I'd like to avoid currently. I'm going to see if I can reach out to Microsoft (social media, GitHub) to see if they will release a table on the release information page

AshleyHow commented 2 years ago

Raised in https://github.com/MicrosoftDocs/windowsserverdocs/issues/6107

Feedback has been passed to team responsible so hopefully it is resolved soon. I will then update the module.

AshleyHow commented 2 years ago

@CarlosAmericano new version released (v2112.1) to workaround this.

CarlosAmericano commented 2 years ago

@AshleyHow Thank you for that, appreciated Waiting for the main branch =)

AshleyHow commented 2 years ago

Dev has been merged into main.

AshleyHow commented 2 years ago

Server 2022 still not working due to missing function - apologies this will be fixed in 2112.2 release. Will running pester tests going forward prior to releasing to prevent this.

AshleyHow commented 8 months ago

Microsoft never decided to create the page so the work around will now stay permanent.