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.
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.