How to create AIO Windows .ISO with OEM /DLA /STD Activation Methods to choose?

Discussion in 'Serious Discussion' started by d5stroy5r, Nov 9, 2023.

  1. d5stroy5r

    d5stroy5r MDL Novice

    Nov 3, 2019
    5
    1
    0
    #1 d5stroy5r, Nov 9, 2023
    Last edited: Nov 9, 2023
    How to create AIO Windows .ISO with OEM /DLA /STD /KMS /DAZ Activation Methods to choose?

    [​IMG]
    The above image is the referece from "Generation2" build windows .iso.


    Can someone plz guide me to make this type of windows.iso with all editions and also options to choose the activation method i.e.: OEM / DLA / STD /KMS/ DAZ (For Windows7).
    * STD = Standard installation - For those with own License Key
    * DLA = Digital License Activation (HWID)
    * OEM - Will automatically activate if installing
    * DAZ = Activated by DAZ Loader (for Windows7)
    * KMS = Activated by KMS

    I was able to create Allin1 windows .iso but unable to figure out the process to add these activation methods i.e.: OEM / DLA / STD /KMS/ DAZ (For Windows7).

    Any help/guide/suggestion will be much appriciated.

    Thank you.
     
  2. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,006
    955
    90
    You don't need to build a massive AIO. Just leave it default (usually Retail) and if you need to, change the channel by using the default manufacturer keys using slmgr /ipk.
    Example for Win 10/11 Home:
    Code:
    TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 KMS
    37GNV-YCQVD-38XP9-T848R-FC2HD OA3 (OEM_DM)
    YTMG3-N6DKC-DKB77-7M9GH-8HVX7 Retail
    46J3N-RY6B3-BJFDY-VBFT9-V22HG COA
    Scripts like KMS_VL_All and MAS will change to the correct channel before activation anyway.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. d5stroy5r

    d5stroy5r MDL Novice

    Nov 3, 2019
    5
    1
    0
    Thanks for the info, but I wanted to know the process of building that kind of AIO iso.
    Any guide will be appreciated.


    Thank you.
     
  4. Exe_new

    Exe_new MDL Novice

    Oct 25, 2022
    13
    12
    0
    i suggest to create your own batch script while taking help of w10 ui, etc.
    Example:
    Code:
    <!-- : Begin batch script
    @echo off
    color 0f
    setlocal EnableDelayedExpansion
    :: Fix for special characters in file name by @abbodi1406
    setlocal DisableDelayedExpansion
    set "work=%~dp0"
    if [%work:~-1%]==[\] set "work=%work:~0,-1%"
    setlocal EnableDelayedExpansion
    pushd "!work!"
    %systemroot%\system32\fsutil.exe dirty query %systemdrive% >nul 2>&1 || (
        %systemroot%\System32\cscript.exe //nologo "%~nx0?.wsf" //job:ELAV /File:"!work!\%~nx0"
        exit /b
    )
    reg query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && ( set "arch=x86" ) || ( set "arch=x64" )
    if %arch%==x86 (
      set "_wimlib=%~dp0bin\wimlib-imagex.exe"
      set "xOS=x86"
    ) else (
      set "_wimlib=%~dp0bin\bin64\wimlib-imagex.exe"
      set "xOS=amd64"
    )
    set "_dism=dism.exe"
    set regKeyPathFound=1
    set wowRegKeyPathFound=1
    reg.exe query "HKLM\Software\Wow6432Node\Microsoft\Windows Kits\Installed Roots" /v KitsRoot10 1>nul 2>nul || set wowRegKeyPathFound=0
    reg.exe query "HKLM\Software\Microsoft\Windows Kits\Installed Roots" /v KitsRoot10 1>nul 2>nul || set regKeyPathFound=0
    if %wowRegKeyPathFound% equ 0 (
      if %regKeyPathFound% equ 0 (
        goto :START
      ) else (
        set regKeyPath=HKLM\Software\Microsoft\Windows Kits\Installed Roots
      )
    ) else (
        set regKeyPath=HKLM\Software\Wow6432Node\Microsoft\Windows Kits\Installed Roots
    )
    for /f "skip=2 tokens=2*" %%i in ('reg.exe query "%regKeyPath%" /v KitsRoot10') do set "KitsRoot=%%j"
    set "DandIRoot=%KitsRoot%Assessment and Deployment Kit\Deployment Tools"
    if exist "%DandIRoot%\%xOS%\DISM\dism.exe" (
    set _ADK=1
    set _dism="%DandIRoot%\%xOS%\DISM\dism.exe"
    )
    set "_7z=bin\7z.exe"
    set "_imgx=bin\imagex.exe"
    set "_cdimg=bin\cdimage.exe"
    for %%# in (TEMPU MOUNT ISOFOLDER) do (
        if exist "!work!\%%#" rd "%%#" /s /q
        md %%#
    )
    echo Extracting ISO file...
    !_7z! x -y -o"ISOFOLDER\" "Source_ISO\"
    for /f "tokens=2 delims=: " %%# in ('dism /english /get-wiminfo /wimfile:"ISOFOLDER\sources\install.wim" /index:1 ^| find /i "Architecture"') do set warch=%%#
    set warch=%warch:x=X%
    echo !warch! ISO is detected
    echo Creating more SKUs...
    !_imgx! /mountrw "ISOFOLDER\sources\install.wim" 1 "mount"
    !_dism! /image:"mount" /set-edition:Professional /channel:Retail
    !_imgx! /commit /append "mount" Windows 11 Pro
    !_imgx! /unmount "mount"
    !_imgx! /flags "Professional" /info "ISOFOLDER\sources\install.wim" 3 "Windows 11 Pro" "Windows 11 Pro"
    !_wimlib! info "ISOFOLDER\sources\install.wim" 3 --image-property DISPLAYNAME="Windows 11 Pro" --image-property DISPLAYDESCRIPTION="Windows 11 Pro"
    !_imgx! /mountrw "ISOFOLDER\sources\install.wim" 2 "mount"
    !_dism! /image:"mount" /set-edition:ProfessionalN /channel:Retail
    !_imgx! /commit /append "mount" "Windows 11 Pro N"
    !_imgx! /unmount "mount"
    !_imgx! /flags "ProfessionalN" /info "ISOFOLDER\sources\install.wim" 4 "Windows 11 Pro N" "Windows 11 Pro N"
    !_wimlib! info "ISOFOLDER\sources\install.wim" 4 --image-property DISPLAYNAME="Windows 11 Pro N" --image-property DISPLAYDESCRIPTION="Windows 11 Pro N"
    echo Optimizing install.wim...
    !_wimlib! optimize "ISOFOLDER\sources\install.wim" --compress=LZX:100 --recompress
    echo Copying files...
    xcopy "$OEM$" "ISOFOLDER\sources\$OEM$" /E /H /C /I
    
    del "ISOFOLDER\sources\appraiserres.dll"
    copy "appraiserres.dll" "ISOFOLDER\sources"
    echo Extracting Dart...
    If "!warch!"=="X86" set "darch=1"
    If "!warch!"=="X64" set "darch=2"
    md "TEMPU\dart"
    md "TEMPU\dartl"
    md "TEMPU\dartd"
    !_7z! x -y -o"TEMPU\dart\" "Dart\main"
    !_7z! x -y -o"TEMPU\dartl\" "Dart\lp"
    !_7z! x -y -o"TEMPU\dartd\" "Dart\debug"
    echo Extracting winre.wim...
    !_wimlib! extract "ISOFOLDER\sources\install.wim" 1 Windows\System32\Recovery\winre.wim --no-acls --dest-dir=TEMPU
    echo Adding dart to winre.wim...
    !_wimlib! update "TEMPU\winre.wim" 1 --command="add 'TEMPU\dart\!darch!\' '\'"
    !_wimlib! update "TEMPU\winre.wim" 1 --command="add 'TEMPU\dartl\!darch!\' '\'"
    !_wimlib! update "TEMPU\winre.wim" 1 --command="add 'TEMPU\dartd\!darch!\' '\'"
    echo Optimizing winre.wim...
    !_wimlib! optimize "TEMPU\winre.wim" --compress=lzx:100 --recompress
    echo Adding dart to boot.wim...
    !_wimlib! update "ISOFOLDER\sources\boot.wim" 2 --command="add 'TEMPU\dart\!darch!\' '\'"
    !_wimlib! update "ISOFOLDER\sources\boot.wim" 2 --command="add 'TEMPU\dartl\!darch!\' '\'"
    !_wimlib! update "ISOFOLDER\sources\boot.wim" 2 --command="add 'TEMPU\dartd\!darch!\' '\'"
    !_wimlib! update "ISOFOLDER\sources\boot.wim" 2 --command="add 'murphy78\x64' '\'"
    echo Optimizing boot.wim...
    !_wimlib! optimize "ISOFOLDER\sources\boot.wim" --compress=lzx:100 --recompress
    echo Adding winre.wim to install.wim...
    !_wimlib! update "ISOFOLDER\sources\install.wim" 1 --command="add 'TEMPU\winre.wim' '\Windows\System32\Recovery\winre.wim'"
    !_wimlib! update "ISOFOLDER\sources\install.wim" 2 --command="add 'TEMPU\winre.wim' '\Windows\System32\Recovery\winre.wim'"
    !_wimlib! update "ISOFOLDER\sources\install.wim" 3 --command="add 'TEMPU\winre.wim' '\Windows\System32\Recovery\winre.wim'"
    !_wimlib! update "ISOFOLDER\sources\install.wim" 4 --command="add 'TEMPU\winre.wim' '\Windows\System32\Recovery\winre.wim'"
    echo Optimizing install.wim...
    !_wimlib! optimize "ISOFOLDER\sources\install.wim" --compress=lzx:100 --recompress
    echo Creating virtual editions...
    call create_virtual_editions.cmd
    for /f %%A in ('dir /b 22000*') do ren %%A ISOFOLDER
    echo Re-arranging install.wim...
    !_wimlib! info ISOFOLDER\sources\install.wim 1 --image-property DISPLAYNAME="Windows 11 Home" --image-property DISPLAYDESCRIPTION="Windows 11 Home"
    !_wimlib! info ISOFOLDER\sources\install.wim 2 --image-property DISPLAYNAME="Windows 11 Home N" --image-property DISPLAYDESCRIPTION="Windows 11 Home N"
    !_wimlib! info ISOFOLDER\sources\install.wim 3 --image-property DISPLAYNAME="Windows 11 Pro" --image-property DISPLAYDESCRIPTION="Windows 11 Pro"
    !_wimlib! info ISOFOLDER\sources\install.wim 4 --image-property DISPLAYNAME="Windows 11 Pro N" --image-property DISPLAYDESCRIPTION="Windows 11 Pro N"
    for /l %%a in (1,1,17) do (!_wimlib! info ISOFOLDER\sources\install.wim %%a --image-property WINDOWS/INSTALLATIONTYPE=Server)
    !_wimlib! export "ISOFOLDER\sources\install.wim" 1 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 2 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 13 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 16 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 17 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 3 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 4 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 8 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 12 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 7 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 11 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 6 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 10 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 5 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 9 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 14 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    !_wimlib! export "ISOFOLDER\sources\install.wim" 15 "ISOFOLDER\sources\install1.wim" --compress=lzx:100 --recompress
    del "ISOFOLDER\sources\install.wim" /f /q
    ren "ISOFOLDER\sources\install1.wim" install.wim
    !_wimlib! optimize "ISOFOLDER\sources\install.wim" --compress=lzx:100 --recompress
    echo Compressing to ESD...
    !_wimlib! export "ISOFOLDER\sources\install.wim" all "ISOFOLDER\sources\install.esd" --compress=lzms:100 --solid --recompress
    del "ISOFOLDER\sources\install.wim" /f /q
    copy "ei.cfg" "ISOFOLDER\sources"
    echo Making ISO...
    !_cdimg! -bootdata:2#p0,e,b"ISOFOLDER\boot\etfsboot.com"#pEF,e,b"ISOFOLDER\efi\microsoft\boot\efisys.bin" -o -m -u2 -udfver102 -x -lCCSA_!warch!CRK_EN-US_DV5 "ISOFOLDER" "en-US~Windows~11~co~!warch!CRK~ExE.ISO"
    echo Cleaning up...
    :cleanup
    for %%# in (TEMPU MOUNT ISOFOLDER) do (
        if exist "!work!\%%#" rd "%%#" /s /q
    )
    pause
    exit /b
    ----- Begin wsf script --->
    <package>
       <job id="ELAV">
           <script language="VBScript">
               Set strArg=WScript.Arguments.Named
    
               If Not strArg.Exists("File") Then
                   Wscript.Echo "Switch /File:<File> is missing."
                   WScript.Quit 1
               End If
    
               Set strRdlproc = CreateObject("WScript.Shell").Exec("rundll32 kernel32,Sleep")
               With GetObject("winmgmts:\\.\root\CIMV2:Win32_Process.Handle='" & strRdlproc.ProcessId & "'")
                   With GetObject("winmgmts:\\.\root\CIMV2:Win32_Process.Handle='" & .ParentProcessId & "'")
                       If InStr (.CommandLine, WScript.ScriptName) <> 0 Then
                           strLine = Mid(.CommandLine, InStr(.CommandLine , "/File:") + Len(strArg("File")) + 8)
                       End If
                   End With
                   .Terminate
               End With
    
              CreateObject("Shell.Application").ShellExecute "cmd", "/c " & chr(34) & chr(34) & strArg("File") & chr(34) & " " & strLine & chr(34), "", "runas", 1
           </script>
       </job>
    </package>
    
     
  5. gorski

    gorski MDL Guru

    Oct 21, 2009
    5,547
    1,473
    180
    Download multi-version ISO v. 11 from Windows website.

    Use ISO editor to do this:

    You will find the already mentioned KMS_ALL on this excellent forum...

    Use it after installing Office of your choice, it does the job for both...

    Btw, you can make your own version of Win without the bloatware....
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. gorski

    gorski MDL Guru

    Oct 21, 2009
    5,547
    1,473
    180
    And there is another method (Win 11 Pro version)...

    No bloatware Win11: https://forums.mydigitallife.net/th...anguage-extra-theme.86209/page-7#post-1816590

    ====An Easy Method====

    1) Download this: https://www.mediafire.com/file/451pgd4srmx65w4/Windows11-install.wim-generator.rar/file

    Extract it and note that the folder must not have empty spaces in its name, so place the folder, for instance, in D: partition.

    2) Right-click on "uup_download_windows.cmd" => Run as administrator to generate "install.esd".

    It starts with a big job that may last for quite a while, depending on your PC...

    3) Download "Windows 11 22h2/23H2 Base" from here:

    https://www.mediafire.com/file/haup7va3tf1ekrs/W11-BYPASS_TPM-v5_Base-English.iso/file

    4) Open this iso with an editor like UltraIso and put the newly generated install.esd from uupdump.net script - to the source folder of the ISO and

    5) replace the above-mentioned ei.cfg file, then

    6) save the now modified ISO.

    Voila!

    P.S. @pm67310 advises to switch off your anti-virus programme, to avoid errors (like I had)...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. gorski

    gorski MDL Guru

    Oct 21, 2009
    5,547
    1,473
    180
    #7 gorski, Dec 5, 2023
    Last edited: Dec 5, 2023
    No bloatware Win11 info thread:

    https://forums.mydigitallife.net/th...anguage-extra-theme.86209/page-7#post-1816590

    Update... Shared in good faith, after I had to work on it a bit, to understand the process and goals a bit better, being a non-techie myself => so non-IT people, like me, can have an easier ride with this...

    How to get Win 11 Pro version 23H2, with reduced bloatware, offline installation/no MS account needed > afterward, change it to the Education version)

    "Education"/"EducationN" is the best/least bad W11 variant, compatible with big updates, supported the longest and with a minimum of rubbish in it, plus it has the most features that matter, we are told by experts!

    ====An Easy Method (Tested by me - working!!! [And if I can - anyone can!!! :D ]====

    1) Download this: https://www.mediafire.com/file/451pgd4srmx65w4/Windows11-install.wim-generator.rar/file

    Extract it and note that the folder must not have empty spaces in its name, so place the folder, for instance, in D: partition.

    Note: @pm67310 advises us to switch off our anti-virus programme, to avoid errors (like I had them...)...

    2) Right-click on "uup_download_windows.cmd" => "Run as administrator" to generate "install.esd".

    This starts a big job that may last for quite a while, depending on your PC...

    3) Download "Windows 11 22h2/23H2 Base" from here:

    https://www.mediafire.com/file/haup7va3tf1ekrs/W11-BYPASS_TPM-v5_Base-English.iso/file

    4) Open this ISO with an editor like UltraIso and put the newly generated install.esd from uupdump.net script ==> into the "Source" folder of the ISO and

    5) replace the above-mentioned ei.cfg file in the same spot, then

    6) save the now modified ISO.

    7) Burn it with the latest Rufus, with all the options ticked.

    8) Install offline ("I have no internet"/"Continue with limited installation") and afterward, change the W11 version => enter this key to switch to the Education flavour of Win11 (possible because the W11 base in this ISO is Pro):

    NW6C2-QMPVW-D7KKK-3GKT6-VCFB2

    It may tell you you can't do it but after executing step no. 10 - it will be done, so disregard the "unsuccessful" message at this point!

    9) Install the "Office" of your choice, then

    10) activate both W11 and Office with "KMS_VL_ALL" (find it on MDL) or "Massgravel 2.5".

    11) You can now go online. Update W11 Education, change/download a language packet of your choice to change the "display language" of Win11 etc. etc.

    And lastly...

    12) Seriously reduce/eliminate almost all the MS bloatware with an app/script called "Windows 10_11 Optimizer" v. 1.2.

    13) iOBit's "SW Uninstaller" can also help uninstall cr@p and unwanted bloatware...

    Njoy!

    P.S. A bigup to @pm67310 !!! Also to other contributors to the scene, who can mostly be seen on MDL!!!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. d5stroy5r

    d5stroy5r MDL Novice

    Nov 3, 2019
    5
    1
    0
    Thanks a lot for all these fantastic suggestions, I will try to implement it, and if I will have more queries I will let you know.