Get Windows OS Version using Command Line

Prajwal Desai
Posted by Prajwal Desai

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.

Get Windows OS Version using Command Line

 

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.

 

Get Windows OS Version using Command Line

 

3) Using WinVer command – The WinVer command displays the version of Windows installed, the build number and service packs that are installed.

Get Windows OS Version using Command Line

Share This Article
Prajwal Desai
Posted by Prajwal Desai
Follow:
Prajwal Desai is a Microsoft MVP in Intune and SCCM. He writes articles on SCCM, Intune, Windows 365, Windows Server, Windows 11, WordPress and other topics, with the goal of providing people with useful information.
8 Comments