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,339
    21,226
    210
    Baseline candidate 1 will be ready for beta testing very soon.

    Just been busy with appointments and assessments so had no time to work on the project.

    The code base is done its just making sure spelling and redundant code is sorted so it shouldn't be long for main release.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,339
    21,226
    210
    MRP 154 BC1 uploaded for beta testers :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. haris_mdlf69

    haris_mdlf69 MDL Addicted

    Oct 23, 2018
    577
    980
    30
  4. Outbreaker

    Outbreaker MDL Senior Member

    Jan 20, 2018
    333
    85
    10
    @mxman2k
    Could you share the code on how to temporally turn off the Internet the connections during OOBE to allow offline/local account creation?
    Looks like everything is in the DeCompile.exe file which I can't open. o_O
     
  5. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,012
    962
    90
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,339
    21,226
    210
    Im not at my pc at moment so cant show the simple lines of code to disable and reenable all internet connections.

    One way is to use netsh the other is via powershell.

    You can use the disable part in oobe.cmd and the reenable part in setupcomplete.cmd a search on google etc for disable all network connections via powershell should give you how it can be achieved.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,339
    21,226
    210
    #10329 mxman2k, Nov 15, 2023
    Last edited: Nov 15, 2023
    (OP)
    Sometimes with w11 home editions it can hang setup when you force disable net connections. I cant remember if it was certain builds such as insider preview or a certain added cumulative update which caused the hang.

    Edit: it was when using vbox.

    But home editions can act strange due to many internal kernel tweaks ms does that ignores certain registry user tweaks ie use notify of updates for wu etc.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,792
    104,069
    450
    It was on vbox installs, on vmware and real hardware all goes fine:)
     
  9. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,339
    21,226
    210
    Ah my memory is terrible:(

    Almost forgot my blood test this morning. Good job i got a text reminder on my phone!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,339
    21,226
    210
    Under a lot of stress at the moment which not helping much but hopefully next weeks hospital visit will confirm one way or another the 'symptoms' i have is clear or not.

    Either way i will get mrp 154 released, taken a while but all the testing that has been done has ironed out any kinks.

    Thanks guys n gals for your beta testing.

    Hoping many more mrp's will follow....
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. Ace2

    Ace2 MDL Expert

    Oct 10, 2014
    1,868
    1,534
    60
    Code:
    Tested Windows 11 Home Version 22H2 (OS Build 22621.1) [Date 16/11/2023]
    
    Reg.exe load HKLM\SOFTHIVE D:\Windows\System32\config\SOFTWARE
    Reg.exe add "HKLM\SOFTHIVE\Microsoft\Windows\CurrentVersion\OOBE" /v "HideWirelessSetupInOOBE" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SOFTHIVE\Microsoft\Windows\CurrentVersion\OOBE" /v "HideOnlineAccountScreens" /t REG_DWORD /d "1" /f
    Reg.exe unload HKLM\SOFTHIVE
    Working.;)
     
  12. Outbreaker

    Outbreaker MDL Senior Member

    Jan 20, 2018
    333
    85
    10
    Mmm that's interesting. Will check that out. :g:
     
  13. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,339
    21,226
    210
    Turn off all network connections -- Use in oobe.cmd as it will be needed to be run very early on BEFORE the user oobe stuff starts...

    Code:
    
    Powershell -Command "Get-NetAdapter | ? status -eq up | Disable-NetAdapter -Confirm:$false"
    
    
    Or Using WMIC instead:
    Code:
    
    wmic path win32_networkadapter where "physicaladapter=true" call disable >nul 2>&1
    
    
    To turn back on via setupcomplete.cmd, runonce or by cmd prompt after the desktop appears...
    Code:
    
    Powershell -Command "Get-NetAdapter | ? status -ne up | Enable-NetAdapter -Confirm:$false"
    
    
    WMIC method:
    Code:
    
    wmic path win32_networkadapter where "physicaladapter=true" call enable >nul 2>&1
    
    
    On Home editions as mentioned it may cause hangs on using the reenable part in a script, however the disable side is ok via oobe.cmd, you can also reenable manually the network connections once the desktop appears.

    The added advantage when disabling net connections is that during oobe the OS cant download updates or other stuff in the background without you knowing. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,339
    21,226
    210
    Tomorrow i got some time in the morning so hoping to release mrp154 then but failing that it will be saturday morning at latest.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,339
    21,226
    210
    MRP 154.0 has been uploaded, 2nd post's download link, password and hashes has been updated. :)

    Added two new OEM themes: Shenzhen and Razer.

    DMI Routine updated to prevent some odd incorrect naming.

    Updated the W11 SearchOnTaskbarMode code to work again. But it may show the full search box when a later CU is installed.

    For vbox users the 'disable network during oobe' option wont be used as have had a couple of users mention it had caused some setup issues so until a solution can be found that option wont be operative if vbox is detected.This does not affect other vm software users.

    Updated Defender exclusions for MRP & GUI QT.

    Added option: Add 'End Task' Right-Click item to the W11 Task Bar.
    Added option: Add'Disable Co-Pilot'.

    Updated the activation method detection routines, KMS is better detected if KMS38 used etc.

    Added a special option , set by oobe.cmd only for multi language iso users that hopefully stops setup/windows updating language files and confusing the os. It basically disables some scheduled tasks related to international and language updating.

    Various other code tweaks here and there i cant remember!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,339
    21,226
    210
    OEM_COA_NonSLP :g:

    Not sure why that showing but it not matter as i guess you will be using KMS or it has a HWID for activation purposes...

    The routine obviously detected that code for that wording to be displayed...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...