My Custom Windows 11 ISO Pauses at the "Just a Moment" Screen!

Discussion in 'Windows 11' started by RobertX, Jan 17, 2024.

  1. RobertX

    RobertX MDL Senior Member

    Dec 6, 2014
    279
    35
    10
    #1 RobertX, Jan 17, 2024
    Last edited: Jan 17, 2024
    This is what I do for my Windows 11 images:
    1. Use Win11BYPASS script found in the Windows 11 section of this Windows 11 forum and patch the boot.wim using the tool.
    2. Make an unattended XML file to skip Windows 11 installation from asking stupid questions about logging in to my Microsoft account, add a licence key, and ask about privacy questions. In short, it just cuts to the chase and starts Windows right away. This was done in NTLite.
    3. Integrate new hotfixes to Windows. This was also done in NTLite.
    4. Make four editions of the same Windows 11 Pro install.wim using three different activators: use your own licence key, KMS_VL_AIO, HWID, and KMS38 (MAS Scripts). For this, I used NTLite to make these editions into one install.wim file, and used MSMG Toolkit to put associate different REG files to the editions that use activation. I scripted the change in SetupComplete.cmd by making a set of "if" statements. This is done so that if the user picks, say, the KMS activator, the REG file associated with it in MSMG Toolkit is thrown, and SetupComplete.cmd will use the KMS_VL_AIO activator. If the user picks "User your licence key," no REG keys will be thrown so the user would need to activate Windows using his/her serial.
    It has always worked well, until just a few days ago. I found that my ISOs were getting bloated, like 10GB or higher. I realise that if it gets bigger, it will drain the space on my drive. So, I learned about being able to delete updates, and I believe that's where the troubles began: I used the cleanup service from NTLIte for the DISM Compatible option and the DISM Resetbase option, in two different times, and the results are not working well. After wiping out the older updates while integrating the newer ones, a quick installation turned into a nightmare and now, my PC can't get past the "Just a moment" part. Nothing would do anything except the circle animation. Nothing. The PC just halted. I don't know why it was like that, and frankly, I'm afraid. I might think that perhaps it's NTLite, but then again, NTLite is just a frontend for DISM, just like MSMG and DISM++, is that right? Or did I do something I shouldn't do like making an unattended install or enable DirectPlay and SMB/CIFS 1.0? I'm all out of clues.

    If anyone can point me to the right direction, I would be grateful. Thank you.
     
  2. RobertX

    RobertX MDL Senior Member

    Dec 6, 2014
    279
    35
    10
    By the way, the newest update for the Windows 11 ISO was the recent one, 22631.3007.
     
  3. RobertX

    RobertX MDL Senior Member

    Dec 6, 2014
    279
    35
    10
    If you're wondering, here is my SetupComplete.cmd script:

    Code:
    echo off
    
    REM Evaluate the choice of install type made by user by use of registry keys sent by each choice
    for /f "tokens=3" %%a in ('reg query "HKEY_LOCAL_MACHINE\Software\SPECIAL" /v "State" ^|findstr /ri "REG_SZ"') do set "state=%%a"
    
    REM If KMS install is requested, activate using the KMS Activator
    if %state%==KMS (
    call %~dp0KMS_VL_ALL_AIO.cmd /s /a /w
    )
    
    REM If HWID install is requested, activate using the HWID Activator
    if %state%==HWID (
    fltmc >nul || exit /b
    call "%~dp0MAS_AIO.cmd" /HWID
    )
    
    REM If KMS38 install is requested, activate using the KMS38 Activator
    if %state%==KMS38 (
    fltmc >nul || exit /b
    call "%~dp0MAS_AIO.cmd" /KMS38
    )
    
    REM Clean up and delete the directory and the registry keys
    cd \
    (goto) 2>nul & (if "%~dp0"=="%SystemRoot%\Setup\Scripts\" rd /s /q "%~dp0")
    reg delete HKEY_LOCAL_MACHINE\SOFTWARE\SPECIAL /f
    del /q /f "%0"