Here’s a script I wrote that retrieves all the Windows 10 build information, including Insider level when enabled.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
function Get-WinBuildInfo { <# .Synopsis Get-WinBuildInfo .DESCRIPTION Get-WinBuildInfo retrieves Windows 10 version, build and Insider information .EXAMPLE Get-WinBuildInfo .NOTES Sites with Windows build information: http://changewindows.org/platform/desktop https://buildfeed.net/ https://technet.microsoft.com/en-us/windows/release-info.aspx https://support.microsoft.com/en-us/help/12387/windows-10-update-history?ocid=client_wu #> [CmdletBinding()] Param ( ) Begin{ $osver = Get-ItemProperty -Path "HKLM:\software\microsoft\windows nt\currentversion" $insider = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsSelfHost\Applicability" switch($insider.Ring) { "WIS" {$InsiderLevel = "Slow"}; "WIF" {$InsiderLevel = "Fast"}; "RP" {$InsiderLevel = "Release Preview"}; Default {$InsiderLevel = "not found"} } } Process{ $props = [ordered]@{ "ProductName" = $osver.ProductName "CompositionEditionID" = $osver.CompositionEditionID "ReleaseID" = $osver.ReleaseID "BuildBranch" = $osver.BuildBranch "CurrentBuild" = $osver.CurrentBuild "CurrentBuildNumber" = $osver.CurrentBuildNumber "BuildLabEx" = $osver.BuildLabEx "CurrentVersion" = $osver.CurrentVersion "UBR" = $osver.UBR "CurrentMajorVersionNumber " = $osver.CurrentMajorVersionNumber "CurrentMinorVersionNumber" = $osver.CurrentMinorVersionNumber "PreviewBuildsEnabled" = $insider.EnablePreviewBuilds "InsiderLevel" = $InsiderLevel } $Results += @(New-Object pscustomobject -Property $props) } End { write-output $Results } } Get-WinBuildInfo |
And here’s a list of sites that provide information about the builds, releases, version numbers etc.
I am trying to run this script but i dont think its stepping into the “END”
Nothing is outputting as a $result….
Thanks.
if you first run the script in ISE it loads the function, then run the function.