Sometimes you want to know which SP is installed on Windows with built-in tools only.
For end-users the fastest way is to start Winver, it will give you dialogs like these (left: XP with SP3, right: Windows 7 without any SP):
For command-line lovers, the one I like this most is this:
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
[WayBack] systeminfo can show a truckload of information, and [WayBack] findstr condenses this to what I need.
On Windows XP SP3, it shows this:
OS Name: Microsoft Windows XP Professional
OS Version: 5.1.2600 Service Pack 3 Build 2600
On vanilla Windows 7, it shows this:
OS Name: Microsoft Windows 7 Ultimate
OS Version: 6.1.7600 N/A Build 7600
–jeroen
via: [WayBack] windows command line: can I tell Service pack number? – Super User.