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.
72 Answers
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
ver
- The OS Version Number is the
10.0portion—everything behind the second dot- The OS Build Number is the
15063value portion—everything in front of the second dot
Further Resources
Windows OS Version Number Table
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.
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.