Code Monkey home page Code Monkey logo

ashleyhow / windowsosbuild Goto Github PK

View Code? Open in Web Editor NEW
47.0 47.0 15.0 2.52 MB

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.

License: MIT License

PowerShell 100.00%
patching powershell powershell-module

windowsosbuild's People

Contributors

ashleyhow avatar aumoulinon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

windowsosbuild's Issues

Build only parameter fails

-BuildOnly parameter fails due to error on line 154 of WindowsOSBuild.psm1
Cause is the $Table member NoteProperty for "OS Build" is now "Build" after the update

eg it should be

($Table | Where-Object { $_ -Match "Version $OSVersion" } | Select-Object -First $LatestReleases)."Build"

Querying for Windows Server 2022 throws a lot of errors + the result

PS U:\> Get-LatestOSBuild -OSVersion 21H2 -OSName Server2022 -ExcludePreview -ExcludeOutOfBand
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ...             $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FormatException
 
Get-Date : Cannot bind parameter 'Date' to the target. Exception setting "Date": "Cannot convert null to type "System.DateTime"."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:163 char:40
+                 $FormatDate =  Get-Date($ConvertToDate) -Format 'yyyy ...
+                                        ~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [Get-Date], ParameterBindingException
    + FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.PowerShell.Commands.GetDateCommand
 
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ...             $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FormatException
 
Get-Date : Cannot bind parameter 'Date' to the target. Exception setting "Date": "Cannot convert null to type "System.DateTime"."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:163 char:40
+                 $FormatDate =  Get-Date($ConvertToDate) -Format 'yyyy ...
+                                        ~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [Get-Date], ParameterBindingException
    + FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.PowerShell.Commands.GetDateCommand
 
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ...             $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FormatException
 
Get-Date : Cannot bind parameter 'Date' to the target. Exception setting "Date": "Cannot convert null to type "System.DateTime"."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:163 char:40
+                 $FormatDate =  Get-Date($ConvertToDate) -Format 'yyyy ...
+                                        ~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [Get-Date], ParameterBindingException
    + FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.PowerShell.Commands.GetDateCommand
 
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ...             $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FormatException
 
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ...             $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FormatException
 
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ...             $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FormatException
 
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ...             $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FormatException
 
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ...             $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FormatException
 
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ...             $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FormatException
 
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ...             $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FormatException
 
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ...             $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FormatException
 
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ...             $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FormatException
 
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ...             $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FormatException
 
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ...             $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FormatException
 


Version           : Version 21H2 (OS build 20348)
Build             : 20348.707
Availability date : 
Preview           : False
Out-of-band       : False
Servicing option  : LTSC
KB article        : KB5013944
KB URL            : https://support.microsoft.com/en-us/help/5013944
Catalog URL       : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5013944




PS U:\> 

Get-LatestOSBuild function doesn't work on Server Core

The following error is returned when you run the Get-LatestOSBuild function on Server Core.

Retrieving the COM class factory for component with CLSID {00000000-0000-0000-0000-000000000000} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)

This is due to the absence of the COM object 'HTMLFile' which is used to parse the release information. Internet Explorer is needed for this COM object to work and it is not installed on Server core.

Windows 11 Get-CurrentOSBuild -Detailed

Get-CurrentOSBuild -Detailed does not work for Windows 11:

$GetOSCaption = (Get-CIMInstance Win32_OperatingSystem).Caption returns "Microsoft Windows 11 Enterprise"

However $DetectedOS gets matched to "Win10" not "Win11"

ElseIf ($GetOSCaption -match "Windows 11") {
$DetectedOS = "Win10"
}

Which means no information is shown for Windows 11 when running: Get-CurrentOSBuild -Detailed

Thanks for a useful module.

Whats the most simple way to detect if the Current OSBuild still gets security updates?

Hello

Thanks a lot for sharing your great work!

Customers pay billions to Microsoft and in 2023, it's a shame that they do not offer a REST Service that offers this information.

I probably have a question about the most common use case:

How can we tell until which date the current OS Build receives security updates?

In our days this information is very important and I suppose your WindowsOSBuild Module is a very good source of information for this question. But I don't know what information I have to interpret for this question to get a 100% sure answer.

Thanks a lot, kind regards,
Thomas

Get-LatestOSBuild -OSVersion "21H2" -OSName "Server2022" is broken

Hi, since a few weeks, the OS Build query for Windows Server 2022 is broken. As far as I can tell, it reports the build number of Windows Server vNext (23H2) instead.

Example:

PS C:\Users\WDAGUtilityAccount> Get-LatestOSBuild -OSVersion "21H2" -OSName "Server2022"

Version           : Version 21H2 (OS build 25398)
Build             : 25398.531
Availability date : 2023-11-14
Preview           : False
Out-of-band       : False
Servicing option  : LTSC
KB article        : KB5032202
KB URL            : https://support.microsoft.com/en-us/help/5032202
Catalog URL       : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5032202

The correct build number as of today would be: 20348.2113

