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
50 stars 15 forks source link

Windows 11 Get-CurrentOSBuild -Detailed #28

Closed tju-pwsh closed 1 year ago

tju-pwsh commented 1 year ago

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.

AshleyHow commented 1 year ago

Resolved with v2304.1. Thanks for reporting the issue.