Does this work for you? I don't have 10240 anymore I'm afraid. This commandreturnsCode:(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name BuildLabEx).BuildLabExIt from How to find the Windows version from the PowerShell command line? - Stack Overflow where there are some other examples.Code:14393.187.amd64fre.rs1_release_inmarket.160906-1818
This worked best for me - the others weren't showing the minor .187 part of the build.