[GUIDE] [DISCUSSION] Windows Editions Reconstructions

Discussion in 'Windows 10' started by TesterMachineOS, Sep 3, 2024.

  1. xinso

    xinso MDL Guru

    Mar 5, 2009
    15,022
    15,280
    340
  2. winosr25

    winosr25 MDL Senior Member

    May 14, 2024
    420
    527
    10
    example (29595.1000) transforms boot.wim into Winpe.wim for recontruction

    Code:
    @echo off
    pushd "%~dp0"
    
    md mount
    set MT=mount
    md update
    set au=update
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    echo.
    echo ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    echo Mount %SOURCE% image
    echo ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    echo.
    dism /english /mount-wim /wimfile:boot.wim /index:1 /mountdir:%MT%
    
    dism /english /image:%MT% /apply-unattend:0winpe.xml
    
    dism /english /unmount-wim /mountdir:%MT% /commit
    dism /english /export-image /sourceimagefile:boot.wim /sourceindex:1 /destinationimagefile:winpe.wim /Compress:max /CheckIntegrity
    
    echo.
    pause
    exit
     

    Attached Files:

  3. Bira

    Bira MDL Senior Member

    Oct 4, 2017
    364
    207
    10
    https://forums.mydigitallife.net/th...s-reconstructions.88605/page-251#post-1913010
     
  4. 2012mshs

    2012mshs MDL Junior Member

    Aug 13, 2015
    63
    106
    0
  5. Bira

    Bira MDL Senior Member

    Oct 4, 2017
    364
    207
    10
    #5065 Bira, May 27, 2026
    Last edited: May 27, 2026
    So, when I asked if anyone knew how to do this, my friend @pp03 helped me. I saw this example he showed. I used some things in other places because the example alone was useless. I looked for how to make the .cat file for my mother, which is now signed, for wcp.dll. I never changed what that fix would be. I didn't understand your question. In fact, look inside the bin\x64 folder or any other folder, there is a file called MT. Run it and see if you can tweak it yourself, as the DLL is created from the manifest. You can take a look to see if you can get what we want and then give us a solution. Run this command and see the options: mt.exe /?
     
  6. pp03

    pp03 MDL Expert

    Apr 12, 2014
    1,416
    471
    60
    #5067 pp03, May 27, 2026
    Last edited: May 27, 2026
    wcp patched to avoid hash error or apply esu to 19044/5 pro for example
     
  7. Bira

    Bira MDL Senior Member

    Oct 4, 2017
    364
    207
    10
    for modifications like this you have the resource hacker among others What I did was just change the constant hash
     

    Attached Files:

  8. pp03

    pp03 MDL Expert

    Apr 12, 2014
    1,416
    471
    60
  9. pp03

    pp03 MDL Expert

    Apr 12, 2014
    1,416
    471
    60
    #5074 pp03, May 27, 2026
    Last edited: May 27, 2026
    i'll try, thank you :)

    edit:
    C:\Users\LocalAdmin\Downloads>dism /english /image:mount /apply-unattend:0winpe.xml
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.2600

    Image Version: 10.0.29595.1000


    Error: 5

    DISM failed. No operation was performed.
    For more information, review the log file.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    Error CBS Only package owners can remove package: WinPE-MDAC-Package-windows~31bf3856ad364e35~amd64~~10.0.29595.1000: HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED)
     
  10. winosr25

    winosr25 MDL Senior Member

    May 14, 2024
    420
    527
    10
    #5075 winosr25, May 27, 2026
    Last edited: May 27, 2026
    successful construction windows server standard edition

    without the
    Microsoft-Windows-Hotpatch-Targeting-Gated-Package

    script
    Code:
    @echo off
    pushd "%~dp0"
    
    md mount
    set MT=mount
    md temp
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    echo.
    echo ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    echo Mount %SOURCE% image
    echo ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    echo.
    dism /english /mount-wim /wimfile:coreos.wim /index:1 /mountdir:mount
    
    Reg load HKLM\SOFTHIVE %MT%\Windows\System32\config\SOFTWARE
    reg import azure\winre1.reg
    Reg unload HKLM\SOFTHIVE
    
    Reg load HKLM\SYSHIVE %MT%\Windows\System32\config\SYSTEM
    reg import azure\winre2.reg
    Reg unload HKLM\SYSHIVE
    
    Reg load HKLM\COMPONHIVE %MT%\Windows\System32\config\COMPONENTS
    reg import azure\winre3.reg
    Reg unload HKLM\COMPONHIVE
    
    copy /y Microsoft-Windows-ServerStandardEdition~31bf3856ad364e35~amd64~~10.0.29595.1000.mum %MT%\Windows\servicing\Packages\Microsoft-Windows-ServerStandardEdition~31bf3856ad364e35~amd64~~10.0.29595.1000.mum
    copy /y Microsoft-Windows-ServerStandardEdition~31bf3856ad364e35~amd64~~10.0.29595.1000.cat %MT%\Windows\servicing\Packages\Microsoft-Windows-ServerStandardEdition~31bf3856ad364e35~amd64~~10.0.29595.1000.cat
    copy /y Microsoft-Windows-EditionConfiguration-Server-Full-Package~31bf3856ad364e35~amd64~~10.0.29595.1000.mum %MT%\Windows\servicing\Packages\Microsoft-Windows-EditionConfiguration-Server-Full-Package~31bf3856ad364e35~amd64~~10.0.29595.1000.mum
    copy /y Microsoft-Windows-EditionConfiguration-Server-Full-Package~31bf3856ad364e35~amd64~~10.0.29595.1000.cat %MT%\Windows\servicing\Packages\Microsoft-Windows-EditionConfiguration-Server-Full-Package~31bf3856ad364e35~amd64~~10.0.29595.1000.cat
    
    Reg load HKLM\SOFTHIVE %MT%\Windows\System32\config\SOFTWARE
    reg import patch.reg
    Reg unload HKLM\SOFTHIVE
    
    dism /english /image:%MT% /apply-unattend:sxs\0.xml
    
    dism /english /image:%MT% /cleanup-image /startcomponentcleanup /resetbase
    dism /english /unmount-wim /mountdir:%MT% /commit
    dism /english /export-image /sourceimagefile:coreos.wim /sourceindex:1 /destinationimagefile:install.wim /Compress:max /CheckIntegrity
    
    rd /s /q mount
    
    pause
    exit
    resulta
    Code:
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Mount  image
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5074
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    L’opération a réussi.
    L’opération a réussi.
    L’opération a réussi.
    L’opération a réussi.
    L’opération a réussi.
    L’opération a réussi.
    L’opération a réussi.
    L’opération a réussi.
    L’opération a réussi.
            1 fichier(s) copié(s).
            1 fichier(s) copié(s).
            1 fichier(s) copié(s).
            1 fichier(s) copié(s).
    L’opération a réussi.
    L’opération a réussi.
    L’opération a réussi.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5074
    
    Image Version: 10.0.29595.1000
    
    Applying package servicing unattend
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5074
    
    Image Version: 10.0.29595.1000
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5074
    
    Image File : H:\29595\coreos.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5074
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    Appuyez sur une touche pour continuer...
     

    Attached Files:

  11. xinso

    xinso MDL Guru

    Mar 5, 2009
    15,022
    15,280
    340
  12. winosr25

    winosr25 MDL Senior Member

    May 14, 2024
    420
    527
    10
    #5077 winosr25, May 27, 2026
    Last edited: May 27, 2026
    My database is WinPE, which I convert to CoreOS (>100 MB)
    ServerTurbine 29595 fr construction
    Install.wim file size: 2.88 Go. WinRE is missing.

    size source construction with fr and us 8.66go
     

    Attached Files:

    • 1.png
      1.png
      File size:
      255.1 KB
      Views:
      18
    • 2.png
      2.png
      File size:
      230.7 KB
      Views:
      18
    • 3.png
      3.png
      File size:
      242.5 KB
      Views:
      18
    • 4.png
      4.png
      File size:
      91.8 KB
      Views:
      18
  13. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    688
    438
    30
    Hi @Bira , thanks for letting me know. Your script has been added to the thread's index. I'm glad to see you back in this thread since you were last active. :)

    I've updated the index. I still need to verify some scripts that have been shared here before adding them.

    I'm still taking my time to read every post in this thread just to make sure we're on the same topic. ;)
     
  14. Bira

    Bira MDL Senior Member

    Oct 4, 2017
    364
    207
    10
    Let's put the topic where not only with results on screen but also sharing scripts in which the results were made, explanations of how we got there, so that we have a wide library as well as other topics for those who don't know how to learn 'Construction and Reconstruction' here on the forum with everyone, all help and ideas are welcome, abs partner...
     
  15. 2012mshs

    2012mshs MDL Junior Member

    Aug 13, 2015
    63
    106
    0