#178374 - 2007-07-25 11:14 AM
PidCheck
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
I am trying to get a database full of PID's. If anyone feel like helping me out run my UDF and post your result if it's not a already in there.
Function PIDCheck
$pid = Right(ReadValue('HKLM\SYSTEM\Setup\Pid','Pid'),3)
Select
Case $pid = "000"
$PidCheck = "Other (includes some retail, upgrade and evaluation versions)"
Case $pid = "007"
$PidCheck = "Retail"
Case $pid = "009"
$PidCheck = "Not for resale - bundle"
Case $pid = "011"
$PidCheck = "Upgrade (XP Home?)"
Case $pid = "OEM"
$PidCheck = "OEM (This does not specify royalty or normal OEM)"
Case $pid = "271"
$PidCheck = "Volume License"
Case $pid = "296"
$PidCheck = "MSDN"
Case $pid = "308"
$PidCheck = "Microsoft Action Pack subscription"
Case $pid = "347"
$PidCheck = "Microsoft Action Pack subscription"
Case $pid = "335"
$PidCheck = "Retail"
Case $pid => "640" AND $pid <= "652"
$PidCheck = "Volume License (usually generated via 270 CID in setupp.ini)"
Case $pid = "699"
$PidCheck = "Volume Windows XP Tablet Edition"
Case $pid = "071"
$PidCheck = "Unknown"
Case 1
$PidCheck = "Your PID is new, please post it: " + $pid
EndSelect
EndFunction
? PIDCheck
|
|
Top
|
|
|
|
#178380 - 2007-07-25 11:31 AM
Re: PidCheck
[Re: Jochen]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
thx
|
|
Top
|
|
|
|
#178389 - 2007-07-25 12:13 PM
Re: PidCheck
[Re: Mart]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
Thx Mart
|
|
Top
|
|
|
|
#178390 - 2007-07-25 12:27 PM
Re: PidCheck
[Re: Arend_]
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11631
Loc: CA
|
|
|
Top
|
|
|
|
#178393 - 2007-07-25 12:42 PM
Re: PidCheck
[Re: NTDOC]
|
Witto
MM club member
   
Registered: 2004-09-29
Posts: 1828
Loc: Belgium
|
apronk, Also 270 I think it is in your code
Case $pid => "640" AND $pid <= "652"
$PidCheck = "Volume License (usually generated via 270 CID in setupp.ini)"
Shouldn't that read
Case $pid => "640" OR $pid <= "652"
$PidCheck = "Volume License (usually generated via 270 CID in setupp.ini)"
|
|
Top
|
|
|
|
#178396 - 2007-07-25 12:57 PM
Re: PidCheck
[Re: Witto]
|
BradV
Seasoned Scripter
  
Registered: 2006-08-16
Posts: 687
Loc: Maryland, USA
|
My XP Professional Version 2002 SP2 system at work has a Pid of 55274270. The Pid of my w2k box is 51873 but is not found the in the same registry location. It is the first part (before the hyphen) of
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId
Regards,
Brad V
|
|
Top
|
|
|
|
#178399 - 2007-07-25 01:41 PM
Re: PidCheck
[Re: BradV]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
Witto, nope 
270 is the most common code for VLK's Volume License Keys. Mine is 270 too.
BradV: thx
|
|
Top
|
|
|
|
#178413 - 2007-07-25 05:49 PM
Re: PidCheck
[Re: Gargoyle]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
thx Gargoyle 
It's very odd, Microsoft doesn't specify wich PID is what anywhere. The database in the script is what I've gathered so far, to explain a bit further, the first 5 digits are: The OS (for instance XP, 2K3 etc) The Edition (Home, Professional, Enterprise, Standard etc.) and Language, although I'm not sure about the language.
The last 3 digits are the PID type, for instance OEM, Retail and VLK. The pid is on the cd as well in the \i386\setupp.ini (yes double pp's) From there you system gets installed. You can change the last 3 digits in the setupp.ini, it will not change the type however but for instance changing OEM to 270 will make a VLK key valid instead of an OEM key when prompted for the key during the setup.
The first 5 digit's can't be changed, they are related to pidgen.dll and a number of other files. After researching this I found it interesting to find out how much different types there are hence why I wrote this UDF and ask you all to join. 
|
|
Top
|
|
|
|
#178417 - 2007-07-25 06:33 PM
Re: PidCheck
[Re: Arend_]
|
Allen
KiX Supporter
   
Registered: 2003-04-19
Posts: 4567
Loc: USA
|
I was thinking at some point in the past I was looking at this type of thing... see if this site give you some info...
http://wiki.djlizard.net/Product_IDs
|
|
Top
|
|
|
|
#178436 - 2007-07-26 08:41 AM
Re: PidCheck
[Re: Allen]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
Thanks Allen, that does help alot and basically makes my udf obsolete, it's good to see that someone else is trying to achieve the same thing in a wiki form.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 302 anonymous users online.
|
|
|