2

Many times I have to pass the User-Agent in the download headers for the download to be validated and working.

I need help finding a easy method to get the Windows NT version(6.1 or 6.2 ....) which the current running Windows system is (Win7, Win8, Win10 etc.) including Windows Server OSes?

I searched a lot in Google, but cannot find a specific command or shortcut for getting that info.

7
  • See the list:: en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions
    – Biswapriyo
    Aug 1, 2017 at 12:17
  • From an elevated command prompt, you can get this information by typing in wmic os get version and pressing Enter Aug 1, 2017 at 12:22
  • I suppose your command returns the Windows OS build and not the NT version, please check this en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions as there are differences between those two versions before Windows 10
    – VST
    Aug 1, 2017 at 12:24
  • 1
    I'm not sure what you mean but this will show the same information as typing ver in the command line including the NT version and the OS build number. For example 10.0.15063 would mean NT version 10.0 for the NT portion and the 15063 would indicate the OS build. Your question says how to get how to get the Windows NT version and this gets just that information you requested. Aug 1, 2017 at 12:44
  • Ok let me check on the other system with Windows 7.
    – VST
    Aug 1, 2017 at 12:47

2 Answers 2

4

You can use the wmic command in a syntax of wmic os get version to return the NT version number and the OS build number—use an administrator elevated command prompt if needed.

You can also use the ver command in a syntax of ver to return the NT version number and the OS build number from command line too—use an administrator elevated command prompt if needed.

Command Line Example

wmic os get version

enter image description here


ver

enter image description here


  • The OS Version Number is the 10.0 portion—everything behind the second dot
  • The OS Build Number is the 15063 value portion—everything in front of the second dot

Further Resources

Windows OS Version Number Table

enter image description here


Windows 10 release information

Microsoft has updated its servicing model. The Semi-Annual Channel is a twice-per-year feature update release targeting March and September, and 18-month servicing timelines for each release. The Semi-Annual Channel replaces the Current Branch (CB) and Current Branch for Business (CBB) concepts starting July 2017 with Windows 10, version 1703. This page is designed to help you determine if your devices are up to date with the latest Windows 10 feature and quality updates and to plan deployment schedules.

With each Semi-Annual Channel release, we recommend beginning deployment right away to targeted devices and ramp up to full deployment at your discretion. This will enable you to gain access to new features, experiences, and integrated security as soon as possible. For more information, see the blog post and Quick guide to Windows as a service.

enter image description here

0

systeminfo is probably the command you want. It does tend to spit out a lot of information, so you can run

systeminfo | find /i "OS Version"

to get just the item you need.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .