CmdID

CmdID / Commands

ver

Displays the operating system version number. Windows commands reference

On Windows, DOS

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Displays the operating system version number. This command is supported in the Windows Command prompt (Cmd.exe), but not in any version of PowerShell.

ver

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

If you want to get the operating system version number through Windows PowerShell, type

$PSVersionTable.BuildVersionIdentify

If you want to get the operating system version number through PowerShell 7.x.x, type

$PSVersionTable.OSIdentify
/?Displays help at the command prompt.

Windows

from tldr-pages, CC BY 4.0

Display the current Windows or MS-DOS version number.

Display the current version number

View/set reported DOS version.

Set the reported DOS version

VER set major_version minor_versionIdentify