Multi-OEM/Retail Project {MRP} - Mk3

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

  1. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,315
    21,049
    210
    The Reason Code database is now at an eye watering 375 codes and descriptions :eek:, took some tracking down most of them!

    I think it covers a very large proportion of errors that can occur in the Software Licensing/Activation side. :D

    Considering 90%+ should not occur, so they never be seen in normal circumstances - unless you are tampering with the WAT or other License files.

    They are added to the next version of MRP and QT.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,315
    21,049
    210
    The Query Tool v34 has been uploaded and first post password has been updated.

    Quick Summary

    Added more License Reason Codes/Text (376 now). Most may never be seen but they are there for those odd occasions. :p

    On the display screen the Reason Code and Text is now on separate lines, the saved report they are on one line. This is to allow for extra wording without messing up the display version.

    Other minor code tweaks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,315
    21,049
    210
    If there was a problem in the KMS side, a Reason Code would of been displayed with a possible cause of failure. The code/texts shown are for a Genuine KMS system but they might get displayed for the 'MDL Solutions' in some circumstances.

    Such as:
    Code:
    RPC Server unavailable. Firewall settings are not configured on the KMS host.
    DNS Name does not exist. The KMS client cannot find KMS SRV RRs in DNS.
    No records found for given DNS query. The KMS client cannot find KMS SRV RRs in DNS.
    The count reported by your Key Management Service {KMS} is insufficient.
    The Key Management Service {KMS} is not enabled.
    The Key Management Server {KMS} is not activated. KMS needs to be activated.
    The specified Key Management Service {KMS} cannot be used.
    Virtual Machine Found. The Key Management Service {KMS} is not supported in this mode.
    The Key Management Service {KMS} determined that the requested timestamp is invalid.
    The Key Management Service {KMS} could not be contacted.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. bkul

    bkul MDL Member

    Apr 2, 2015
    163
    44
    10
    #1665 bkul, Nov 26, 2017
    Last edited: Nov 26, 2017
    Could you show values of the LicenseStatusReason for the cases of Activation by the Retail, OEM keys? It concerns Windows 7, 8, 8.1 and Windows 10 preinstalled by OEM.
    BTW: License Status Reason - 4004F401: The activation server reported that the computer has a valid Digital License.
    was replaced by the : The Software Licensing Service reported that the aplication has a store license

    Really I have digital certificate for ProWS
     
  5. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,315
    21,049
    210
    #1666 mxman2k, Nov 26, 2017
    Last edited: Nov 26, 2017
    (OP)
    The method i obtain the OEM / RETAIL / VOLUME_KMS-MAK is done via a slmgr.vbs /DLI call and parse the result with a FINDSTR i could not find another way that was reliable.
    Code:
    CScript slmgr.vbs /dli >"ChanActType.txt"
    findstr /I "\<RETAIL\>" "ChanActType.txt" >nul
    IF NOT ERRORLEVEL 1  SET "RETOEMKMSMAK={Retail}"
    
    findstr /I "\<OEM_DM\>" "ChanActType.txt" >nul
    IF NOT ERRORLEVEL 1  SET "RETOEMKMSMAK={OEM_DM}"
    
    Others:
    VOLUME_KMSCLIENT, VOLUME_MAK, OEM_COA_NSLP, OEM_SLP, OEM_COA_SLP
    The reason codes only are for 'errors' as such. Why m$ decided to use one for a store/DL is a puzzle as all other codes/text are for problems.

    I had the DL text originally showing about a store license but changed it as all info i found mentioned a Digital License which is what is shown on the Activation screen in the Settings App. I just kept it all same wording.

    Reason Code 0000000 is from what i can gather about a valid Product key.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,315
    21,049
    210
    For Servers there is a whole new set of codes, for shutdown, BSOD's etc, which for the QT/MRP use is not required and i not want to spend another x days finding all those out which in most cases won't be necessary anyway. Plus those that know/maintain Servers would most likely understand those so i have decided not to pursue that side.

    Some standard reason codes don't have any actual text as such just some cryptic wording, those i had to word in a different way to make sense to the average person.

    Such as:
    0xC004D00C
    SL_REMAPPING_SP_PUB_API_TOO_MANY_LOADED_ENVIRONMENTS

    0xC004D012
    SL_REMAPPING_SP_PUB_API_BAD_GET_INFO_QUERY

    The above reference to Software Licensing and Security Processor!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,315
    21,049
    210
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. bkul

    bkul MDL Member

    Apr 2, 2015
    163
    44
    10
  9. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,315
    21,049
    210
    #1670 mxman2k, Nov 26, 2017
    Last edited: Nov 26, 2017
    (OP)
    I found that website by pure luck (or accident not sure which :p), yes a LOT of codes, and i still don't think they cover every code m$ has within the OS's.

    It is a complicated area as you can see , some are covered by slmgr /dli others are reason codes it took me a while to get the system i have in place to work as it does, i know it not perfect but it does work 95%+ of the time as it should.

    Yes the Store/DL is a strange one. If you buy say a App from the M$ Store technically you can check that app's license which will return the 4004F401 (store license) for it, not sure how it can be done but in theory that is what would get returned.

    The OS isn't really a App but it can be worded as a Store Licence (if the key was bought via that), or a Digital License if upgraded from a valid previous OS (7/8.x), m$ certainly like to make things overly complicated. Either that or it just a sloppy forethought process and a 'bodge' to get things to 'work' - who knows.

    I am guessing the 'Store License' wording was changed because of the changes at the end of the year about the 'free' upgrade that still works as after the time is up then only a purchased license from the Store, (or retail bought from a shop)/Pre-installed OEM MSDM computer will be the normal way to obtain a genuine version.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. bkul

    bkul MDL Member

    Apr 2, 2015
    163
    44
    10
    #1671 bkul, Nov 26, 2017
    Last edited: Nov 26, 2017
    Agree, BUT the system itself can distingush and thus it is necessary to digg WHERE the difference lies :)
    P.S: it can be as simple as activation server URL but I can not verify as have no ProWS bought in the Store
     
  11. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,315
    21,049
    210
    I fully agree, but so far this has been a challenge i have not 'mastered' (yet) , I don't give up easy, i may have a rest for a while, but i return with a vengeance and beat the living :censored: of it until i find a way. :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. bkul

    bkul MDL Member

    Apr 2, 2015
    163
    44
    10
    Same for me and the only problem I see: get full HKLM-export from a guy who has ProWS bougt in the Store :) No need to look into SPP-files as all the data in these files is present in HKLM.
     
  13. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,315
    21,049
    210
    It may not be a simple registry key change! It may even be a file that is downloaded that is checked/changed which indicates to the OS what type of license is installed/used. Or even a combination of the two.

    I think some of the information could be found within the Windows setup files as they seem to do some checks during installation (offline and online), more so with the latest insider builds (rs4). Sadly i not have the time or tools to check if this is the case.

    I do know it now pre-checks the MSDM key even if i explicitly not insert the key ie if the OS installed is Pro and the MSDM key is for Home, in MRP i not insert the key (because it won't activate). M$ are changing things behind the scenes and getting a bit more clever!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,315
    21,049
    210
    CompositionED is not a reliable method as such as @s1ave77 found out, so we use a WMIC method to obtain the correct information, as License switches ie just changing a key can cause some confusion in the results. That is why the QT can put up a message that a possible License switch has occurred. ;)

    ProWS is a odd ball one at the moment as using just the key to change from say Pro does not give the full WS 'experience', converting Home to ProWS via DISM does change it and the CompositionID will say ProfessionalWorkStation. As it is not a General Release as such as in a ISO (you have to 'create' it), i have not continued with much about it, my test pc has a DL for ProWS obtained via the Insider (old version) then upgrading etc.

    When it becomes available in the main ISO's and updates work for it then i will do more tests on that version. For now its not a priority.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. bkul

    bkul MDL Member

    Apr 2, 2015
    163
    44
    10
    Seems it NEVER happens as NO ONE file is downloaded when changing key in Pro getting ProWS. But thousans of chages are performed in the Registry. That is Pro ISO already contains ALL necessary files for the ProWS, EDU, ProEDU any key change activates components like ReFS formatting which are absent in Pro.
     
  16. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,315
    21,049
    210
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,588
    1,584
    150
    #1679 tcntad, Nov 26, 2017
    Last edited: Nov 26, 2017
    OS: Windows server 2016 1607
    MRP: ZodiacCharts_74.0_16th_Nov_2017
    SSD: Samsung 120GB
    MB: Asus H110-m-K


    I installed it on a spare SSD on my server. It installs fine but some errors applying foundation and other stuff fails totally. Error applying it and a batch file isnt found..
    I will install in vmware to try it. Also try record it..

    Edit ofc: I understood some files may not be found if the script is lookin for config files but is something wrong anyway?
    Edit 2: Error is it cant find "desktopexperience" feature


    MRP Project
    Multi-OEM/Retail Project Version : 171116-R74.0 - BaseLine [MRP/MDL]

    Required project files extracted successfully.

    OEM's folder detected, structure appears OK.

    No Config File Detected - Using Default Option Settings.

    MRP Logging Mode : Standard
    Confirm File Delete : Disabled
    W10 TitleBar Color : Disabled
    'ThisPC' On Desktop : Disabled

    OS Installation Date/Time: 2017-11-26 -- 3:17pm

    Note: Lock/Logon screen problems with Windows 10 RS1 January 2017 Refresh.

    [OSINF] =======================
    [OSINF] Detected OS Information
    [OSINF] =======================
    [OSINF] Version Installed : Windows Server 2016 Standard x64
    [OSINF] Edition {Registry} : ServerStandard
    [OSINF] Edition {WMIC} : ServerStandard
    [OSINF] Build Information : 14393.447.amd64fre.rs1_release_inmarket.161102-0100
    [OSINF] Update Build Revision : 447
    [OSINF] Edition Language/Code : en-US / 1033 {409h}
    [OSINF] Locale : sv-SE
    [OSINF] Language Name Value : SVE
    [OSINF] =======================

    [MBINF] =======================
    [MBINF] Motherboard Information
    [MBINF] =======================
    [MBINF] #01 CS Product Name : [System Product Name]
    [MBINF] #02 CS Model Name : [System Product Name]
    [MBINF] #04 CS Vendor Name : [System manufacturer]
    [MBINF] #05 CS System Name : [System manufacturer]
    [MBINF] #06 Baseboard Name : [ASUSTeK COMPUTER INC.]
    [MBINF] #08 BIOS or SLIC ID : [ALASKA]
    [MBINF] =======================

    [CMINF] =======================
    [CMINF] CPU/Memory Information
    [CMINF] =======================
    [CMINF] CPU Name/Type : [Intel{R} Core{TM} i3-6100 CPU @ 3.70GHz]
    [CMINF] CPU Description : [Intel64 Family 6 Model 94 Stepping 3]
    [CMINF] CPU Architecture : [32/64 Bit Instruction Set]
    [CMINF] CPU Cores/Threads : [2] / [4]
    [CMINF] Total Physical Memory : [8063 Mb]
    [CMINF] Available Memory : [7569 Mb]
    [CMINF] =======================

    [HDTYP] Info: SSD Detected.

    [SVROS] Server OS detected, branding/SLIC activation may fail, see Server-Readme.txt file for details.
    [SVROS] Detected Server Kernel Version: [10.0]
    [PKEIC] The PID.txt file was not detected.
    [PKEIC] The ei.cfg file was not detected.
    [CKDMI] Querying BIOS for any manufacturer brand information.
    [NOSLC] No valid SLIC found for Server OEM activation.
    [THMOK] Asus [#06] manufacturer detected for automated theme/branding.
    [CHKMN] Computer Model Name: Undefined.
    [USRFT] CustomTheme option was not used.
    [WPCHK] Wallpaper.jpg transferred.
    [BGDFC] Desktop backgrounds folder created.
    [BGDFC] BackgroundDefault.jpg created from Wallpaper.jpg.
    [SVOEM] Attempting to brand Server OS.
    [RMXML] OOBE.xml file processed.
    [UBREP] User.bmp replaced.
    [UPREP] User.png replaced.
    [UPREP] User-40.png replaced.
    [UPREP] User-32.png replaced.
    [UPREP] User-48.png replaced.
    [UPREP] User-192.png replaced.
    [WXLS5] Lock Screen {img105.jpg} replaced. Original renamed as img0105.jpg.
    [WXLS1] Log-In Background {img100.jpg} replaced. Original renamed as img0100.jpg.
    [OTFTS] OEM theme folder has been created.
    [OTFTS] OEM files have been transferred.
    [ATHBA] Asus theme has been applied.
    [BSHCS] Branding script has completed.

    [ADMAN] Add-On Manager: Started.
    [SVRAF] Server 2016: Adding required Features...
    [SVRAF] Error: DISM DesktopExperience possible failure [-2146498548].
    [SVRAF] Server 2016: Features Add-On module completed.
    [SVRAF] Note: Server reboot is required to finalize Features after the Desktop appears.
    [CMSDM] Server detected, MSDM Key will not be processed.
    [USRAC] Windows 10: Enhanced Log-On screen has been enabled.
    [USRAC] 'User Account Picture' registry entry applied.
    [USRRO] Windows 'Registered Owner' {Winver} registry entry corrected.
    [USRD0] The 'defaultuser0' account was not present.
    [AMBPS] BIOS/Boot Mode : Legacy
    [AMBPS] Partition Type : MBR
    [AMHDC] SSD/HDD Mode : AHCI
    [CHKLS] License Status: Notification
    [OSLRC] License Status Reason: 0xC004F034
    [OSLRT] Connection to activation server has not been successful at this time.
    [CHKLS] Online connection maybe required to complete activation.
    [ADMAN] Add-On Manager: Completed.
    [CLNUP] MRP Clean Up Routine Processed.

    =========================================================================================
    = Please Note: It is advisable to log out or reboot your computer when possible to =
    = allow Windows 10 to finalize any settings/User Pictures etc. =
    = =
    = If you have used any tweak options within the configuration file then =
    = it is required to do a log out or reboot cycle to allow these options =
    = to take effect. =
    =========================================================================================

    The Multi-OEM/Retail Project has completed.
     
  18. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,668
    103,488
    450