Tip: Get Windows version / service pack number

It’s easy with virt-cat:

$ virt-cat YourWinGuest /WINDOWS/system32/prodspec.ini
;
;Note to user: DO NOT ALTER OR DELETE THIS FILE.
;
[SMS Inventory Identification]
Version=1.0

[Product Specification]
Product=Windows Server 2003, Enterprise Edition

Version=5.0
Localization=English
ServicePackNumber=0
BitVersion=40
[Version]
DriverVer=10/01/2002,5.2.3790.0

There’s not much documentation about the “prodspec” file, except that we know it gets written after an install and after a service pack update.

From what I can tell, BitVersion seems to be the level of encryption enabled (ie. 40 bit for export or 128 bit for US copies).

No news on whether this is a 32 or 64 bit version of Windows itself — the above is from a 32 bit version.

About these ads

3 Comments

Filed under Uncategorized

3 responses to “Tip: Get Windows version / service pack number

  1. ddd

    Sadly, not documented and not present on other versions of Windows (I am using 64bit Win2k8) :)

  2. rich

    Ick … well we can also grab the Windows Registry and get it from there, also using virt-cat …

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s