How to get Windows Version - as in "Windows 10, version 1607"?

how to check windows 10 version
check windows version cmd
how do i find out my windows version?
how to check windows 10 version 32 or 64
what version of windows 7 do i have
how to check windows 10 version command line
latest windows version
windows 10 download

It seems that the word "version" in reference to Windows is used for different things. For example, the Windows 10 "Anniversary Update" is labeled "Version 1607" by Microsoft (here for example). But if I try to get the "Version" (on a PC with the Anniversary Update installed) using the following code, nothing is returned that looks like "1607".

// Get Version details
Version ver = os.Version;
Console.WriteLine("Major version: " + ver.Major);
Console.WriteLine("Major Revision: " + ver.MajorRevision);
Console.WriteLine("Minor version: " + ver.Minor);
Console.WriteLine("Minor Revision: " + ver.MinorRevision);
Console.WriteLine("Build: " + ver.Build);

I get this:

Major version: 6
Major Revision: 0
Minor version: 2
Minor Revision: 0
Build: 9200

How do I get the Windows 10 "version" as in "Version 1607"?


according to MSDN official link there's a specific version number for each windows version out there. in dot net this can be read using the Environment.OSVersion object.

Console.WriteLine("OSVersion: {0}", Environment.OSVersion);
//output: OSVersion: Microsoft Windows NT 6.2.9200.0

What you are looking for is called ReleaseID not a version of windows. this be can read from registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId

using Microsoft.Win32;

string releaseId = Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ReleaseId", "").ToString();

Which version of Windows operating system am I running , Find operating system info in Windows 10​​ Select the Start button > Settings > System > About . Under Device specifications > System type, see if you're running a 32-bit or 64-bit version of Windows. Under Windows specifications, check which edition and version of Windows your device is running. Find operating system info in Windows 10. Select the Start button > Settings > System > About . Open About settings. Under Device specifications > System type , see if you're running a 32-bit or 64-bit version of Windows. Under Windows specifications , check which edition and version of Windows your

 private static ManagementObject GetMngObj(string className)
        var wmi = new ManagementClass(className);

        foreach (var o in wmi.GetInstances())
            var mo = (ManagementObject)o;
            if (mo != null) return mo;

        return null;

    public static string GetOsVer()
            ManagementObject mo = GetMngObj("Win32_OperatingSystem");

            if (null == mo)
                return string.Empty;

            return mo["Version"] as string;
        catch (Exception e)
            return string.Empty;

How to Use:



How to determine the version of Windows on a computer., Windows 7 and earlier. Right-click on My Computer on the Windows desktop or in the Start menu. Select the Properties option. In the System  To find out which version of Windows your device is running, press the Windows logo key + R, type winver in the Open box, and then select OK. Here’s how to learn more: Select the Start button > Settings > System > About . Open About settings ; Under Device specifications > System type, see if you're running a 32-bit or 64-bit version of Windows.

string Version = (string)Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion", "ProductName", null);

Gives a name like "Windows 10 Enterprise".

How to Find Out Which Build and Version of Windows 10 You Have, You can also use the old standby Windows Version (winver) tool to find some of this information. Hit Start, type “winver,” and then press Enter. To find Windows OS version from command line we can use systeminfo command. We can get service pack number and Windows edition from windows command line. ≡ Menu

In addition to Scott's answer, you can also get the product name (ex. Windows 10 Pro) with this (*I take no credit as Scott is the one who mentioned the registry path + I'm reusing his code below):

using Microsoft.Win32;

string ProductName = 
Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductName", "").ToString();

How to Check Your Windows Version: 12 Steps (with Pictures), Your Windows release will be displayed at the top of the About Windows window. Your Windows version is displayed next to "Version" and your build number is  If you’re still running Windows 7 or Windows 8.1 (most versions), you need to begin by downloading the Windows 10 installer. Going this route will mean you won’t need to pay $139 for an

What Version of Windows Do I Have? [10, 8, 7], Do you know what version of Windows you have? It's important to know for lots of reasons. Here's how to tell what version of Windows is on  So, here are some steps which can help you to check the windows version remotely. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion With this you can get only following Versions:Microsoft Windows 2000 (No different between Pro and Server)

How to check your Windows version using a shortcut or CMD, Checking your Windows version using CMD. If you are familiar with the Windows Command Prompt, you can quickly and easily find out what  Windows 10. Open a File Explorer window by pressing Windows Key + E. On the left, right-click This PC. In the context menu, select Properties to open the System Properties window. In the System Properties window, find the System type entry, which lists your operating system and CPU type.

How to Check Which Windows Version is Installed in My Computer , All Windows versions allow you to find out information about the installed OS version using winver command. Press WIN+R keys together to launch RUN dialog  There are two ways to get Windows 10. A short quiz will help you decide whether to buy Windows 10 to install on your current PC, or to buy a new Windows 10 PC. WINDOWS INSIDER PROGRAM. WINDOWS SUPPORT. ASK THE COMMUNITY. Follow Microsoft Windows.

  • If you want Environment.OSVersion to reflect the correct Windows Build version, see answer about creating an app manifest file here… . May be more useful than the year-and-month style version number in case the user is getting Insider Updates
  • Excellent! Verified to work on my PC with "Windows 10 version 1511" and another PC with "version 1607" -- which is what was expected.
  • @Stavm — great info. BTW, Microsoft does refer to the ReleaseId (e.g., "1803") as a Version, see Windows 10 release information for details.
  • In addition, the original (RTM) version of Windows 10 does not have this key (just like Windows 7 or other windows versions)
  • This was already posted as an answer a few months ago here.