[ARCHIVED] Windows Editions Reconstruction Project

Discussion in 'Windows 10' started by whatever127, Jan 10, 2020.

Thread Status:
Not open for further replies.
  1. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,707
    14,434
    340
    #8921 xinso, Jul 28, 2022
    Last edited: Jul 28, 2022
    It is Enablement specific to 20348 AzureStackHCI.
     
  2. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,707
    14,434
    340
  3. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,707
    14,434
    340
    #8923 xinso, Jul 29, 2022
    Last edited: Jul 29, 2022
    Test reconstructing 20349.859 Azure Stack HCI amd64 zh-TW

    [Reconstruction]
    Code:
    
    ======================================================================================================================
    Prepare sources
    ======================================================================================================================
    
    ------------------------------------------------------------
    Expand LCU
    ------------------------------------------------------------
    
    ======================================================================================================================
    Create 20349.859 Azure Stack HCI amd64 zh-TW
    ======================================================================================================================
    
    ------------------------------------------------------------
    Mount ServerDataCenterCore image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Convert ServerDataCenterCore to ServerAzureStackHCICor
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Removing package Microsoft-Windows-ServerDatacenterCorEdition~31bf3856ad364e35~amd64~~10.0.20348.1
    Removing package Microsoft-Windows-ServerDatacenterCorEdition~31bf3856ad364e35~amd64~~10.0.20348.1
    [==========================100.0%==========================]
    
    The operation completed successfully.
    
    ------------------------------------------------------------
    Add zh-TW language pack
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Microsoft-Windows-Server-LanguagePack-Package~31bf3856ad364e35~amd64~zh-TW~10.0.20348.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Add updates to winre image
    ------------------------------------------------------------
    
    Mount winre image
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Add SSU
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_850~31bf3856ad364e35~amd64~~20348.850.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Add Hotfix
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_KB5015022~31bf3856ad364e35~amd64~~20348.791.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Add LCU
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~20348.859.1.11
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Reset winre base
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.859
    
    [===========================86.6%==================        ]
    The operation completed successfully.
    
    Save and Unmount winre image
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image File : Z:\20348.1_SDCCor_to_AzureStackHCICor_amd64\temp\mount\Windows\System32\Recovery\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Optimize winre image
    
    "temp\mount\Windows\System32\Recovery\winre.wim" original size: 729510 KiB
    Using LZX compression with 12 threads
    Archiving file data: 1229 MiB of 1229 MiB (100%) done
    "temp\mount\Windows\System32\Recovery\winre.wim" optimized size: 509355 KiB
    Space saved: 220155 KiB
    
    ------------------------------------------------------------
    Add updates to ServerAzureStackHCICor image
    ------------------------------------------------------------
    
    Add SSU
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_850~31bf3856ad364e35~amd64~~20348.850.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Add ASOSFe22H2Enablement
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_KB5016060~31bf3856ad364e35~amd64~~20348.854.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Add Hotfix
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_KB5015022~31bf3856ad364e35~amd64~~20348.791.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Add DotNetRollup
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4536.3
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Add LCU
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~20348.859.1.11
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Current Edition : ServerAzureStackHCICor (Retail)
    ============================================================
    
    ------------------------------------------------------------
    Reset ServerAzureStackHCICor base
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20349.859
    
    [=====                      10.0%                          ]
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Save and Unmount ServerAzureStackHCICor image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image File : Z:\20348.1_SDCCor_to_AzureStackHCICor_amd64\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Optimize ServerAzureStackHCICor image
    ------------------------------------------------------------
    
    "install.wim" original size: 3645504 KiB
    Using LZX compression with 12 threads
    Archiving file data: 4787 MiB of 4787 MiB (100%) done
    "install.wim" optimized size: 2587513 KiB
    Space saved: 1057990 KiB
    
    ------------------------------------------------------------
    Set wim information
    ------------------------------------------------------------
    
    Setting the NAME property of image 1 to "Windows Server 2022 AzureStackHCICor".
    Setting the DESCRIPTION property of image 1 to "Windows Server 2022 AzureStackHCICor".
    Setting the FLAGS property of image 1 to "ServerAzureStackHCICor".
    Setting the DISPLAYNAME property of image 1 to "Azure Stack HCI".
    Setting the DISPLAYDESCRIPTION property of image 1 to "This option will install Azure Stack HCI.".
    
    ------------------------------------------------------------
    Delete temporary folder
    ------------------------------------------------------------
    
    ======================================================================================================================
    20349.859 Azure Stack HCI amd64 zh-TW has been successfully created on 2022/7/29
    ======================================================================================================================
    
    Conversion took 0:14:16.10 (856.10s total)
    
    Press any key to continue . . .
    
    
    [WIM Information]
    Code:
    WIM Information:
    ---------------------
    GUID:{B3C4BE05-5298-472B-ACC4-E08EEF7D13D2}
    Image Count:1
    Compression:LZX
    Part Number:1/1
    Attributes:0x8
    RP_FIX
    
    Image Index: 1
    -------------------
    Name:Windows Server 2022 AzureStackHCICor
    Description:Windows Server 2022 AzureStackHCICor
    Flags:ServerAzureStackHCICor
    Files:58435
    Folders:15282
    Expanded Size:7849 MB
    
    
    WIM XML Information:
    ---------------------------
    <WIM>
      <IMAGE INDEX="1">
        <DIRCOUNT>15282</DIRCOUNT>
        <FILECOUNT>58435</FILECOUNT>
        <TOTALBYTES>8230777569</TOTALBYTES>
        <HARDLINKBYTES>3145397060</HARDLINKBYTES>
        <CREATIONTIME>
          <HIGHPART>0x01D8A30F</HIGHPART>
          <LOWPART>0x92B782B8</LOWPART>
        </CREATIONTIME>
        <LASTMODIFICATIONTIME>
          <HIGHPART>0x01D8A30F</HIGHPART>
          <LOWPART>0x92B782B8</LOWPART>
        </LASTMODIFICATIONTIME>
        <WIMBOOT>0</WIMBOOT>
        <WINDOWS>
          <ARCH>9</ARCH>
          <PRODUCTNAME>Microsoft® Windows® Operating System</PRODUCTNAME>
          <EDITIONID>ServerAzureStackHCICor</EDITIONID>
          <INSTALLATIONTYPE>Server Core</INSTALLATIONTYPE>
          <SERVICINGDATA>
            <GDRDUREVISION>0</GDRDUREVISION>
            <PKEYCONFIGVERSION>10.0.20348.681;2016-01-01T00:00:00Z</PKEYCONFIGVERSION>
            <IMAGESTATE>IMAGE_STATE_GENERALIZE_RESEAL_TO_OOBE</IMAGESTATE>
          </SERVICINGDATA>
          <PRODUCTTYPE>ServerNT</PRODUCTTYPE>
          <PRODUCTSUITE>Enterprise</PRODUCTSUITE>
          <LANGUAGES>
            <LANGUAGE>zh-TW</LANGUAGE>
            <FALLBACK LANGUAGE="zh-TW">en-US</FALLBACK>
            <DEFAULT>zh-TW</DEFAULT>
          </LANGUAGES>
          <VERSION>
            <MAJOR>10</MAJOR>
            <MINOR>0</MINOR>
            <BUILD>20349</BUILD>
            <SPBUILD>859</SPBUILD>
            <SPLEVEL>0</SPLEVEL>
            <BRANCH>fe_release</BRANCH>
          </VERSION>
          <SYSTEMROOT>WINDOWS</SYSTEMROOT>
        </WINDOWS>
        <NAME>Windows Server 2022 AzureStackHCICor</NAME>
        <DESCRIPTION>Windows Server 2022 AzureStackHCICor</DESCRIPTION>
        <FLAGS>ServerAzureStackHCICor</FLAGS>
        <DISPLAYNAME>Azure Stack HCI</DISPLAYNAME>
        <DISPLAYDESCRIPTION>This option will install Azure Stack HCI.</DISPLAYDESCRIPTION>
      </IMAGE>
      <TOTALBYTES>2649610475</TOTALBYTES>
    </WIM>
    
    PS:
    Credits go to MDL & whatever127 & Abbodi1406.
     
  4. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    E
    Ever tried to mod enablement to work on non-hci skus?
     
  5. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,707
    14,434
    340
    #8925 xinso, Jul 29, 2022
    Last edited: Jul 29, 2022
    1. The ASOSFe-22h2 packages are existent in Microsoft-Windows-EditionSpecific-ServerAzureStackHCICor-Package only.
    2. Why bother while they are LTSC?
     
  6. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,707
    14,434
    340
    #8926 xinso, Jul 29, 2022
    Last edited: Jul 30, 2022
    Test reconstructing 22622.440 Windows 11 IoTEnterpriseS amd64 en-US
    Code:
    
    ===================================================================================================
    Prepare source image
    ===================================================================================================
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    There is not Store in source image
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Expand LCU
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Creating files: 72234 of 72234 (100%) done
    Extracting file data: 451 MiB of 451 MiB (100%) done
    Applying metadata to files: 72234 of 72234 (100%) done
    Done extracting files.
    
    ===================================================================================================
    Create 22622.440 Windows 11 IoT Enterprise LTSC amd64 en-US
    ===================================================================================================
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Mount Professional image
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Convert Professional to IoTEnterpriseS
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.22621.1
    
    Removing package Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.22621.1
    Removing package Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.22621.1
    [==========================100.0%==========================]
    
    The operation completed successfully.
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Add en-US language pack
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Add Win32 Notepad FOD
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~wow64~~10.0.22621.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~wow64~en-US~10.0.22621.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Add updates to winre image
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    ------------------------------------------------------------
    Mount winre image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Add SSU
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_440~31bf3856ad364e35~amd64~~22621.440.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_440 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ------------------------------------------------------------
    Add LCU
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~22621.440.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Reset winre base
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.22621.440
    
    [===========================98.8%========================= ]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Save and Unmount winre image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image File : Z:\22621.1_Professional_to_IoTEnterpriseS_amd64\temp\mount\Windows\System32\Recovery\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Optimize winre image
    ------------------------------------------------------------
    
    "temp\mount\Windows\System32\Recovery\winre.wim" original size: 728821 KiB
    Using LZX compression with 12 threads
    Archiving file data: 1299 MiB of 1299 MiB (100%) done
    "temp\mount\Windows\System32\Recovery\winre.wim" optimized size: 525225 KiB
    Space saved: 203595 KiB
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Add updates to IoTEnterpriseS image
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    ------------------------------------------------------------
    Add SSU
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_440~31bf3856ad364e35~amd64~~22621.440.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_440 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ------------------------------------------------------------
    Add SV2Moment1 Enablement
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_KB5015669~31bf3856ad364e35~amd64~~22621.285.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Add LCU
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~22621.440.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Set IoTEnterpriseS key
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.22622.440
    
    Starting to install product key...
    Finished installing product key.
    
    The operation completed successfully.
    
    ============================================================
    Current Edition : IoTEnterpriseS (OEM)
    ============================================================
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Reset IoTEnterpriseS base
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.22622.440
    
    [=====                      10.0%                          ]
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Save and Unmount IoTEnterpriseS image
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image File : Z:\22621.1_Professional_to_IoTEnterpriseS_amd64\1.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Set wim information
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Setting the NAME property of image 1 to "Windows 11 IoT Enterprise LTSC 2021".
    Setting the DESCRIPTION property of image 1 to "Windows 11 IoT Enterprise LTSC 2021".
    Setting the FLAGS property of image 1 to "IoTEnterpriseS".
    Setting the DISPLAYNAME property of image 1 to "Windows 11 IoT Enterprise LTSC".
    Setting the DISPLAYDESCRIPTION property of image 1 to "Windows 11 IoT Enterprise LTSC".
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Export IoTEnterpriseS image to install.wim
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ===================================================================================================
    22622.440 Windows 11 IoT Enterprise LTSC amd64 en-US has been successfully created on 2022/7/30
    ===================================================================================================
    
    Mission took 0:12:23.04 (743.04s total)
    
    Press any key to continue . . .
    
    
     
  7. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,707
    14,434
    340
  8. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    Speaking about wrong things... are you sure you are in the right thread ? :p
     
  9. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,707
    14,434
    340
  10. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,707
    14,434
    340
    #8930 xinso, Jul 30, 2022
    Last edited: Jul 30, 2022
    Speaking about "patch" for Reconstruction. Some build can escape, some not.

    e.g. 19044 LTSC. No patch is needed.
    Code:
    echo.
    echo ------------------------------------------------------------
    echo Mount %SOURCE% image
    echo ------------------------------------------------------------
    dism /english /mount-wim /wimfile:install.wim /index:1 /mountdir:%MT%
    
    echo.
    echo ------------------------------------------------------------
    echo Convert %SOURCE% to %SKU%
    echo ------------------------------------------------------------
    dism /english /image:%MT% /apply-unattend:files\sxs\%FD%\%ARCH%\1.xml
    
    echo.
    echo ------------------------------------------------------------
    echo Add %LANG% language
    echo ------------------------------------------------------------
    dism /english /image:%MT% /add-package:lp
    
    e.g. 17763 arm64 LTSC. The patch is a must.
    Code:
    echo.
    echo ------------------------------------------------------------
    echo Mount %SOURCE% image
    echo ------------------------------------------------------------
    dism /english /mount-wim /wimfile:install.wim /index:1 /mountdir:%MT%
    
    echo.
    echo ------------------------------------------------------------
    echo Convert %SOURCE% to %TARGET%
    echo ------------------------------------------------------------
    dism /english /image:%MT% /apply-unattend:files\sxs\%FD%\%ARCH%\1.xml
    
    echo.
    echo ------------------------------------------------------------
    echo Add %LANG% language pack
    echo ------------------------------------------------------------
    dism /english /image:%MT% /add-package:lp
    
    :: Add 17763.2300 patch
    if /i %ARCH% equ arm64 (dism /english /quiet /image:%MT% /add-package:files\patch\17763.2300-arm64.esd)
    
     
  11. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,707
    14,434
    340
    #8932 xinso, Jul 30, 2022
    Last edited: Jul 30, 2022
    It is in official structure. Homebrew Image in any format is prohibited at MDL. Please learn to reconstruct it yourself.
     
  12. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,707
    14,434
    340
    #8933 xinso, Jul 30, 2022
    Last edited: Jul 30, 2022
    Test reconstructing 20349.859 Azure Stack HCI amd64 zh-TW with packages captured by owouwu's pureSxS (without hash mismatched issue)
    Code:
    
    ======================================================================================================================
    Prepare sources
    ======================================================================================================================
    
    ------------------------------------------------------------
    Expand LCU
    ------------------------------------------------------------
    
    ======================================================================================================================
    Create 20349.859 Azure Stack HCI amd64 zh-TW
    ======================================================================================================================
    
    ------------------------------------------------------------
    Mount ServerDataCenterCore image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Convert ServerDataCenterCore to ServerAzureStackHCICor
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Removing package Microsoft-Windows-ServerDatacenterCorEdition~31bf3856ad364e35~amd64~~10.0.20348.1
    Removing package Microsoft-Windows-ServerDatacenterCorEdition~31bf3856ad364e35~amd64~~10.0.20348.1
    [==========================100.0%==========================]
    
    The operation completed successfully.
    
    ------------------------------------------------------------
    Add zh-TW language pack
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Microsoft-Windows-Server-LanguagePack-Package~31bf3856ad364e35~amd64~zh-TW~10.0.20348.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Add updates to winre image
    ------------------------------------------------------------
    
    Mount winre image
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Add SSU
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_850~31bf3856ad364e35~amd64~~20348.850.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Add Hotfix
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_KB5015022~31bf3856ad364e35~amd64~~20348.791.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Add LCU
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~20348.859.1.11
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Reset winre base
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.859
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Save and Unmount winre image
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image File : Z:\20348.1_SDCCor_to_AzureStackHCICor_amd64\temp\mount\Windows\System32\Recovery\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Optimize winre image
    
    "temp\mount\Windows\System32\Recovery\winre.wim" original size: 729514 KiB
    Using LZX compression with 12 threads
    Archiving file data: 1229 MiB of 1229 MiB (100%) done
    "temp\mount\Windows\System32\Recovery\winre.wim" optimized size: 509359 KiB
    Space saved: 220155 KiB
    
    ------------------------------------------------------------
    Add updates to ServerAzureStackHCICor image
    ------------------------------------------------------------
    
    Add SSU
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_850~31bf3856ad364e35~amd64~~20348.850.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Add ASOSFe22H2Enablement
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_KB5016060~31bf3856ad364e35~amd64~~20348.854.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Add Hotfix
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_KB5015022~31bf3856ad364e35~amd64~~20348.791.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Add DotNetRollup
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4536.3
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Add LCU
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20348.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~20348.859.1.11
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Current Edition : ServerAzureStackHCICor (Retail)
    ============================================================
    
    ------------------------------------------------------------
    Reset ServerAzureStackHCICor base
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.20349.859
    
    [=====                      10.0%                          ]
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Save and Unmount ServerAzureStackHCICor image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image File : Z:\20348.1_SDCCor_to_AzureStackHCICor_amd64\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Optimize ServerAzureStackHCICor image
    ------------------------------------------------------------
    
    "install.wim" original size: 3645606 KiB
    Using LZX compression with 12 threads
    Archiving file data: 4788 MiB of 4788 MiB (100%) done
    "install.wim" optimized size: 2587613 KiB
    Space saved: 1057992 KiB
    
    ------------------------------------------------------------
    Set wim information
    ------------------------------------------------------------
    
    Setting the NAME property of image 1 to "Windows Server 2022 AzureStackHCICor".
    Setting the DESCRIPTION property of image 1 to "Windows Server 2022 AzureStackHCICor".
    Setting the FLAGS property of image 1 to "ServerAzureStackHCICor".
    Setting the DISPLAYNAME property of image 1 to "Azure Stack HCI".
    Setting the DISPLAYDESCRIPTION property of image 1 to "This option will install Azure Stack HCI.".
    
    ------------------------------------------------------------
    Delete temporary folder
    ------------------------------------------------------------
    
    ======================================================================================================================
    20349.859 Azure Stack HCI amd64 zh-TW has been successfully created on 2022/7/30
    ======================================================================================================================
    
    Conversion took 0:12:26.47 (746.47s total)
    
    Press any key to continue . . .
    
    
     
  13. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    Try baseless LCU and stage the updated edition directly.
     
  14. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    #8935 gailium119, Jul 31, 2022
    Last edited: Jul 31, 2022
    upload_2022-7-31_9-7-21.png
    Seems that Microsoft finally decided to add something to unattend
    25169 servicingstack cannot be loaded in \Windows\Servicing, resulting in owouwu's way not working.
    Ugly solution:
    Rename everything in servicingstack to something else after dism reached 69%.
    Sily solution but always works:
    Code:
    for /d %%j in (.\mount\Windows\WinSxS\amd64_microsoft-windows-servicingstack*) do ren %%j amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.0.0_none_40be60ef5bcc023b
    for /d %%j in (.\mount\Windows\Servicing\Version\*) do ren %%j 10.0.0.0
    dism /logpath:logs\unattend.log /image:mount /apply-unattend:%%i\install.xml || pause
    rmdir /s /q .\mount\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.0.0_none_40be60ef5bcc023b
    rmdir /s /q .\mount\Windows\Servicing\Version\10.0.0.0
     
  15. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    Tested 25169.1000 Unstaged to full installing on VM with renewed method
    upload_2022-7-31_10-58-53.png
     
  16. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,707
    14,434
    340
    #8937 xinso, Jul 31, 2022
    Last edited: Jul 31, 2022
    It won't work simply by baseless LCU.

    You have to think in respect of the final image, not the baseless LCU.
     
  17. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    baseless lcu and uup .1 esds of course.
     
  18. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,707
    14,434
    340
    #8939 xinso, Jul 31, 2022
    Last edited: Jul 31, 2022
    Do the right thing by the fact, not by imagination.

    [Fact about baseless LCU]
    It has updated files, but not including initial build of the target edition's neutral and language files.

    One more thing:
    It won't be accepted by coming LCUs.

    Reconstruction is one thing; Update is another.

    Q (for you): How to reconstruct an updated image that is accepted by coming LCUs.
     
  19. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    This can be written in an automatic script that detects .1 assemblies and copy missing LCU ones.
    I only made 18362.2274, so no updates because it's the final version.
    Fact About staging updated files
    The 'f', 'n', 'r' folders will not be staged into winsxs. So no update without heavy modding.