Source for 2022: https://support.microsoft.com/en-us/topic/windows-server-2022-update-history-e1caa597-00c5-4ab9-9f3e-8212fe80b2ee
Source for 23H2: https://support.microsoft.com/en-us/topic/november-14-2023-kb5032202-os-build-25398-531-e1ee8019-47f8-4314-be67-32d4e48ac140

Exclude Preview & Out-of-band

Hey

i'm using your module for over a year now and since last week the exclude preview and out-of-band parameters are not working anymore. they return Unknown for both parameters

I have the issues on local pc and in azure runbooks both have latest version of your module.

Azure Runbook PS 7.2
Local PS7.4.3

example simple code
`PS C:\Users\MaximeGuillemin> Get-LatestOSBuild -OSName Win10 -OSVersion 22H2 -LatestReleases 2

Version : Version 22H2 (OS build 19045)
Build : 19045.4598
Availability date : 2024-06-25
Preview : Unknown
Out-of-band : Unknown
Servicing option : General Availability Channel
KB article : KB5039299
KB URL : https://support.microsoft.com/help/5039299
Catalog URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5039299

Version : Version 22H2 (OS build 19045)
Build : 19045.4529
Availability date : 2024-06-11
Preview : Unknown
Out-of-band : Unknown
Servicing option : General Availability Channel
KB article : KB5039211
KB URL : https://support.microsoft.com/help/5039211
Catalog URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5039211

PS C:\Users\MaximeGuillemin> Get-LatestOSBuild -OSName Win10 -OSVersion 22H2 -LatestReleases 2 -ExcludePreview

Version : Version 22H2 (OS build 19045)
Build : 19045.4598
Availability date : 2024-06-25
Preview : Unknown
Out-of-band : Unknown
Servicing option : General Availability Channel
KB article : KB5039299
KB URL : https://support.microsoft.com/help/5039299
Catalog URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5039299

Version : Version 22H2 (OS build 19045)
Build : 19045.4529
Availability date : 2024-06-11
Preview : Unknown
Out-of-band : Unknown
Servicing option : General Availability Channel
KB article : KB5039211
KB URL : https://support.microsoft.com/help/5039211
Catalog URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5039211`

How i use it in my script to build a full catalog
`
$OsNames = @("Win10", "Win11") # Operating system names to process (default is Win10 if not stated)
$osversion = "*" # OS version (mandatory parameter, e.g., 22H2)
$latestreleases = "1" # Nfinumber of latest releases to consider (default is 2)

#Retrieve the latest OS builds from the update catalog for each specified OS
$WindowUpdateCatalog = $OsNames | ForEach-Object {
$os = $_
$osbuilds = Get-LatestOSBuild -OSName $os -OSversion $osversion -LatestReleases $latestreleases
$osbuilds | ForEach-Object {
$osVersions = $.Version.Substring(8, 4)
$osVersions | ForEach-Object {
$osbuild = Get-LatestOSBuild -OSName $os -OSversion $
-LatestReleases 1 -ExcludePreview
$osbuild | ForEach-Object {
[PSCustomObject]@{
os = $os
Version = $.Version
qualityUpdateVersion = "10.0."+$
.Build
Availability_date = $.'Availability date'
Preview = $
.'Preview'
'Out-of-band' = $.'Out-of-band'
Servicing_option = $
.'Servicing option'
KB_article = $.'KB article'
KB_URL = $
.'KB URL'
Catalog_URL = $_.'Catalog URL'
}
}
}
}
}

`
output of $WindowUpdateCatalog

