Multi-OEM/Retail Project {MRP} - Mk3

Discussion in 'MDL Projects and Applications' started by mxman2k, Oct 15, 2016.

  1. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,292
    94,812
    450
  2. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,359
    7,078
    210
    "Windows VL Key Management" - What is it supposed to show exactly? Even for Windows 7 Pro KMS_CLIENT, it shows "Not used".
     
  3. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    Well if certain criteria is met it will show data such as what channel is used.
    GVLK {PKC}, KMSClient {PKC} etc...

    it partly uses:
    wmic path SoftwareLicensingProduct where (Description like '%%KMSCLIENT%%' and LicenseStatus='1') get Name 2>nul | findstr /i "Windows" 1>nul && set "KMSInstalled=Yes" || SET "KMSinstalled=No"

    Depending on that result the line will show the channel info or not used.

    It has evolved into a quite complex routine over time and there may be some glitches or errors that do not show, 90%+ of the time it works.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,226
    84,921
    340
    This line is the culprit
    Code:
    wmic path SoftwareLicensingProduct where (Description like '%%KMSCLIENT%%' and LicenseStatus='1') get Name 2>nul | findstr /i "Windows" 1>nul && set "KMSInstalled=Yes" & SET "KMSisUsed=Yes" || set "KMSInstalled=No" & SET "NoShowMAKInfo=1" & SET "KMSisUsed=No"
    it should use parentheses for multiple variables :)
    Code:
    wmic path SoftwareLicensingProduct where (Description like '%%KMSCLIENT%%' and LicenseStatus='1') get Name 2>nul | findstr /i "Windows" 1>nul && (set "KMSInstalled=Yes" & SET "KMSisUsed=Yes") || (set "KMSInstalled=No" & SET "NoShowMAKInfo=1" & SET "KMSisUsed=No")
     
  5. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    At times i get confused when to use ( ) or not :D:D have made the changes to the code now.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    #5186 mxman2k, Aug 19, 2019
    Last edited: Aug 19, 2019
    (OP)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    #5187 mxman2k, Aug 19, 2019
    Last edited: Aug 19, 2019
    (OP)
    I connected to the internet and the Pro HWID took over :eek:, so the MAK key was ignored totally anyway!! :mad:

    Looks like HWID/MSDM gets checked before KMS in the Activation Server's hierarchy....
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    Let me send you 98.1 to see if that not used is changed on that OS...

    *sent via PM*
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    Sorted :D

    Will upload this new QT 98.1 with the fixed 'bug/glitch' shortly to replace 98.0 as I got to update all links etc (again lol).

    Thanks @abbodi1406 you saved the day again for me :hug2:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    Uploaded QT98.1 - 2nd post download link, password and hashes updated. :)

    See above for what changed, unless you use Volume or KMS Editions QT v98.0 will still work ok as normal consumer/Non Volume Editions are usually MSDM/SLIC/HWID or Retail Key so the 'VL Key Management' would not be used anyway.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    did you set the Advanced option in the creator? ( or use other reg entries to adjust the WU internal settings to never or infinite? ) as otherwise that part will be default Enabled. :g:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,292
    94,812
    450
    No mrp used on that install, clean updated by simplix and oem folder from kms_vl_all v32.
     
  14. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    weird as it should be 'Enabled' by OS default more so if MRP was not used to adjust anything...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    #5198 mxman2k, Aug 19, 2019
    Last edited: Aug 19, 2019
    (OP)
    How the QT checks the registry value.

    Code:
    REM for Win7/8
    REG QUERY "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DisableOSUpgrade"
    
    REM for Win10
    REG QUERY "HKLM\SOFTWARE\Policies\Microsoft\WindowsStore" /v "DisableOSUpgrade"
    
    REM Results: 0x0 = Enable Upgrading {default} (also if value/key not exist).
    REM          0x1 = Disable Upgrading
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,292
    94,812
    450
    This probably doesn't apply to win 7 enterprise, will check with other 7 sku?