Florian
Florian

Reputation: 4728

How to distinguish Windows 7 and Windows 2008 R2

I need to distinguish Windows 7 and Windows 2008 R2 but I don't know how to. The OS Version property return the same number "6.1.7600.0"

Regards,

Florian

Upvotes: 8

Views: 3997

Answers (2)

Iain Ward
Iain Ward

Reputation: 9936

Use GetProductInfo, Windows 7 and Windows Server 2008 R2 have different Product Type numbers.

alt text

Source

Upvotes: 11

Lloyd
Lloyd

Reputation: 29668

You might find this useful:

http://www.codeproject.com/KB/system/osversion.aspx

OSProductType on that should be Server

Upvotes: 1

Related Questions