ver
Displays the operating system version number. Windows commands reference
On Windows, DOS
Windows
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
verIdentifyIf you want to get the operating system version number through Windows PowerShell, type
$PSVersionTable.BuildVersionIdentifyIf you want to get the operating system version number through PowerShell 7.x.x, type
$PSVersionTable.OSIdentify/?Displays help at the command prompt.Windows
Display the current Windows or MS-DOS version number.
Display the current version number
verIdentifyDOS
View/set reported DOS version.
Set the reported DOS version
VER set major_version minor_versionIdentify