Jump to content

Windows 10 Complete Build-Number/Version


Recommended Posts

Hello,

how can I read the complete Version and Build-Numer for Windows 10?
If I execute "winver.exe" in windows command-line I get the Build "10586.420".
When I run "@OSBuild" in autoit I get "10586" and when I run "FileGetVersion(@SystemDir & "\WinVer.exe"" I get "10.0.10586.0".

How can I get the rest of the number 420?

Thanks for help!

Link to comment
Share on other sites

Have you tried using FileGetVersion on cmd.exe instead of winver.exe?

If that doesn't work, check out the following registry key to see if the info you're looking for is there:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

If so, you can use RegRead to grab it out of the registry

Edited by MuffinMan
added another possible solution
Link to comment
Share on other sites

you can use the shorthand in Win10, but i left it all there in case some of those on older OS would like the same

#include<AutoItConstants.au3>
#requireadmin

$sCommand = "Powershell [System.Environment]::OSVersion.Version.tostring()"
$iPID = run($sCommand , "" , @SW_HIDE , $stdout_child)

$sOutput = ""

     While 1
        $sOutput &= StdoutRead($iPID)
        If @error Then ExitLoop
    WEnd

msgbox(0, '' , stringsplit($sOutput , @LF , 2)[0])

 

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...