Microsoft PID Checker

Discussion in 'MDL Projects and Applications' started by user_hidden, Jul 22, 2015.

  1. user_hidden

    user_hidden MDL Expert

    Dec 18, 2007
    1,026
    977
    60
    #1 user_hidden, Jul 22, 2015
    Last edited: Feb 22, 2018
  2. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    5,762
    13,239
    180
  3. user_hidden

    user_hidden MDL Expert

    Dec 18, 2007
    1,026
    977
    60
  4. s1ave77

    s1ave77 MDL Guide Dog/Dev

    Aug 15, 2012
    14,971
    19,899
    340
    Is it different from janek2012s?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. user_hidden

    user_hidden MDL Expert

    Dec 18, 2007
    1,026
    977
    60

    pretty similar to Janek2012's
    tool except mine will NOT test XP keys only Vista+
     
  6. user_hidden

    user_hidden MDL Expert

    Dec 18, 2007
    1,026
    977
    60
    I will probably address that in the future but not at present as I am pretty busy in life.
    What you are looking for is an auto check through the pkeyconfigs to identify a key when you don't know what package it belongs to.
     
  7. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    5,762
    13,239
    180
    Well not exactly looking for as Ratiborus' PIDkey actually does that. :)
    Either way thank you for providing us a great tool of yours.
     
  8. user_hidden

    user_hidden MDL Expert

    Dec 18, 2007
    1,026
    977
    60
    each tool has it's use.
     
  9. QuantumBug

    QuantumBug MDL Developer

    Mar 7, 2012
    1,488
    1,327
    60
    #10 QuantumBug, Jul 23, 2015
    Last edited: Jul 23, 2015
    Great new tool buddy, thanks.

    Just a few improvement suggestions:

    - Put the check into a background worker or thread as the code is doing work on the main thread and causing the app to not respond temporarily.
    - Crypto ID - Add a substring check as Crypto ID on Windows 7 showed 0212, which is actually 212. not really essential but I can send how I do it if you like?
    - Use upper Character Casing on the Product Key Textbox Control (now I'm just picking, sorry)
    - Make the Output console ReadOnly, as I can delete data from the textbox.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. fockoff

    fockoff MDL Junior Member

    Jan 5, 2015
    56
    1
    0
    It'd be nicer if the program supported Office 2007.
     
  11. user_hidden

    user_hidden MDL Expert

    Dec 18, 2007
    1,026
    977
    60
    done

    done that way on purpose for 4 digit display

    done

    done


    looking at other things so when it'll be ready to upload a new version I will.
     
  12. HALIKUS

    HALIKUS MDL Addicted

    Jul 29, 2009
    527
    369
    30
    Nice tool. I have 2 requests if they are easy to implement. The first is to automatically load a key from a file named ie: key.txt if it resides in the same directory. The second is x64 if possible. I'm used to autoit, and in that case it's simply checking the box x64 when you compile.

    There are a few PID checkers, but none offer x64 support. Why i would like x64 is for use in WinPE x64. Lets say you get a laptop with a blank HD and wish to install the appropriate OEM version based upon the Bios key. I currently run Produkey from nirsoft wich gets me the key from bios and outputs it to a txt file. At this point i have the key but i have no idea wich sku it would apply to. As most laptops ship with x64 EFI i am generally fubar unless i have a secondary online PC or i boot from CSM to use an x86 PID checker. I will swear allegiance to the first PID checker that runs x64 :)
     
  13. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,518
    651
    60
    #14 Flipp3r, Jul 25, 2015
    Last edited by a moderator: Apr 20, 2017
    Help with Reading OEM-DM Key & PID Info from WinPE
    From WinPE you can use:
    Code:
    WMIC Path SoftwareLicensingService Get OA3xOriginalProductKey
    OA3Tool from the ADK has a "/CheckEdition" which may be useful. I've never tried it though...
     
  14. HALIKUS

    HALIKUS MDL Addicted

    Jul 29, 2009
    527
    369
    30
    #15 HALIKUS, Jul 25, 2015
    Last edited by a moderator: Apr 20, 2017
    @flipper, nice. /checkedition is tomorrows project from the looks of it, and OA3xOriginalProductKey may shave .5 meg off a 3 meg gui replacing Produkey :).

    What i used in autoit to get the key as a variable ....
    Code:
    Run(@ComSpec & " /C " & @TempDir & '\ProduKey.exe /WindowsKeys 1 /OfficeKeys 0 /IEKeys 0 /SQLKeys 0 /ExchangeKeys 0 /ExtractEdition 1 /stext ' & @TempDir & '\OEMProduKeyOnline.txt /sort "Product Key" /sort "Product Edition" /sort "Product Name"', "", @SW_HIDE)
    Sleep(500)
    $ProduKey = ""
    $fileProduKey = @TempDir & '\OEMProduKeyOnline.txt'
    FileOpen($fileProduKey, 0)
    Local $ProduKey2 = FileReadLine($fileProduKey, 4)
    Global $ProduKey = StringRight($ProduKey2, 29) ; Retrieve 25 characters from the right of the string.
    ;MsgBox($MB_SYSTEMMODAL, "", "The OEM Bios Key is: " & $ProduKey)
    FileClose($fileProduKey)
    
     
  15. cnminaco

    cnminaco MDL Novice

    Jul 16, 2015
    3
    0
    0
    Thank Button can not click !Who can tell me why?
     
  16. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,518
    651
    60
    #17 Flipp3r, Jul 25, 2015
    Last edited by a moderator: Apr 20, 2017
    Awesome. I've found that the wmic command isn't working under winpe 10. I'll have to investigate further...
     
  17. hungk

    hungk MDL Novice

    Jul 5, 2015
    8
    0
    0
    Great new tool , thanks.
     
  18. spinalgr1998

    spinalgr1998 MDL Member

    Oct 16, 2014
    119
    5
    10
    also add an option "automatic key identification" and make the fonts a little bigger
     
  19. ugurano

    ugurano MDL Junior Member

    Apr 14, 2014
    58
    3
    0
    dsadad

    awesome working great;)