`
$WindowUpdateCatalog

os : Win10
Version : Version 22H2 (OS build 19045)
qualityUpdateVersion : 10.0.19045.4598
Availability_date : 2024-06-25
Preview : Unknown
Out-of-band : Unknown
Servicing_option : General Availability Channel
KB_article : KB5039299
KB_URL : https://support.microsoft.com/help/5039299
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5039299

os : Win10
Version : Version 21H2 (OS build 19044)
qualityUpdateVersion : 10.0.19044.4529
Availability_date : 2024-06-11
Preview : Unknown
Out-of-band : Unknown
Servicing_option : LTSC ⢠General Availability Channel
KB_article : KB5039211
KB_URL : https://support.microsoft.com/help/5039211
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5039211

os : Win10
Version : Version 21H1 (OS build 19043)
qualityUpdateVersion : 10.0.19043.2364
Availability_date : 2022-12-13
Preview : Unknown
Out-of-band : Unknown
Servicing_option : Semi-Annual Channel
KB_article : KB5021233
KB_URL : https://support.microsoft.com/help/5021233
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5021233

os : Win10
Version : Version 20H2 (OS build 19042)
qualityUpdateVersion : 10.0.19042.2965
Availability_date : 2023-05-09
Preview : Unknown
Out-of-band : Unknown
Servicing_option : Semi-Annual Channel
KB_article : KB5026361
KB_URL : https://support.microsoft.com/help/5026361
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5026361

os : Win10
Version : Version 2004 (OS build 19041)
qualityUpdateVersion : 10.0.19041.1415
Availability_date : 2021-12-14
Preview : Unknown
Out-of-band : Unknown
Servicing_option : Semi-Annual Channel
KB_article : KB5008212
KB_URL : https://support.microsoft.com/help/5008212
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5008212

os : Win10
Version : Version 1909 (OS build 18363)
qualityUpdateVersion : 10.0.18363.2274
Availability_date : 2022-05-10
Preview : Unknown
Out-of-band : Unknown
Servicing_option : Semi-Annual Channel
KB_article : KB5013945
KB_URL : https://support.microsoft.com/help/5013945
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5013945

os : Win10
Version : Version 1903 (OS build 18362)
qualityUpdateVersion : 10.0.18362.1256
Availability_date : 2020-12-08
Preview : Unknown
Out-of-band : Unknown
Servicing_option : Semi-Annual Channel
KB_article : KB4592449
KB_URL : https://support.microsoft.com/help/4592449
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB4592449

os : Win10
Version : Version 1809 (OS build 17763)
qualityUpdateVersion : 10.0.17763.5936
Availability_date : 2024-06-11
Preview : Unknown
Out-of-band : Unknown
Servicing_option : LTSC
KB_article : KB5039217
KB_URL : https://support.microsoft.com/help/5039217
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5039217

os : Win10
Version : Version 1803 (OS build 17134)
qualityUpdateVersion : 10.0.17134.2208
Availability_date : 2021-05-11
Preview : Unknown
Out-of-band : Unknown
Servicing_option : Semi-Annual Channel ⢠Semi-Annual Channel (Targeted)
KB_article : KB5003174
KB_URL : https://support.microsoft.com/help/5003174
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5003174

os : Win10
Version : Version 1709 (OS build 16299)
qualityUpdateVersion : 10.0.16299.2166
Availability_date : 2020-10-13
Preview : Unknown
Out-of-band : Unknown
Servicing_option : Semi-Annual Channel ⢠Semi-Annual Channel (Targeted)
KB_article : KB4580328
KB_URL : https://support.microsoft.com/help/4580328
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB4580328

os : Win10
Version : Version 1703 (OS build 15063)
qualityUpdateVersion : 10.0.15063.2108
Availability_date : 2019-10-08
Preview : Unknown
Out-of-band : Unknown
Servicing_option : Semi-Annual Channel ⢠CB
KB_article : KB4520010
KB_URL : https://support.microsoft.com/help/4520010
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB4520010

os : Win10
Version : Version 1607 (OS build 14393)
qualityUpdateVersion : 10.0.14393.7070
Availability_date : 2024-06-11
Preview : Unknown
Out-of-band : Unknown
Servicing_option : CBB ⢠CB ⢠LTSB
KB_article : KB5039214
KB_URL : https://support.microsoft.com/help/5039214
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5039214

os : Win10
Version : Version 1511 (OS build 10586)
qualityUpdateVersion : 10.0.10586.1540
Availability_date : 2018-04-10
Preview : Unknown
Out-of-band : Unknown
Servicing_option : CBB ⢠CB
KB_article : KB4093109
KB_URL : https://support.microsoft.com/help/4093109
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB4093109

os : Win10
Version : Version 1507 (RTM) (OS build 10240)
qualityUpdateVersion : 10.0.10240.20680
Availability_date : 2024-06-11
Preview : Unknown
Out-of-band : Unknown
Servicing_option : LTSB
KB_article : KB5039225
KB_URL : https://support.microsoft.com/help/5039225
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5039225

os : Win11
Version : Version 23H2 (OS build 22631)
qualityUpdateVersion : 10.0.22631.3810
Availability_date : 2024-06-25
Preview : Unknown
Out-of-band : Unknown
Servicing_option : General Availability Channel
KB_article : KB5039302
KB_URL : https://support.microsoft.com/help/5039302
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5039302

os : Win11
Version : Version 22H2 (OS build 22621)
qualityUpdateVersion : 10.0.22621.3810
Availability_date : 2024-06-25
Preview : Unknown
Out-of-band : Unknown
Servicing_option : General Availability Channel
KB_article : KB5039302
KB_URL : https://support.microsoft.com/help/5039302
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5039302

os : Win11
Version : Version 21H2 (OS build 22000)
qualityUpdateVersion : 10.0.22000.3019
Availability_date : 2024-06-11
Preview : Unknown
Out-of-band : Unknown
Servicing_option : General Availability Channel
KB_article : KB5039213
KB_URL : https://support.microsoft.com/help/5039213
Catalog_URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5039213
`

Issues with Server 2022 with Hotpatch enabled

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 ?

Sign the Scripts

One of our customers requires signed scripts. So all the scripts need to be signed and for example for other modules we install their certificate in the trusted publisher certificate store.

It will help us and I'm sure others too, if the scripts were signed with a certificate.

Thank you for considering it.

Not working on Server 2022 as expected

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.