How to Get Windows Nt Version via Command Line

How to Get Windows Nt Version via Command Line

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

2 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


Alexander Ross
Author

Alexander Ross

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.