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

Issues with Server 2022 with Hotpatch enabled #35

Closed CarlosAmericano closed 1 month ago

CarlosAmericano commented 7 months ago

On Azure machines with hotpatch enabled this is not working. https://support.microsoft.com/en-gb/topic/release-notes-for-hotpatch-in-azure-automanage-for-windows-server-2022-4e234525-5bd5-4171-9886-b475dabe0ce8

I tried and made something quick and dirty on our custom script to check if its autopatch or not and changing the url to be parsed

    ```

$hotpatchcheck = Get-HotFix -Id KB5003508 -ErrorAction SilentlyContinue if ($hotpatchcheck) { $URL = "https://support.microsoft.com/en-gb/topic/release-notes-for-hotpatch-in-azure-automanage-for-windows-server-2022-4e234525-5bd5-4171-9886-b475dabe0ce8" } Else { $URL = "https://support.microsoft.com/en-us/help/5005454" }



But even then, the webpage parse mechanism doesnt match what the OS reports

OS Build 20348.2091 --- correct info from the OS and correct info from the webpage body
OS Build 20346.2091 --- data pulled up from the module, and info from the table ?? 

Any ideas ?
AshleyHow commented 7 months ago

Happy to add support for hotpatch if can get it working, can you explain why a release is displaying two different builds? I think it will be the problem here - For example see November 14. The major build number on the left from research appears to be for HoloLens 2!

image

I haven't yet had the pleasure of dealing with hot patch in any capacity but looking at the update release notes it seems that the baseline patches are not displaying the normal info and are taking shortcuts and simply linking to the equivalent HCI stack page which further complicates the scraping process but I don't think that is right either and should be going to the server 2022 page of the mentioned KB.

For example

image image

What a mess!!

CarlosAmericano commented 7 months ago

That was my thoughts as well...what a mess.

We deploy a fair bit of servers in azure and for a couple of weeks / months autopatch enabled images are the default in azure.

Last month we didn't have any issues and looking at the logs from our rmm, it looks like the build number was the same for these images as a "normal" 2022 server. Only this month we noticed the check couldn't identify the osbuild to the windows server 2022 page and i tried to have a look.

As you mentioned, the build reported in the body of the page doesnt match what is on the table on the left, i can confirm that the info in the body is correct (at least for this months) I also noticed that the links point to some weird hci server.

I tried to find other urls to parse and couldn't find anything, their docs are so bad regarding 2022 build versions...i think that the whole page of that autopatch is full of typos from a botched copy paste job.

AshleyHow commented 7 months ago

Raised as an issue here - https://github.com/MicrosoftDocs/windowsserverdocs/issues/7633

Let's see what happens!

AshleyHow commented 3 months ago

Hotpatch support coming shortly!

CarlosAmericano commented 3 months ago

Thank you for the improvement !

AshleyHow commented 3 months ago

2403.1 now released please test and feedback as I don't have access to a hotpatch enabled device to test.

CarlosAmericano commented 3 months ago

I think the next hotpatch release is going to be in May https://support.microsoft.com/en-gb/topic/release-notes-for-hotpatch-in-azure-automanage-for-windows-server-2022-4e234525-5bd5-4171-9886-b475dabe0ce8

Ill keep an eye, thanks

AshleyHow commented 2 months ago

@CarlosAmericano just wondering how it went?

CarlosAmericano commented 1 month ago

Hello AshleyHow

That worked perfectly.. thank you!!

On Thu, May 16, 2024 at 11:26 PM Ashley How @.***> wrote:

@CarlosAmericano https://github.com/CarlosAmericano just wondering how it went?

— Reply to this email directly, view it on GitHub https://github.com/AshleyHow/WindowsOSBuild/issues/35#issuecomment-2116304801, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKEA5EUWJV7I4EELFNWR5A3ZCUXAPAVCNFSM6AAAAAA77TVSACVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJWGMYDIOBQGE . You are receiving this because you were mentioned.Message ID: @.***>