Home All Groups Group Topic Archive Search About

How to get Windows XP Edition?

Author
15 Jun 2006 3:55 PM
Terry Olsen
Does anyone know how i can get the XP Edition through code (Home, Pro, Corp,
Retail, OEM, MCE)?

I would assume it would be in the registry key
HKLM\Software\Microsoft\Windows NT\CurrentVersion\LicenceInfo, but I could
be wrong...and I don't know how to decode it anyway.

Thanks.

Author
15 Jun 2006 4:03 PM
Sanjib Biswas
Execute 'systeminfo' (without quotes) in the command prompt and then look
for OS Name.

Regards
Sanjib

Show quoteHide quote
"Terry Olsen" <tolse***@hotmail.com> wrote in message
news:%23fh4jQJkGHA.4828@TK2MSFTNGP04.phx.gbl...
> Does anyone know how i can get the XP Edition through code (Home, Pro,
> Corp, Retail, OEM, MCE)?
>
> I would assume it would be in the registry key
> HKLM\Software\Microsoft\Windows NT\CurrentVersion\LicenceInfo, but I could
> be wrong...and I don't know how to decode it anyway.
>
> Thanks.
>
Author
15 Jun 2006 4:13 PM
Sanjib Biswas
Oops you asked programatically..Giving you an example using VB.Net:
My.Computer.Info.OSFullName

Show quoteHide quote
"Sanjib Biswas" <sanjib.bis***@ieee.org> wrote in message
news:eOBw$UJkGHA.3484@TK2MSFTNGP03.phx.gbl...
> Execute 'systeminfo' (without quotes) in the command prompt and then look
> for OS Name.
>
> Regards
> Sanjib
>
> "Terry Olsen" <tolse***@hotmail.com> wrote in message
> news:%23fh4jQJkGHA.4828@TK2MSFTNGP04.phx.gbl...
>> Does anyone know how i can get the XP Edition through code (Home, Pro,
>> Corp, Retail, OEM, MCE)?
>>
>> I would assume it would be in the registry key
>> HKLM\Software\Microsoft\Windows NT\CurrentVersion\LicenceInfo, but I
>> could be wrong...and I don't know how to decode it anyway.
>>
>> Thanks.
>>
>
>
Author
15 Jun 2006 10:38 PM
Terry Olsen
This tells me "Windows XP Professional" but doesn't tell me whether it is a
Corporate, Retail, or OEM version.  I need to know this also.

Thanks.

Show quoteHide quote
"Sanjib Biswas" <sanjib.bis***@ieee.org> wrote in message
news:uw40aaJkGHA.1272@TK2MSFTNGP03.phx.gbl...
> Oops you asked programatically..Giving you an example using VB.Net:
> My.Computer.Info.OSFullName
>
> "Sanjib Biswas" <sanjib.bis***@ieee.org> wrote in message
> news:eOBw$UJkGHA.3484@TK2MSFTNGP03.phx.gbl...
>> Execute 'systeminfo' (without quotes) in the command prompt and then look
>> for OS Name.
>>
>> Regards
>> Sanjib
>>
>> "Terry Olsen" <tolse***@hotmail.com> wrote in message
>> news:%23fh4jQJkGHA.4828@TK2MSFTNGP04.phx.gbl...
>>> Does anyone know how i can get the XP Edition through code (Home, Pro,
>>> Corp, Retail, OEM, MCE)?
>>>
>>> I would assume it would be in the registry key
>>> HKLM\Software\Microsoft\Windows NT\CurrentVersion\LicenceInfo, but I
>>> could be wrong...and I don't know how to decode it anyway.
>>>
>>> Thanks.
>>>
>>
>>
>
>
Author
16 Jun 2006 1:14 PM
C-Services Holland b.v.
Terry Olsen wrote:

> This tells me "Windows XP Professional" but doesn't tell me whether it is a
> Corporate, Retail, or OEM version.  I need to know this also.
>
> Thanks.

This makes me curious. What difference would it make to your program. I
can understand wanting to know if it's home or pro, but oem/corp/retail,
what's the point?

--
Rinze van Huizen
C-Services Holland b.v
Author
16 Jun 2006 2:01 PM
Terry Olsen
Writing a PC Auditing program. I want to include this in the information
presented to the user.  Could be useful information at some point.

Show quoteHide quote
"C-Services Holland b.v." <c**@REMOVEcsh4u.nl> wrote in message
news:ac6dnbQYS-xqMA_ZRVnyhQ@zeelandnet.nl...
> Terry Olsen wrote:
>
>> This tells me "Windows XP Professional" but doesn't tell me whether it is
>> a Corporate, Retail, or OEM version.  I need to know this also.
>>
>> Thanks.
>
> This makes me curious. What difference would it make to your program. I
> can understand wanting to know if it's home or pro, but oem/corp/retail,
> what's the point?
>
> --
> Rinze van Huizen
> C-Services Holland b.v
Author
19 Jun 2006 7:52 AM
DJ Tuneman
look at the registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductID

If it's OEM, then "OEM" will be part of the product key.  Whether it's
corporate or not is also determined by the key but I don't know the
algorithm to calculate that....sorry.






Show quoteHide quote
"Terry Olsen" <tolse***@hotmail.com> wrote in message
news:%23Xt0g1UkGHA.4368@TK2MSFTNGP03.phx.gbl...
> Writing a PC Auditing program. I want to include this in the information
> presented to the user.  Could be useful information at some point.
>
> "C-Services Holland b.v." <c**@REMOVEcsh4u.nl> wrote in message
> news:ac6dnbQYS-xqMA_ZRVnyhQ@zeelandnet.nl...
>> Terry Olsen wrote:
>>
>>> This tells me "Windows XP Professional" but doesn't tell me whether it
>>> is a Corporate, Retail, or OEM version.  I need to know this also.
>>>
>>> Thanks.
>>
>> This makes me curious. What difference would it make to your program. I
>> can understand wanting to know if it's home or pro, but oem/corp/retail,
>> what's the point?
>>
>> --
>> Rinze van Huizen
>> C-Services Holland b.v
>
>
Author
19 Jun 2006 10:30 AM
Cor Ligthert [MVP]
Terry,

I don't know if everything you need is in it,

But WMI with
Operating system
Operating system settings
OperatingSystem

Gives you a bunch of information about the used Operating System.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_operatingsystem.asp

I assume that you know how to process WMI.

Cor

Show quoteHide quote
"Terry Olsen" <tolse***@hotmail.com> schreef in bericht
news:%23Xt0g1UkGHA.4368@TK2MSFTNGP03.phx.gbl...
> Writing a PC Auditing program. I want to include this in the information
> presented to the user.  Could be useful information at some point.
>
> "C-Services Holland b.v." <c**@REMOVEcsh4u.nl> wrote in message
> news:ac6dnbQYS-xqMA_ZRVnyhQ@zeelandnet.nl...
>> Terry Olsen wrote:
>>
>>> This tells me "Windows XP Professional" but doesn't tell me whether it
>>> is a Corporate, Retail, or OEM version.  I need to know this also.
>>>
>>> Thanks.
>>
>> This makes me curious. What difference would it make to your program. I
>> can understand wanting to know if it's home or pro, but oem/corp/retail,
>> what's the point?
>>
>> --
>> Rinze van Huizen
>> C-Services Holland b.v
>
>