In this post we will see the steps on how to get windows OS version using command line. If you have a good knowledge on windows commands then it can very much help you to get the work done faster. To get the OS version using command line there are multiple commands that we can execute. Most of the users tend to find the windows version by right clicking Computer and checking the Properties which shows the Windows operating system name, windows edition and other details. We will now see the different commands to get the windows OS version using command line.
Get Windows OS Version using Command Line
1) Using ver (Version) command – The ver command lists the version of windows OS. As you can see from the below screenshot that this command will show only the version of Windows OS. It doesn’t list the name of the operating system or service packs installed.
2) Using SystemInfo Command – The SystemInfo command displays detailed configuration information about a computer and its operating system, including operating system configuration, security information, product ID, and hardware properties, such as RAM, disk space, and network cards. When you execute the systeminfo command you get a lengthy output which includes the information about a computer and its operating system, to filter that information we can use the command.
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
When you execute the above command you get the output as shown in the below screenshot.
3) Using WinVer command – The WinVer command displays the version of Windows installed, the build number and service packs that are installed.