Tired of waiting for an official api which allows you to query latest release builds or historical information for Windows 10 and 11?? So am I!
So I have decided to create a PowerShell Module WindowsReleaseInformation to parse Windows 10 and 11 release information pages and output in JSON format.
There are two main functions:
Get-WinReleaseCurrent
This function will return information related to the current supported versions of windows and their latest build, including release date and end of service information.
A few examples on how to user the function are:
.EXAMPLE
Return info on all versions on servicing channel for Windows 10
Get-WinReleaseCurrent -OS 10 -Channel servicing
.EXAMPLE
Return info on version 22H2 on servicing channel for Windows 11
Get-WinReleaseCurrent -OS 11 -Channel servicing -Version 22H2
.EXAMPLE
Return info on version 1507 on ltsb channel for Windows 10
Get-WinReleaseCurrent -OS 10 -Channel ltsb -Version 1507
Get-WinReleaseHistory
This function will return information related to the release history of all Windows 10 and 11 versions, their release date, build number, KB article and if the version is end of service or not.
A few examples on how to user the function are:
.EXAMPLE
Return info on all builds for Windows 11 Version 21H2
Get-WinReleaseHistory -OS 11 -Version 21H2
.EXAMPLE
Return info on Windows 11 for KB 5006674
Get-WinReleaseHistory -OS 11 -KB KB5006674
.EXAMPLE
Return info on all builds for Windows 10 Version 21H2 and 21H2
Get-WinReleaseHistory -OS 10 -Version 21H
.EXAMPLE
Return info on Windows 10 for KB 5020030
Get-WinReleaseHistory -OS 10 -KB KB5020030
The module
The project is open source and can be found here.
Contributions or feedback are always welcome.
If anyone has interest in knowing how to leverage this module to create an API using Azure Functions please let me know and I’ll create another post explaining it.
Thanks for reading.
Comments