Multi-OEM/Retail Project {MRP} - Mk3

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

  1. Dubioza Kolektiv

    Dubioza Kolektiv MDL Addicted

    Dec 27, 2012
    747
    1,245
    30
    Can hwid be integrated into mrp?
     
  2. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    3,840
    11,333
    120
    #7442 mxman2k, Oct 5, 2021
    Last edited: Oct 5, 2021
    (OP)
    It could be supplied/integrated but then the project would be removed from the forum for breaking rules.

    Been a long time since i looked at the HWID side.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    3,840
    11,333
    120
    #7443 mxman2k, Oct 5, 2021
    Last edited: Oct 5, 2021
    (OP)
    Just checked out the MASS... and read in the read me that the /u parameter on the NON AIO version is a 'silent' method...

    I have a test section in MRP that looks for a file called OSUpdates.cmd within the Scripts folder and when found runs that with the /u (silent) parameter, it was designed for a test script when adding OS Updates during the OS install - hence the name. I left the code in just in case i needed to update a OS 'on the fly' during OS installation with a CU or even a Driver file/App etc.

    This could be used (theoretically) for the HWID purpose ;)

    Download the non AIO version (the one that has the BIN folder).

    Copy the HWID_......cmd script and the BIN folder to the Scripts folder where MRP is stored.

    Rename the HWID_.......cmd file to OSUpdates.cmd <--this bit IS important!!

    If all goes well then MRP will detect that file and run it with the /u parameter it requires for unattended mode...

    Can't guarantee it will work, but it worth a try as MRP does call that OSUpdates.cmd file with the /u parameter if it is detected within the Scripts folder.

    You may get some odd error text in MRP's on screen window and possibly the main log too as it will be looking for a return flag that my OSUpdates.cmd file used to return to let it know all was ok or not...

    I guess that method could be used for the K..38.cmd file too -- if so required. :p ;)

    To keep within the forum's rules i will not be supplying anything within the projects archive that could jeopardize the project.

    So how you obtain and what you do with the 'other' methods of activation is at your own risk.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Dubioza Kolektiv

    Dubioza Kolektiv MDL Addicted

    Dec 27, 2012
    747
    1,245
    30
  5. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    3,840
    11,333
    120
    If it still works on the latest Win 11 , as i had a similar method but that no longer works on UBR 132 and above.

    Will test it and see.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    37,612
    64,560
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. BALTAGY

    BALTAGY MDL Guide Dog

    Dec 23, 2014
    325
    511
    10
    I think moving start menu to the left option in win11 MRP140 is not working, when i used "reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarAl" /t REG_DWORD /d "0" /f" it worked
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    3,840
    11,333
    120
    Will test it and see.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    3,840
    11,333
    120
    Odd it works in MRP 141 tests , not changed anything in that routine :g: - You can see it in Enth's report above....
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. BALTAGY

    BALTAGY MDL Guide Dog

    Dec 23, 2014
    325
    511
    10
    I already added this registry before updating MRP and it was working, when i updated MRP to 140 i couldn't find the registry like it's removed, i suspected that you added delete instead of add ?

    Once i set MRP to No for this option, my registry was added fine
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    3,840
    11,333
    120
    Nope set as it should be :g:

    Code:
    
    IF /I "%MoveStartToLeft%"=="Yes" (
     %REGEXE% add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarAl" /t REG_DWORD /d "0" /f >nul 2>&1
     %REGEXE% add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarAl" /t REG_DWORD /d "0" /f >nul 2>&1
     SET "OptionsUsed=1"
    )
    
    
    Regexe is set as normal reg.exe or the sysnative version on 64bit.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. BALTAGY

    BALTAGY MDL Guide Dog

    Dec 23, 2014
    325
    511
    10
    Testing it again without adding my registry, will let you know
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    3,840
    11,333
    120
    Did you do a reboot or signout/in cycle after mrp completed and desktop appeared as some tweaks require that cycle to operate.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    37,612
    64,560
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. BALTAGY

    BALTAGY MDL Guide Dog

    Dec 23, 2014
    325
    511
    10
    I found the problem, after i added the project to Win11 iso i used "Win_11_Boot_And_Upgrade_FiX_KiT_v2.0" and simply used the project in win10 iso that i didn't update :31:

    Sorry about that
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Dubioza Kolektiv

    Dubioza Kolektiv MDL Addicted

    Dec 27, 2012
    747
    1,245
    30
    Time Zone Data : Pacific Standard Time

    Why he gives me this zone???

    Code:
    =======================
    === [MRP Debug Log ]===
    =======================
     
    Checking for OEM folder and structure...
    OEM's folder structure appears to be correct.
     
    Checking for CustomTheme...
    CustomTheme option was not defined.
     
    Check Lock/Login screen variable state...
    Lock/Login screen variable = Can be used for Kernel: 10.0
    Lock/Login screen's will not be changed as defined by user's option.
     
    ====================================================
    ===[ First selection of 'User' Options: Started ]===
    ====================================================
    [00A] Power Plans C/T Menu.
    [001] Prevent Search Indexing.
    [003] Disable MSRT.
    [004] Disable BSOD Automatic Restart.
    [005] Show the 'About Windows' or 'Microsoft Windows' C/Text Menu.
    [006] SSD Tweaks.
    [007] Automatic or User set System Drive Partition Name.
    [008] Internal Flag Variables Set.
    [012] Prevent Telemetry.
    [014] MRP's Slimmer Windows 11 Start Menu/Taskbar 'LayoutModification' file{s} used.
    [015] Win1x - Disable the 'Blurred' Log-On Background.
    [016] Win1x - Removed user selected 'Safe' UWP Apps.
    [020] Show the Desktop's 'Control Panel' C/Text Menu.
    [021] Disable Highlighting of 'New Programs/Apps' on the Start Menu.
    [023] Disable any UWP 'Store Apps' from Updating.
    [024] LaunchTo 'ThisPC' instead of 'Quick View'.
    [026] Use 'F8' Legacy Boot Menu policy. {May not work on some ASUS systems due to conflict with BIOS options}
    [027] Win1x - WU Download Mode - Use Microsoft Servers Only.
    [028] Win1x - Diagnostic FeedBack - Never/Basic.
    [029] Win1x - Remove the 'Paint3D' file associations.
    [030] Win1x - Disable 'Edit with Photos'.
    [032] Start of Win1x Only options section - Mail/Store Un-Pin on Taskbar etc.
    [036] Remove the '-Shortcut' Suffix from icons.
    [037] Disable Windows Update's Automatic Restart.
    [039] Show 'This PC' icon on the Desktop.
    [041] Set Control Panel's view to Category {Default}.
    [043] Win1x - Title Bar/Highlight coloring initial settings.
    =====================================================
    ===[ First selection of 'User' Options: Finished ]===
    =====================================================
     
    Transfer of options to any new User accounts later: Disabled.
     
    Pre-checks Done - Start Main Processing Section...
     
    OS Installation Date/Time : 10/05/2021 {UTC} -- 08:38am
    MRP Version Installed     : CY21M10D01-R140.0.BL
    MRP Config File Used      : 45.0 {Advanced Mode}
     
    Unicode Mode              : Operative
    Original Codepage         : 437
     
    ===================
    ===[ Variables ]===
    ===================
    Oobe State     : Under Oobe 'System' Control
    Install Type   : Client {Non Server}
    OS Media Boot  : Clean
    HyperVisor     : No
    PC System Type : Desktop {0x1}
    Chassis Type   : 3 {Desktop}
    Domain Detected: No
    OS Full Name   : Microsoft Windows 11 Pro
    OS Name {Prod} : Windows 10 Pro
    OS SKU Version : Windows Pro {48}
    OS Architecture: x64 {AR:1}
    Edition {REG}  : Professional
    Edition {WMIC} : Professional
    Edition {Comp} : Enterprise
    Edition {OSED} : Professional
    Edition {OM1}  : Professional
    Edition {Type} : General
    Release ID     : 2009
    Short Disp Ver : 21H2
    Build ID {R}   : 22000
    Build ID {V}   : 22000
    Build Branch{R}: co_release
    Reference Ver  : 10.0.22000.1
    ProductID Ref  : 3308
    Base Build Rev : 1 {0x1h}
    UBR            : 194
    RS3 Plus       : Yes
    RS4 Plus       : Yes
    RS5 Plus       : Yes
    Language/Code  : en-US / 1033 {0x409h}
    Locale         : English - United States
    GeoID ISO Loc  : Bosnia and Herzegovina [25]
    Time Zone Data : Pacific Standard Time
     
    =========================
    ===[ Main Processing ]===
    =========================
    Obtaining Motherboard information.
    Checking for SLIC and MSDM tables.
     
    ================================
    ===[ DMI/SMBIOS Information ]===
    ================================
    CSNAME             : [CM6870]
    SYSMODEL           : [CM6870]
    CSVENDOR           : [ASUSTeK COMPUTER INC.]
    SYSMNF             : [ASUSTeK COMPUTER INC.]
    BASEMNF            : [ASUSTeK COMPUTER INC.]
    BASEPRO            : [CM6870]
     
    BIOS or SLIC ID 1  : ALASKA - 1072009
    SLIC Information   : v2.1 - SLIC table with marker present
    SLIC Detect Plan   : G4 [OA2T:1]
    MSDM Information   : No MSDM Table Present
     
    S/M W11 Layout Opt : Yes
     
    Checking CPU and Memory information...
    Checking number of CPU's fitted.
    Checking CPU Max Clock Speed.
    Checking CPU Cores.
    Checking CPU Manufacturer.
    Checking CPU Threads.
    Checking CPU Name.
    Checking CPU Description.
    Checking CPU Datawidth, {Bits}.
    Checking CPU ID.
    Checking if CPU Virtualization mode is active or not.
     
    Checking Memory configuration.
    SMBIOS Memory Type: DDR3 {24}.
    Checking Memory Error Correction type.
    Checking Memory Devices/Slots.
    Checking Memory Max Capacity.
    Total Memory - 15,7 GiB
    Used Memory  - 947,5 MiB
    Free Memory  - 14,77 GiB [94,11%]
     
    Checking Meltdown/Spectre awareness.
     
    Show User Options display section.
    Drive Label Section.
    The System Drive [C:] 'Local Disk' was renamed to 'WINDOWS'
     
    Checking for 'Retail.txt'.
    The 'Retail.txt' file was not detected within the 'Scripts' folder.
     
    Checking for 'ei.cfg'.
    The 'ei.cfg' file was not detected.
     
    Checking for 'Pid.txt'.
    The 'PID.txt' file was not detected, the 'Insert PID key' advanced option routine will not be used.
     
    Querying DMI for any OEM brand information.
     
    ========================
    ===[ DMI Processing ]===
    ========================
    CSVENDOR           : DMI + Database = Possible Match [Asus].
     
    No DMI conflicts was found.
    DMI query routine has completed.
     
     
    Checking for any SLIC data.
     
    Bypassed Virtual Machine data checks as DMI [Asus] was detected.
     
    Asus [#04] Manufacturer was detected for automated theme/branding.
    No 'Man2' var set.
    Computer 'Model Name' Processing...
    BIOS defined "CM6870" has been applied for the Computer's 'Model' Name. {Validated}
    Theme Processing Routines.
    The User's specified theme was not defined.
    The DMI theme 'Asus' will be applied.
    Transfer Section.
    Windows 10: Primary User Account Picture Management
    Windows 10: Additional User Account Picture's Management.
    Processing the Lock\Log-On Screen Routine.
    Using Windows the 'Default' Lock\Log-On screens as defined by the User option.
    See the MRP log file{s}, found on the C: drive, for more enhanced details of the above sections.
    Processing Brand/Theme Files Transfer Routines.
    The '$OEM$.theme' file transferred OK. {Ref: TF}
    Note: The 'BackgroundDefault.jpg' file was re-copied to the 'Backgrounds' folder. {Ref: BDF}
    The theme's branding files have been transferred.
    The original 'Aero.theme' has been backed up and replaced.
    Registry sections for 'InstallTheme' and 'CurrentTheme' was set to '$OEM$.theme'.
    Asus OEM brand theme was applied.
    Checking for SetupComplete/FirstLogon files within the 'Scripts' folder...
    The 'SetupComplete.cmd' file was detected.
    Malfunction of the Project/Theme may happen if deletion of the 'Scripts' folder, or use of a forced Shutdown/Reboot command, is done within this file.
     
    Option Utilization Started...
     
    Copy the User selected MRP Options into the 'Default' User hive.
    Unpin Mail, Store, Taskview, PeopleBand and MeetNow Options, {where selected}.
    Shortcut Arrow Design Option. None
    No Delete Confirm, No Shortcut Prefix, Show Extensions and Classic Menus Options.
    Windows 10 Prevent Telemetry Option.
    Disable Acrylic Background Logon Blur Option.
    Remove 3D Objects Option.
    Setting the selected Options in the default registry hive.
    Block 'CompatTelRunner.exe' via the Windows Firewall and disable any of its related tasks. {Ref:2}
     
    Option Utilization Completed.
     
    The Primary/Branding script has completed, SetupComplete.cmd script will now be run via Windows Setup.
    --------------------------------------------------------------------------------
     
    ================================================================================
    ========================[ Add-On Manager - Log Section ]========================
    ================================================================================
     
    Edition Chk    : [Professional] {Ed0}
    Edition Chk1   : [Professional] {Ed1}
    Edition Chk2   : [Professional] {W2S}
    Edition {Type} : [General]
    Pre Windows 10 : [No]
    Theme Reg Tweak: Applied
    Transfer Opts  : [No]
     
    ==========================================
    ===[ Built-In 'Administrator' Details ]===
    ==========================================
    Localized Name : Administrator
    Account Active : No {Disabled}
    Account Status : Degraded
     
    MSDM Routine   : Not processed.
     
    DefUsr0 Removal: [Method 1N - Successful]
     
    TB/HL Routine  : [Yes]
    TitleBar Color : [Classic]
    Highlight Color: [Default]
    AccentColor    : [4292311040]
    ColorizationCol: [3288365271]
    AccPalletColor : [86CAFF005FB2F2001E91EA000063B10000427500002D4F000020380000CC6A00]
     
     
    ======================================================
    ===[ Bios Mode and OS Drive Partition Information ]===
    ======================================================
    A-Routine BMode: [Unknown]
    A-Routine DPart: [GPT]
    WMIC BMode     : [GPT System]
    WMIC DPart     : [GPT]
    SecureBoot     : [{Q} Disabled]
    Controller Mode: [{I} AHCI]
     
    ====================
    ===[ Other Data [===
    ====================
    AO1 Flags S1   : [DUT=0], [DWT=0], [DAT=0], [DPA=0], [DOU=0], [DSC=0], [DFL=0]
    AO2 Flags S2   : [PRI=0], [A2B=0], [B2Z=0], [MKU=0], [OSP=0], [OPT=0] [OKF=0]
    AO2 Flags S3   : [SEC=0]
    DT Prot Status : [Disabled]
     
    First Tidy Up  : Started
    First Tidy Up  : Used Files
    First Tidy Up  : Remove Any Used Environment Variables
    First Tidy Up  : Completed
     
    Detecting Activation Status...
    Detecting Activation Status - Done.
    Detecting License Channel Type...
    Processed License Channel Type. Retail/HWID {PKC}
     
    ========================
    ===[ License Status ]===
    ========================
    License Status  : Licensed
    Channel Status  : Retail/HWID {HRC}
    VL/KMS Capable  : No
    Reason Code     : 0x4004F401 {Dec: 1074066433}
    Reason Text     : This computer has a valid Digital/Store License.
     
    Final Tidy Up  : Started
    Final Tidy Up  : Redundant Environment Variables
    Final Tidy Up  : Redundant Environment Variables
    Final Tidy Up  : Completed
     
    Unicode Mode   : Deactivated
    Orig Codepage  : 437
     
    ----------------------------------------------------------------------
    MRP's enhanced debug log has completed.
    
    Screenshot 2021-10-05 214920.jpg
     
  17. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    3,840
    11,333
    120
    Re time zone.

    It is what is returned via the wmic and registry queries.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    3,840
    11,333
    120
    #7459 mxman2k, Oct 6, 2021
    Last edited: Oct 6, 2021
    (OP)
    Regarding how the 'Time Zone Data' is defined:

    Registry query for TZone Data as used within MRP/Query Tool:
    Code:
    reg query "HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" /v "TimeZoneKeyName"
    Wmic is not used for this part.

    Technically at this moment in time for your GEO location it should be: Central European Summer Time

    I think it is because you have the other settings for en-US / English United States and this is telling the OS the wrong info for the time zone?

    That is a 'bug' in the OS and so nothing i can do about it at this time. Will see if i can find another method that works on the GEO location too to then display hopefully the correct TZ Data.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    3,840
    11,333
    120
    Another method i have added to QT118 (and MRPv141) is using TZUtil /g to also obtain the name, but i still think it will be incorrect due to the strange 'bug' in how the OS determines the TZ Data...

    Code:
    Time Zone Data {Registry}  : GMT Standard Time {Bias: +01:00}
    Time Zone Data {TzUtil}    : GMT Standard Time
    Using Daylight Saving Mode : Yes 
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...