ver

Displays the operating system version number.

This command is supported in the Windows Command prompt (Cmd.exe), but not in PowerShell.

Syntax

ver

Parameters

Parameter Description
/? Displays help at the command prompt.

Examples

To obtain the version number of the operating system from the Command shell (cmd.exe), type:

ver

The ver command does not work in PowerShell. To obtain the OS version from PowerShell, type:

$PSVersionTable.BuildVersion

Additional References