||This article needs additional citations for verification. (April 2008)
ver is a command in various DOS, OS/2 and Microsoft Windows command line interpreters (shells) such as
cmd.exe and 4DOS/4NT. It prints the name and version of the operating system or the command shell.
C:\Documents and Settings\User>ver
Microsoft Windows XP [Version 5.1.2600]
Some versions of MS-DOS support an undocumented
/r switch, which will show the revision as well as the version. The command is also available in the open source MS-DOS emulator DOSBox.
Microsoft Windows also includes a GUI variant of the command called
winver, which shows the Service Pack installed (if any) as well as the version.
Windows also includes the
setver command that is used to set the version number that the MS-DOS subsystem (NTVDM) reports to a DOS program.
The following table lists version numbers from various operating systems:
|Windows 95 OSR2
|Windows NT 4.0
|Windows 98 SE
|Windows Server 2003
Windows Server 2008
|Windows Vista, SP2
Windows Server 2008 R2
|Windows 7 SP1
Windows Server 2008 R2 SP1
Windows Server 2012
Windows Server 2012 R2
|Windows 10 Technical Preview 1
|Windows 10 Technical Preview 2
|Windows 10 Technical Preview 3
|Windows 10 Technical Preview 4