"Check Windows Version in Command Line: A Step-by-Step Guide"

Gerald Jun 16, 2026

Checking Windows Version in Command Line

A Beginner's Guide to the Windows Command Prompt
A Beginner's Guide to the Windows Command Prompt

Are you a system administrator or a tech enthusiast trying to troubleshoot an issue on your Windows machine? One of the first steps to resolving a problem is identifying the operating system version. While Windows has a graphical interface for viewing system information, there are several ways to check the Windows version from the command line. In this article, we will walk you through the steps to check the Windows version using the command line.

Essential Windows CMD Commands You Should Know
Essential Windows CMD Commands You Should Know

Using the `ver` Command

The simplest way to check the Windows version is by using the `ver` command in the Command Prompt. To do this, follow these steps:

the windows command check page is shown in this screenshote image, and it appears to be on display
the windows command check page is shown in this screenshote image, and it appears to be on display
  • Press the Windows key + R to open the Run dialog box.
  • Type `cmd` in the Run dialog box and press Enter to open the Command Prompt.
  • Type `ver` and press Enter to execute the command.

The `ver` command will display the Windows version number, for example: `Microsoft Windows [Version 10.0.19042.1052]`.

20 Cool Command Line Tricks for Windows and macOS
20 Cool Command Line Tricks for Windows and macOS

Using the `winver` Command

Another way to check the Windows version is by using the `winver` command. This command is similar to the `ver` command but provides more detailed information about the system, including the Windows version, build number, and service pack version.

  • Open the Command Prompt as described in the previous section.
  • Type `winver` and press Enter to execute the command.
the user interface for windows run commands is shown in this screenshote, which shows how
the user interface for windows run commands is shown in this screenshote, which shows how

The `winver` command will display a dialog box with detailed system information, including the Windows version.

Using the `systeminfo` Command

The `systeminfo` command is another way to check the Windows version from the command line. This command provides a wealth of information about the system, including the Windows version, build number, service pack version, and hardware information.

15+ Best CMD Tricks And Hacks (Command Prompt) 2025 - [Top List] - Safe Tricks
15+ Best CMD Tricks And Hacks (Command Prompt) 2025 - [Top List] - Safe Tricks
  • Open the Command Prompt as described in the previous section.
  • Type `systeminfo` and press Enter to execute the command.

The `systeminfo` command will display a detailed report about the system, including the Windows version.

a black background with green and blue text that reads must - know windows commands
a black background with green and blue text that reads must - know windows commands
Advanced Command Prompt or CMD Tricks for Windows 11/10
Advanced Command Prompt or CMD Tricks for Windows 11/10
How to Find a File or Folder in MS-DOS or Windows Command Line
How to Find a File or Folder in MS-DOS or Windows Command Line
6 Fun Tricks You Can Do in Windows Command Prompt
6 Fun Tricks You Can Do in Windows Command Prompt
A Beginner's Guide to the Windows Command Prompt
A Beginner's Guide to the Windows Command Prompt
Windows RUN Commands for IT Engineers | Ganesh Sharma posted on the topic | LinkedIn
Windows RUN Commands for IT Engineers | Ganesh Sharma posted on the topic | LinkedIn
a black and white poster with instructions on how to use the font for an application
a black and white poster with instructions on how to use the font for an application
How to run Windows Updates from Command Line in Windows 11
How to run Windows Updates from Command Line in Windows 11
How to Use the Help Command in Windows
How to Use the Help Command in Windows
10 Command Prompt Tricks that Every Windows User Should Know - MiniTool
10 Command Prompt Tricks that Every Windows User Should Know - MiniTool
How to Check Python Version - Windows, Mac, and Linux Guide - SmashingApps.com
How to Check Python Version - Windows, Mac, and Linux Guide - SmashingApps.com
How to customize the Command Prompt (CMD) in Windows 10
How to customize the Command Prompt (CMD) in Windows 10
How to Use the Tracert Command in Windows
How to Use the Tracert Command in Windows
Running Windows Update from Command Line: 3 Simple Methods - Tech2Geek
Running Windows Update from Command Line: 3 Simple Methods - Tech2Geek
These Windows commands are easy to learn but make a big difference
These Windows commands are easy to learn but make a big difference
Repair Windows 11/10 Using Command Prompt (SFC, DISM, CHKDSK)
Repair Windows 11/10 Using Command Prompt (SFC, DISM, CHKDSK)
How to Restore Your Desktop Icon Positions on Windows
How to Restore Your Desktop Icon Positions on Windows
8 CMD Commands to Manage Wireless Networks on Windows
8 CMD Commands to Manage Wireless Networks on Windows
the info sheet shows how to check your cpu usage and fix high cpus in windows
the info sheet shows how to check your cpu usage and fix high cpus in windows
How to Fix Corrupted System Files on Windows 11? 7 Ways!
How to Fix Corrupted System Files on Windows 11? 7 Ways!

Using PowerShell

PowerShell is a powerful scripting language and shell developed by Microsoft. You can use PowerShell to check the Windows version using the following command:

  • Open PowerShell as an administrator by right-clicking on the Start button and selecting Windows PowerShell (Admin).
  • Type `$PSVersionTable` and press Enter to execute the command.

PowerShell will display a table with information about the Windows version and other system settings.

Conclusion

Checking the Windows version from the command line is a straightforward process that can be accomplished using several different commands, including `ver`, `winver`, `systeminfo`, and PowerShell. By following the steps outlined in this article, you can easily determine the Windows version on your machine and troubleshoot any issues that may arise.