Sometimes you want to know the Windows Version and Service Pack number.
A GUI version is very simple: run winver.exe, it will give you dialogs like these ad the Microsoft Knowledge Base article 310104 explains.
A console version can be done in several different ways:
- wmic os get Caption, CSDVersion
uses the WMIC commandline tool to get you properties from the WMI Win32_OperatingSystem class - systeminfo | findstr /B /C:”OS Name” /C:”OS Version”
uses the systeminfo and findstr tools to get you various properties from your OS.
–jeroen
via: [WayBack] windows command line: can I tell Service pack number? – Super User.





