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
    5,679
    19,123
    180
    #2261 mxman2k, Feb 21, 2018
    Last edited: Feb 21, 2018
    (OP)
    Query Tool 49 is on Test 5 stage. :)

    The experimental addition is working as intended so far, but if it does not detect anything within the database(s) it will automatically use a fall back on the original WMIC result.

    You will see the new addition in use if you see 'OS Version {SKU}' -- if it says 'OS Version {WMIC}' then the fall back routine has been used instead.

    Hopefully sorted the Edition Switch detection routine as for some reason it decided not to 'kick-in' at times or even at all! :g: Was due to some changes in another routine that nullified the variable.

    Tidied up the results for display and saved reports and removed a lot of the [ ] type brackets.

    Fixed a DMI issue in which if a result had ( ) type brackets, (MSI uses them in the DMI), it could at times ignore the information, they have now been converted to { } type brackets like the other results do such as the CPU Name/Bios info lines etc.

    A few other tweaks done also mainly a clean up of redundant code/test stuff.

    The OS {SKU} routine is also now in the next MRP along with the fall back system - MRP 84 is at Test 4 stage, won't be ready for a while as a few other things needed to do as I have been concentrating on the QT code.

    Forgot to put the QT49 T5 log output with the visual changes. :oops:
    Code:
    MRP - OEM Query Tool v49.0.T5 Enhanced  --  02/21/2018 {UTC} -- 1:14pm
     
    -------------------------------------------
    - Basic OEM Information For This Computer -
    -------------------------------------------
    OS Version {SKU}          - Windows 10 Pro for Workstations
    OS Edition {Registry}     - ProfessionalWorkstation
    OS Edition {CBS}          - Professional
    OS Architecture           - 64 Bit
    OS Build/Update Revision  - 17063 {rs_prerelease} / 1000
    OS Language Name/Code     - en-GB / Dec:2057 {Hex:809}
    OS Locale                 - en-GB
    OS Language Value         - ENG
    OS Installation Date      - 23/12/2017 12:57:24 AM {Localized Date Format}
    CPU Name                  - Intel{R} Core{TM} i5-6400 CPU @ 2.70GHz  
    CPU Description           - Intel64 Family 6 Model 94 Stepping 3
    CPU Architecture          - 32/64 Bit Instruction Set
    CPU Cores/Threads         - [2] / [2]
    Boot Drive Information    - BusType: SAS, Mode: AHCI, Partition: MBR, DriveType: HDD
    Boot Drive Model Name     - VMware Virtual S
    Bios Information          - Type: Phoenix Technologies LTD , Version: 6.00 , Date: 07/02/2015
    Total Physical Memory     - 2047 Mb
    Available Memory          - 1171 Mb
    GPU Primary Adaptor Name  - Microsoft Basic Display Adapter
    GPU Primary Adaptor Info  - Resolution: 1024x768 , Driver Date: 06/21/2006 , Driver Vers: 10.0.17063.1000
     
    --------------------
    - Scanned DMI/BIOS -
    --------------------
    #01 CSProduct Name        - VMware Virtual Platform         #09 SLIC Information - No SLIC Table Detected                  
    #02 CSModel Name          - VMware Virtual Platform         #10 Product Key      - Not Shown On Saved Report    
    #03 CSBaseboard Prod      - 440BX Desktop Reference Platfo  #11 MSDM Key         - No MSDM Table Detected        
    #04 CSProduct Vendor      - VMware, Inc.                    #11 MSDM Edition     - Undefined                              
    #05 CSManufacturer        - VMware, Inc.                    #11 MSDM Brand Name  - Undefined                    
    #06 Baseboard MFR         - Intel Corporation               #12 BIOS/Boot Mode   - Legacy/MBR                    
    #07 Serial/Service Tag    - Not Shown On Saved Report       #13 Certificate      - Not Present                  
    #08 BIOS or SLIC ID       - INTEL  - 6040000                #14 License Status   - Notification                            
     
    -----------
    - Summary -
    -----------
    OEM Theme/Branding        - VMWARE [id: VMware]  
    OEM Activation Vista/7    - Un-Listed
    Valid OEM Consumer OS     - Un-Listed
    Detected .Net Versions    - v1.1.4322 / v2.0.50727 / v4.0.30319 / v4.7.03036
    Powershell Version{s}     - 1.0, 2.0, 3.0, 4.0, 5.0, 5.1
    License Status Reason     - 0xC004F034: License not found/invalid or could not connect to the Activation Server.
    Other Notes:              - Possible Edition switch detected.
     
    ** End of Query Tool report. **
    
    With a DMI line that has ( ) now converted to { }
    Code:
    #03 CSBaseboard Prod      - H170A PC MATE {MS-7971}  
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,679
    19,123
    180
    Query Tool v49.0 has been uploaded and 2nd post updated with download link and password. :)

    + Tweaked the .Net checking routine, looks neater now on the display/saved output.

    + Added a new WMIC OS Version check (experimental) which hopefully will show the Version better. If it not detect the Version via the database(s) it will fall back on the older WMIC results.

    + Tweaked some text output in the display/saved report, added OS Branch (ie rs3_branch) etc for Windows 10.

    + Fixed a bracket issue with DMI results, as some DMI's may have brackets '(' ')' which can cause either a crash or strange display of information.

    + Fixed Edition switch detection routine.

    A few other code changes here and there to tidy some sections up that had test/redundant code present.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. MMIKEE

    MMIKEE MDL Senior Member

    Oct 6, 2012
    380
    361
    10
    MRPQT v49.0 works as advertised on my Asus Laptop w/ w10 LTSB 2016... :clap:
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,679
    19,123
    180
    @MMIKEE

    OS Version {SKU} - Windows 10 Enterprise S {LTSB} :p shows the LTSB bit as well :) yay the database was correct :D

    Finding the right text to match the SKU numeric value which the new routine uses was a pain as some have changed (typical m$). So had to use two databases to cross check.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. BALTAGY

    BALTAGY MDL Guide Dog

    Dec 23, 2014
    347
    611
    10
    Query Tool v49.0 Results
    MRP - OEM Query Tool v49.0 Enhanced -- 02/22/2018 {UTC} -- 5:59pm
    -------------------------------------------
    - Basic OEM Information For This Computer -
    -------------------------------------------
    OS Version {SKU} - Windows 10 Enterprise
    OS Edition {Registry} - Enterprise
    OS Edition {CBS} - Enterprise
    OS Architecture - 64 Bit
    OS Build/Update Revision - 16299 {rs3_release} / 64 {Baseline Refresh}
    OS Language Name/Code - en-US / Dec:1033 {Hex:409}
    OS Locale - en-US
    OS Language Value - ENU
    OS Installation Date - 15/11/2017 03:01:21 AM {Localized Date Format}
    CPU Name - Intel{R} Core{TM} i5-3550 CPU @ 3.30GHz
    CPU Description - Intel64 Family 6 Model 58 Stepping 9
    CPU Architecture - 32/64 Bit Instruction Set
    CPU Cores/Threads - [4] / [4]
    Boot Drive Information - BusType: SATA, Mode: AHCI, Partition: GPT, Secure Boot:Enabled, DriveType: SSD
    Boot Drive Model Name - INTEL SSDSA2BW160G3H
    Bios Information - Type: American Megatrends Inc. , Version: 2501 , Date: 07/21/2014
    Total Physical Memory - 12236 Mb
    Available Memory - 6253 Mb
    GPU Primary Adaptor Name - NVIDIA GeForce GTX 650 Ti BOOST
    GPU Primary Adaptor Info - Resolution: 1920x1080 , Driver Date: 01/23/2018 , Driver Vers: 23.21.13.9077
    --------------------
    - Scanned DMI/BIOS -
    --------------------
    #01 CSProduct Name - System Product Name #09 SLIC Information - No SLIC Table Detected
    #02 CSModel Name - System Product Name #10 Product Key - Not Shown On Saved Report
    #03 CSBaseboard Prod - P8Z77-V LX #11 MSDM Key - No MSDM Table Detected
    #04 CSProduct Vendor - System manufacturer #11 MSDM Edition - Undefined
    #05 CSManufacturer - System manufacturer #11 MSDM Brand Name - Undefined
    #06 Baseboard MFR - ASUSTeK COMPUTER INC. #12 BIOS/Boot Mode - UEFI/GPT
    #07 Serial/Service Tag - Not Shown On Saved Report #13 Certificate - Not Present
    #08 BIOS or SLIC ID - ALASKA - 1072009 #14 License Status - Licensed {Volume_KMSClient}
    -----------
    - Summary -
    -----------
    OEM Theme/Branding - Asus [id: #06]
    OEM Activation Vista/7 - Un-Listed
    Valid OEM Consumer OS - Un-Listed
    Detected .Net Versions - v1.1.4322 / v2.0.50727 / v3.5 / v4.0.30319 / v4.7.02556
    Powershell Version{s} - 1.0, 2.0, 3.0, 4.0, 5.0, 5.1
    Other Notes: - SLIC ID or Version may not show correctly with UEFI or Secure Boot enabled.
    ** End of Query Tool report. **
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,679
    19,123
    180
    @BALTAGY Hope that is standard Enterprise (non LTSB (S)) or i made a slight error in the database. :g:

    Enterprise has various SKU return codes and because some are Current Branch (CB) and some are classed as 'Other' (no idea what that means either lol), it is a bit of a pain to get it 100% right.

    Code:
    wmic OS get OperatingSystemSKU /VALUE
    Is the WMIC i use to obtain the SKU code number although that is returned as a decimal value, i have to convert to Hexadecimal for the database to work. Once the code is returned i then parse the database(s) for what the code means in human text form.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. BALTAGY

    BALTAGY MDL Guide Dog

    Dec 23, 2014
    347
    611
    10
    It's standard
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,679
    19,123
    180
    Phew :D had me a bit worried for a bit there :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. BALTAGY

    BALTAGY MDL Guide Dog

    Dec 23, 2014
    347
    611
    10
    Don't worry lol, I also wanted to check how it will read SSD/GPT/Secure Boot, so it read everything right
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,679
    19,123
    180
    Re SSD/GPT/SBoot -- Think i have got that bit sorted - it may glitch at times more so on the newer NVMe types as new ones appear, but i can adjust the code as that happens.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,679
    19,123
    180
    #2271 mxman2k, Feb 23, 2018
    Last edited: Feb 23, 2018
    (OP)
    Small update to Query Tool 49 (now v49.1)... Updated download link on post #2.

    Kept same archive filename and password.

    + Shows SKU Code. Only on 'Version SKU' and 'Edition Registry'. The registry one is in case a code is detected but not in the database so it can be added in later as the Version SKU won't be shown if it not in the database(s), to prevent display text errors.

    + Boot Drive's File System is now shown ie {FS: NTFS}.

    Updated Changelog with all info as i missed off the Edition Switch fix entry in v49.0's changelog. :oops:

    Code:
    -------------------------------------------
    - Basic OEM Information For This Computer -
    -------------------------------------------
    OS Version {SKU}          - Windows 10 Pro {48}
    OS Edition {Registry}     - Professional {48}
    ---
    Boot Drive Information    - BusType: SATA, Mode: AHCI, Partition: MBR, DriveType: SSD, FS: NTFS 
    No other changes made.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,679
    19,123
    180
    MRP 84 at Test stage 7 :)

    Soon be ready, it is on schedule for release within the next few days.

    More details later....
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,027
    93,876
    450
    Code:
    Multi-OEM/Retail Project Version : 180223-R84.0.T7 - RC  [MRP via MDL Forum ONLY]
     
    Required project files extracted successfully.
     
    DeCompile has detected a 'VMware' Virtual Machine.
     
    OEM's folder detected, structure appears OK.
     
    Detected Config File          - Checking For User Options...
    Config Creator Version Used   - v2.3
                                  - Options Pre-Check Completed.
     
    MRP Logging Mode              : Enhanced
    Confirm File Delete           : Enabled
    W10 TitleBar Color            : Enabled  - Title Bars will be colorized to Grey.
    Hi-Lite Colorization          : Enabled  - Hi-Lited Text will be colorized to Grey.
    CustomTheme option            : Enabled  - Using 'ASI' defined in the MRPConfig file.
    No Lock/Login Screen          : Enabled  - Lock/Login Screen's will NOT be replaced.
    Show 'ThisPC' On Desktop      : Enabled
     
    OS Installation Date/Time     : 02/23/2018 {UTC} -- 8:04pm
     
    [OSINF] ======================= 
    [OSINF] Detected OS Information 
    [OSINF] ======================= 
    [OSINF] Version {SKU}         : Windows 10 Pro {48}
    [OSINF] Edition {Registry}    : Professional {48}
    [OSINF] Edition {CBS}         : Professional
    [OSINF] Architecture          : 32 Bits
    [OSINF] Build Information     : 17107.1000.x86fre.rs4_release.180220-1350
    [OSINF] Update Build Revision : 1000
    [OSINF] Edition Language/Code : en-US / 1033 {409h}
    [OSINF] Locale                : en-US
    [OSINF] Language Name Value   : ENU
    [OSINF] ======================= 
     
    [MBINF] =======================
    [MBINF] Motherboard Information
    [MBINF] =======================
    [MBINF] #01 CS Product Name   : [VMware7,1]
    [MBINF] #02 CS Model Name     : [VMware7,1]
    [MBINF] #04 CS Vendor Name    : [VMware, Inc.]
    [MBINF] #05 CS System Name    : [VMware, Inc.]
    [MBINF] #06 Baseboard Name    : [Intel Corporation]
    [MBINF] #08 BIOS or SLIC ID   : [INTEL  - 6040000]
    [MBINF] #09 SLIC Information  : [No SLIC Table Present]
    [MBINF] #11 MSDM Information  : [No MSDM Table Present]
    [MBINF] =======================
     
    [CMINF] =======================
    [CMINF] CPU/Memory  Information
    [CMINF] =======================
    [CMINF] CPU Name/Type         : [Intel{R} Core{TM} i7-3770 CPU @ 3.40GHz]
    [CMINF] CPU Description       : [x64 Family 6 Model 58 Stepping 9]
    [CMINF] CPU Architecture      : [32/64 Bit Instruction Set]
    [CMINF] CPU Cores/Threads     : [2] / [2]
    [CMINF] Total Physical Memory : [2048 Mb]
    [CMINF] Available Memory      : [1770 Mb]
    [CMINF] =======================
     
    [HDTYP] Info: HDD Detected.
     
    [SATOU] List user options enabled or applied...
    [FEXTS] Show File Extensions option enabled.
    [REMSC] Remove '-Shortcut' reference from icons option enabled.
    [AMSRT] Disable 'Malicious Software Removal Tool' tweak applied.
    [NOWUR] Disable 'Automatic WU Restart After Updates' tweak applied.
    [GO2TP] Launch To 'ThisPC' instead of 'Quick Access' view option enabled.
    [APPDT] Apps use 'Dark Theme' option enabled.
    [REMPB] Remove 'People Band' option enabled.
    [REM1D] Prevent One Drive from installing tweak enabled.
    [REM6F] Remove 'Library Folders' from 'ThisPC' view tweak applied.
    [REM3D] Remove '3D Objects Folder' from 'ThisPC' view tweak applied.
    [MTTBT] Extra TaskBar Transparency option enabled.
    [AWLBM] Use 'F8 Legacy Boot Menu' tweak applied.
    [NOAMT] Disable 'Automatic Computer Maintenance Tasks' tweak applied.
    [NOFBT] Disable Fast Boot tweak applied.
    [NODRS] Disable Driver Searching tweak applied.
    [CTNAB] Block Cortana tweak applied.
    [USRDN] User System Drive rename option enabled, 'Local Disk' changed to '17107_MRP_Test'.
    [PKEIC] -> PID.txt/ei.cfg Detection.
    [PKEIC] The PID.txt file was not detected.
    [PKEIC] The ei.cfg file "D:\Sources\ei.cfg" was detected.
    [CKDMI] Querying BIOS for any manufacturer brand information.
    [VMDMI] Default DMI VMware VM detected with no valid SLIC or MSDM present.
    [THMOK] VMware [VMware] manufacturer detected.
    [THMCT] Detected user defined CustomTheme 'ASI' will be used.
    [UDPNA] User defined 'Computer Model Name' option has been enabled.
    [CHKMN] Computer Model Name: '17107 MRP Test' has been applied.
    [BRND1] -> Branding Extra Checks Section.
    [FTHWD] CustomTheme processing.
    [USRFT] User selected CustomTheme 'ASI' will be applied.
    [THMMS] -> OEM Brand Transfer Management Section.
    [WPCHK] Wallpaper.jpg transferred.
    [BGDFC] Desktop backgrounds folder created.
    [BGDFC] BackgroundDefault.jpg created from Wallpaper.jpg.
    [W8XAP] -> Windows 10: User Account Picture Management {1}.
    [RMXML] OOBE.xml file processed.
    [UBREP] User.bmp replaced.
    [UPREP] User.png replaced.
    [UPREP] User-40.png replaced.
    [WXAP2] -> Windows 10: User Account Picture Management {2}.
    [UPREP] User-32.png replaced.
    [UPREP] User-48.png replaced.
    [UPREP] User-192.png replaced.
    [NLLSA] Note: Using Windows default Lock/Log-In Screens as the ChangeLockLoginScreens 'No' option was enabled. 
    [OTFTS] -> OEM Theme Files Transfer Section.
    [OTFTS] OEM theme folder has been created.
    [OTFTS] OEM files have been transferred.
    [USCTA] User specified 'ASI' theme has been applied. 
    [BSHCS] Branding script has completed.
     
    [ADMAN] Add-On Manager: Started.
    [SATOU] -> Show User options applied.
    [FEXTS] Show File Extensions tweak applied.
    [REMSC] Remove '-Shortcut' on icons tweak applied.
    [REMPB] Remove 'People Band' tweak applied.
    [GO2TP] LaunchTo 'ThisPC' instead of 'Quick Access' tweak applied.
    [APPDT] Apps use 'Dark Theme' tweak applied.
    [REM1D] Prevent One Drive from installing tweak applied.
    [MTTBT] Extra TaskBar Transparency tweak applied.
    [USRAC] Windows 10: Enhanced Log-On screen has been enabled.
    [WXSTB] Windows 10: Title Bar 'Grey' Colorization applied.
    [WXSHL] Windows 10: Hi-Lite 'Grey' Text Color applied.
    [USRAC] 'User Account Picture' registry entry applied.
    [USRRO] Windows 'Registered Owner' {Winver} registry entry corrected.
    [USRD0] Detected 'defaultuser0', removal process started.
    [RDUPM] Removal of 'defaultuser0' account completed.
    [AMBPS] -> Checking BIOS/Boot mode and OS HDD/SDD partition type.
    [AMBPS] BIOS/Boot Mode  : UEFI
    [AMBPS] Partition Type  : GPT
    [AMBPS] Secure Boot     : Disabled
    [AMHDC] Controller Mode : AHCI
    [CHKLS] -> Check if Windows is activated/licensed.
    [CHKLS] License Status: Notification
    [OSLRC] License Status Reason Code: 0xC004F034
    [OSLRT] License not found/invalid or could not connect to the Activation Server.
    [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 logout or reboot your computer when possible to       =
    =              allow the Windows OS installed to finalize any settings.                 =
    =                                                                                       =
    =              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.
    
    
     
  14. King Hamza

    King Hamza MDL Novice

    Feb 11, 2018
    4
    0
    0
    #2275 King Hamza, Feb 25, 2018
    Last edited: Feb 25, 2018
    Hi! I have a question. What do I have to do to use this to change the OEM info and theme ONLY without inserting OEM key and activating it? I plan to use another KMS tool for licensing.
     
  15. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    It only activates under certain circumstances. What Windows do you use?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. King Hamza

    King Hamza MDL Novice

    Feb 11, 2018
    4
    0
    0
    #2277 King Hamza, Feb 25, 2018
    Last edited: Feb 25, 2018
    I have sysprepped Windows 7, 8.1, and 10 that we use to deploy on my friends' laptops. I tried integrating this tool for OEM branding and KMS-VL-ALL for licensing by placing them in windows\setup\scripts\. In the oobe.cmd, I let the MRP run first before KMS-VL-ALL so that if MRP fails to activate the PC, KMS-VL-ALL will activate it. Sometimes this works, other times it doesn't. Is there a better way to achieve this?
     
  17. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    Sorry this kind of 'business' while using community tools is not supported here :cool2:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,009
    251
    60
  19. King Hamza

    King Hamza MDL Novice

    Feb 11, 2018
    4
    0
    0
    I edited my post. Is that fine? Hehe!