Page 1 of 1 1
Topic Options
#178374 - 2007-07-25 11:14 AM PidCheck
Arend_ Moderator Offline
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.
 Code:
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
#178377 - 2007-07-25 11:19 AM Re: PidCheck [Re: Arend_]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
me box at work shows:

55375OEM
_________________________



Top
#178380 - 2007-07-25 11:31 AM Re: PidCheck [Re: Jochen]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
thx \:\)
Top
#178388 - 2007-07-25 11:56 AM Re: PidCheck [Re: Arend_]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
At work I get:

OEM (This does not specify royalty or normal OEM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#178389 - 2007-07-25 12:13 PM Re: PidCheck [Re: Mart]
Arend_ Moderator Offline
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 Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
270 for me but you may want to look here too

http://www.msfn.org/board/index.php?act=ST&f=34&t=61080

Top
#178393 - 2007-07-25 12:42 PM Re: PidCheck [Re: NTDOC]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
apronk,
Also 270
I think it is in your code
 Code:
    Case $pid => "640" AND $pid <= "652"
      $PidCheck = "Volume License (usually generated via 270 CID in setupp.ini)"

Shouldn't that read
 Code:
    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 Offline
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

 Code:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId


Regards,

Brad V

Top
#178399 - 2007-07-25 01:41 PM Re: PidCheck [Re: BradV]
Arend_ Moderator Offline
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
#178402 - 2007-07-25 03:45 PM Re: PidCheck [Re: Arend_]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh, you mean ProductID's?

I was just wondering why anyone would want a db of process ID's \:\)
_________________________
!

download KiXnet

Top
#178403 - 2007-07-25 03:46 PM Re: PidCheck [Re: Lonkero]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
I'm trying to figure out how many different types there are of the same OS besides your regular OEM, VLK and Retail.
Top
#178410 - 2007-07-25 05:15 PM Re: PidCheck [Re: Lonkero]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
On my XP Pro MSDN download

OEM (This does not specify royalty or normal OEM)
_________________________
Today is the tomorrow you worried about yesterday.

Top
#178413 - 2007-07-25 05:49 PM Re: PidCheck [Re: Gargoyle]
Arend_ Moderator Offline
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 Administrator Offline
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_ Moderator Offline
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
#178440 - 2007-07-26 09:38 AM Re: PidCheck [Re: Arend_]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Yes, and there is one for MS Office out there somewhere as well as I've seen it before just don't have the link.
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 293 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.067 seconds in which 0.023 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org