[ARCHIVED] Windows Editions Reconstruction Project

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

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

    Wuyouzi067 MDL Novice

    Oct 4, 2023
    31
    76
    0
  2. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,702
    14,431
    340
  3. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,702
    14,431
    340
  4. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,702
    14,431
    340
    #14024 xinso, Jan 5, 2024
    Last edited: Jan 5, 2024
    Test Reconstruct 22621.2915 Windows 11 IoT Enterprise LTSC (with Edge without Store) amd64 en-US (without two System WOW64 packages)
    Code:
    ------------------------------------------------------------
    Add Cumulative Update to IoTEnterpriseS image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~22621.2915.1.0
    [==========================100.0%==========================]
    An error occurred - Package_for_RollupFix Error: 0x80092004
    
    Error: 0x80092004
    
    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
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
     
  5. zwl29107

    zwl29107 MDL Addicted

    Jul 10, 2022
    601
    700
    30
    Have you made any modifications to certain manifests in the update?
    This requires regenerating the cat and signing it.
     
  6. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,702
    14,431
    340
    #14026 xinso, Jan 5, 2024
    Last edited: Jan 5, 2024
    No. I don't know repacking.

    It's for "Reconstruction can not make it" if without tweak.
     
  7. zwl29107

    zwl29107 MDL Addicted

    Jul 10, 2022
    601
    700
    30
    Check which file the error occurred in the log.
     
  8. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,702
    14,431
    340
  9. ohault

    ohault MDL Member

    Dec 27, 2022
    192
    53
    10
    Very good question.
     
  10. JeepWillys58

    JeepWillys58 MDL Addicted

    Nov 6, 2010
    603
    379
    30
    Hi dear friend @acer-5100

    First of all, Happy New Year, may you, all of yours and all of our MDL friends be safe and healthy always.

    Backing to your post, it can be used on the reconstruction script, and could you tell me where?

    Thanks in advanced
    Best Regards
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. JeepWillys58

    JeepWillys58 MDL Addicted

    Nov 6, 2010
    603
    379
    30
    Hi dear friend @Wuyouzi067

    Can it be used on others WIM editions and versions too?

    Thanks in advanced.
    Best Regards
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Wuyouzi067

    Wuyouzi067 MDL Novice

    Oct 4, 2023
    31
    76
    0
    #14032 Wuyouzi067, Jan 6, 2024
    Last edited: Jan 6, 2024
    I test in 19044.3208 and 25398.469 amd64 zh-CN IoTEnterpriseS, as for other editions and versions you can try to test.

    PS.
    Show call RemoveOnIoTEnterpriseS.ps1 with full parameters:
    Code:
    Powershell -NoProfile -ExecutionPolicy Unrestricted -File .\RemoveOnIoTEnterpriseS.ps1 -offlineImageFolderPath .\%MT%\ -suppressPrompts -RemoveUnit All -os_variant IoTEnterpriseS -DismLogFile DismLog_RemoveOnIoTEnterpriseS.txt
    Above PS. for #13976 https://forums.mydigitallife.net/th...struction-project.80939/page-699#post-1820140
    RemoveOnIoTEnterpriseS.ps1 (20220722-20240103) is correct.
     
  13. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,702
    14,431
    340
    #14033 xinso, Jan 6, 2024
    Last edited: Jan 6, 2024
    Code:
    ------------------------------------------------------------
    Remove Selectable packages
    ------------------------------------------------------------
    
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:209 字元:17
    +             Sign up
    +                 ~
    不允許使用 & 符號字元。& 運算子已保留供未來使用; 請使用雙引號將 & 符號括住 ("&") 以將它當作字串的一部分來傳遞。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:214 字元:209
    + ... k Button--medium Button d-lg-none color-fg-inherit p-1">    <span cla ...
    +                                                                 ~
    '<' 運算子保留供未來使用。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:237 字元:45
    +             <ul class="list-style-none f5" >
    +                                             ~
    重新導向運算子後面遺失檔案規格。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:435 字元:13
    +       CI/CD &amp; Automation
    +             ~
    不允許使用 & 符號字元。& 運算子已保留供未來使用; 請使用雙引號將 & 符號括住 ("&") 以將它當作字串的一部分來傳遞。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:494 字元:45
    +             <ul class="list-style-none f5" >
    +                                             ~
    重新導向運算子後面遺失檔案規格。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:509 字元:45
    +             <ul class="list-style-none f5" >
    +                                             ~
    重新導向運算子後面遺失檔案規格。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:1392 字元:96
    + ... ="" data-disable-with="" data-dropdown-tracking="{&quot;type&quot;:&q ...
    +                                                                 ~
    不允許使用 & 符號字元。& 運算子已保留供未來使用; 請使用雙引號將 & 符號括住 ("&") 以將它當作字串的一部分來傳遞。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:1392 字元:103
    + ... a-disable-with="" data-dropdown-tracking="{&quot;type&quot;:&quot;blo ...
    +                                                                 ~
    不允許使用 & 符號字元。& 運算子已保留供未來使用; 請使用雙引號將 & 符號括住 ("&") 以將它當作字串的一部分來傳遞。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:1392 字元:146
    + ... &quot;type&quot;:&quot;blob_edit_dropdown.more_options_click&quot;,&q ...
    +                                                                 ~
    不允許使用 & 符號字元。& 運算子已保留供未來使用; 請使用雙引號將 & 符號括住 ("&") 以將它當作字串的一部分來傳遞。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:1392 字元:153
    + ... type&quot;:&quot;blob_edit_dropdown.more_options_click&quot;,&quot;co ...
    +                                                                  ~
    ',' 一元運算子後面遺失運算式。
    未報告所有剖析錯誤。請更正報告的錯誤然後再試一次。
        + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
        + FullyQualifiedErrorId : AmpersandNotAllowed
    
    Is it command variable Path?
    I forgot where it is to set...
     
  14. Wuyouzi067

    Wuyouzi067 MDL Novice

    Oct 4, 2023
    31
    76
    0
    Test in your 19041.1_Professional_to_IoTEnterpriseS_CMGE_Style.7z log:
    [-RemoveUnit All]
    Code:
    ------------------------------------------------------------
    Expand Cumulative update
    ------------------------------------------------------------
    
    ========================================================================================================
    Reconstruct 19044.3208 Windows 10 IoT Enterprise LTSC (in CMGE style) amd64 zh-CN
    ========================================================================================================
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Mount Professional image
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Convert Professional to IoTEnterpriseS
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.1
    
    Removing package Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.19041.1
    Removing package Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.19041.1
    [==========================100.0%==========================]
    
    The operation completed successfully.
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Add zh-CN Client language
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~zh-CN~10.0.19041.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Remove Quick Assist
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.1
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Remove Store
    ------------------------------------------------------------
    
    Microsoft.549981C3F5F10_1.1911.21713.0_neutral_~_8wekyb3d8bbwe
    Microsoft.BingWeather_4.25.20211.0_neutral_~_8wekyb3d8bbwe
    Microsoft.DesktopAppInstaller_2019.125.2243.0_neutral_~_8wekyb3d8bbwe
    Microsoft.GetHelp_10.1706.13331.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Getstarted_8.2.22942.0_neutral_~_8wekyb3d8bbwe
    Microsoft.HEIFImageExtension_1.0.22742.0_x64__8wekyb3d8bbwe
    Microsoft.Microsoft3DViewer_6.1908.2042.0_neutral_~_8wekyb3d8bbwe
    Microsoft.MicrosoftOfficeHub_18.1903.1152.0_neutral_~_8wekyb3d8bbwe
    Microsoft.MicrosoftSolitaireCollection_4.4.8204.0_neutral_~_8wekyb3d8bbwe
    Microsoft.MicrosoftStickyNotes_3.6.73.0_neutral_~_8wekyb3d8bbwe
    Microsoft.MixedReality.Portal_2000.19081.1301.0_neutral_~_8wekyb3d8bbwe
    Microsoft.MSPaint_2019.729.2301.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Office.OneNote_16001.12026.20112.0_neutral_~_8wekyb3d8bbwe
    Microsoft.People_2019.305.632.0_neutral_~_8wekyb3d8bbwe
    Microsoft.ScreenSketch_2019.904.1644.0_neutral_~_8wekyb3d8bbwe
    Microsoft.SkypeApp_14.53.77.0_neutral_~_kzf8qxf38zg5c
    Microsoft.StorePurchaseApp_11811.1001.1813.0_neutral_~_8wekyb3d8bbwe
    Microsoft.VCLibs.140.00_14.0.27323.0_x64__8wekyb3d8bbwe
    Microsoft.VP9VideoExtensions_1.0.22681.0_x64__8wekyb3d8bbwe
    Microsoft.Wallet_2.4.18324.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WebMediaExtensions_1.0.20875.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WebpImageExtension_1.0.22753.0_x64__8wekyb3d8bbwe
    Microsoft.Windows.Photos_2019.19071.12548.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsAlarms_2019.807.41.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsCalculator_2020.1906.55.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsCamera_2018.826.98.0_neutral_~_8wekyb3d8bbwe
    microsoft.windowscommunicationsapps_16005.11629.20316.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsFeedbackHub_2019.1111.2029.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsMaps_2019.716.2316.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsSoundRecorder_2019.716.2313.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsStore_11910.1002.513.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Xbox.TCUI_1.23.28002.0_neutral_~_8wekyb3d8bbwe
    Microsoft.XboxApp_48.49.31001.0_neutral_~_8wekyb3d8bbwe
    Microsoft.XboxGameOverlay_1.46.11001.0_neutral_~_8wekyb3d8bbwe
    Microsoft.XboxGamingOverlay_2.34.28001.0_neutral_~_8wekyb3d8bbwe
    Microsoft.XboxIdentityProvider_12.50.6001.0_neutral_~_8wekyb3d8bbwe
    Microsoft.XboxSpeechToTextOverlay_1.17.29001.0_neutral_~_8wekyb3d8bbwe
    Microsoft.YourPhone_2019.430.2026.0_neutral_~_8wekyb3d8bbwe
    Microsoft.ZuneMusic_2019.19071.19011.0_neutral_~_8wekyb3d8bbwe
    Microsoft.ZuneVideo_2019.19071.19011.0_neutral_~_8wekyb3d8bbwe
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Mount Winre image
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Add Servicing Stack update to Winre image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_3205~31bf3856ad364e35~amd64~~19041.3205.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Add SystemReset update to Winre image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_KB5027389~31bf3856ad364e35~amd64~~19041.3083.1.4
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Add Cumulative update to Winre image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.3083
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.3208.1.10
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Reset Winre base
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.3208
    
    [===========================99.4%========================= ]
    The operation completed successfully.
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Save and Unmount Winre image
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image File : C:\tmp6\xinso\19041.1_Professional_to_IoTEnterpriseS_CMGE_Style\temp\mount\Windows\System32\Recovery\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Optimize winre.wim
    ------------------------------------------------------------
    
    "temp\mount\Windows\System32\Recovery\winre.wim" original size: 839816 KiB
    Using LZX compression with 16 threads
    Archiving file data: 1278 MiB of 1278 MiB (100%) done
    "temp\mount\Windows\System32\Recovery\winre.wim" optimized size: 555844 KiB
    Space saved: 283971 KiB
    
    ------------------------------------------------------------
    Add Servicing Stack update to IoTEnterpriseS image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_3205~31bf3856ad364e35~amd64~~19041.3205.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Add 21H2Enablement to IoTEnterpriseS image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_KB5003791~31bf3856ad364e35~amd64~~19041.1237.1.3
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Add DotNetRollup 4.8 to IoTEnterpriseS image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package C:\tmp6\xinso\19041.1_Professional_to_IoTEnterpriseS_CMGE_Style\files\update\ndp48\windows10.0-kb5028853-x64-ndp48_6d85da3883386e6e72037cca91eb745df82bbd86.msu
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Add Cumulative update to IoTEnterpriseS image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.3208.1.10
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Set IoTEnterpriseS key
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19044.3208         
    
    Starting to install product key...         
    Finished installing product key.         
    
    The operation completed successfully.         
    
    ============================================================
    Current Edition : IoTEnterpriseS (OEM:NONSLP)
    ============================================================
    
    ------------------------------------------------------------
    Remove all Removable Packages at once:
    ------------------------------------------------------------
    The following packages will be removed:
    Microsoft-Windows-ScreenSavers-3D
    Microsoft-Windows-ShellOptions
    Microsoft-OneCore-Fonts-DesktopFonts-NonLeanSupplement
    Microsoft-Windows-BioEnrollment-UX
    Microsoft-Windows-Printer-Drivers
    Microsoft-Windows-RecoveryDrive
    Microsoft-Media-Foundation
    Microsoft-Windows-Portable-Devices
    Microsoft-Windows-WebcamExperience
    Microsoft-Windows-WinSATMediaFiles
    Microsoft-Windows-Media-Format
    Microsoft-Windows-Media-Streaming
    Microsoft-Windows-MediaPlayback-OC
    LanguageFeatures-WordBreaking-Common-legacy
    Microsoft-Windows-BioEnrollment-UX
    Microsoft-Windows-Printer-Drivers
    Microsoft-Windows-Shell-Wallpaper-Common
    Microsoft-OneCore-Fonts-DesktopFonts-NonLeanSupplement
    Microsoft-Windows-SensorDataService
    Microsoft-Windows-RecoveryDrive
    Microsoft-Windows-win32calc
    Microsoft-Windows-Printing-PremiumTools
    Microsoft-Windows-BootEnvironment-Dvd
    Microsoft-Windows-ScreenSavers-3D
    Microsoft-Windows-ShellOptions
    Microsoft-Windows-AppManagement-UEV
    
    
    WARNING!!!
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.
    Begins packages removal...
    
     26 - Packages removal finished.
    
    ------------------------------------------------------------
    Reset IoTEnterpriseS base
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19044.3208
    
    [=====          10.0%          ]
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Save and Unmount IoTEnterpriseS image
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image File : C:\tmp6\xinso\19041.1_Professional_to_IoTEnterpriseS_CMGE_Style\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Optimize install.wim
    ------------------------------------------------------------
    
    "install.wim" original size: 6318690 KiB
    Using LZX compression with 16 threads
    Archiving file data: 7490 MiB of 7490 MiB (100%) done
    "install.wim" optimized size: 3855017 KiB
    Space saved: 2463673 KiB
    
    ------------------------------------------------------------
    Set WIM information
    ------------------------------------------------------------
    
    Setting the NAME property of image 1 to "Windows 10 IoT Enterprise LTSC 2021".
    Setting the DESCRIPTION property of image 1 to "Windows 10 IoT Enterprise LTSC 2021".
    Setting the FLAGS property of image 1 to "IoTEnterpriseS".
    Setting the DISPLAYNAME property of image 1 to "Windows 10 IoT Enterprise LTSC (in CMGE style)".
    Setting the DISPLAYDESCRIPTION property of image 1 to "19044.3208 Windows 10 IoT Enterprise LTSC (in CMGE style)".
    
    ------------------------------------------------------------
    Delete temporary folder
    ------------------------------------------------------------
    
    ========================================================================================================
    19044.3208 Windows 10 IoT Enterprise LTSC (in CMGE style) amd64 zh-CN has been successfully reconstructed on 2024/1/5
    ========================================================================================================
    
    Mission took 0:20:22.09 (1222.09s total)
    
    [-RemoveUnit %%i]
    Code:
    ------------------------------------------------------------         
    Set IoTEnterpriseS key
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844         
    
    Image Version: 10.0.19044.3208         
    
    Starting to install product key...         
    Finished installing product key.         
    
    The operation completed successfully.
    
    ============================================================
    Current Edition : IoTEnterpriseS (OEM:NONSLP)
    ============================================================
    
    ------------------------------------------------------------
    Remove all Removable Packages at once:
    ------------------------------------------------------------
    
    AppManagement_UEV         
    The following packages will be removed:         
    Microsoft-Windows-AppManagement-UEV         
    
    
    WARNING!!!         
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.         
    Begins packages removal...
    
     1 - Packages removal finished.
    
    BioEnrollment_UX
    The following packages will be removed:
    Microsoft-Windows-BioEnrollment-UX
    
    
    WARNING!!!
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.         
    Begins packages removal...         
     
     1 - Packages removal finished.         
    
    BootEnvironment_Dvd         
    The following packages will be removed:         
    Microsoft-Windows-BootEnvironment-Dvd
    
    
    WARNING!!!
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.         
    Begins packages removal...         
    
     1 - Packages removal finished.         
     
    Common_RegulatedPackages         
    The following packages will be removed:         
    Microsoft-Media-Foundation
    Microsoft-Windows-Media-Format
    Microsoft-Windows-Media-Streaming
    Microsoft-Windows-MediaPlayback-OC
    Microsoft-Windows-Portable-Devices         
    Microsoft-Windows-WebcamExperience         
    Microsoft-Windows-WinSATMediaFiles         
    
    
    WARNING!!!         
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.         
    Begins packages removal...
    
     7 - Packages removal finished.
    
    Desktop_SharedPackages         
    The following packages will be removed:         
    LanguageFeatures-WordBreaking-Common-legacy         
    Microsoft-Windows-BioEnrollment-UX         
    Microsoft-Windows-Printer-Drivers         
    Microsoft-Windows-RecoveryDrive         
    Microsoft-Windows-ScreenSavers-3D         
    Microsoft-Windows-ShellOptions
    Microsoft-OneCore-Fonts-DesktopFonts-NonLeanSupplement
    
    
    WARNING!!!         
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.         
    Begins packages removal...         
    
     7 - Packages removal finished.         
    
    Fonts_DesktopFonts_NonLeanSupplement         
    The following packages will be removed:
    Microsoft-OneCore-Fonts-DesktopFonts-NonLeanSupplement
    
    
    WARNING!!!         
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.         
    Begins packages removal...         
    
     1 - Packages removal finished.         
    
    LanguageFeatures_WordBreaking_Common_legacy         
    The following packages will be removed:
    LanguageFeatures-WordBreaking-Common-legacy
    
    
    WARNING!!!         
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.         
    Begins packages removal...         
    
     1 - Packages removal finished.         
    
    Printer_Drivers         
    The following packages will be removed:
    Microsoft-Windows-Printer-Drivers
    
    
    WARNING!!!         
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.         
    Begins packages removal...         
    
     1 - Packages removal finished.         
    
    Printing_PremiumTools         
    The following packages will be removed:
    Microsoft-Windows-Printing-PremiumTools
    
    
    WARNING!!!         
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.         
    Begins packages removal...         
    
     1 - Packages removal finished.         
    
    RecoveryDrive         
    The following packages will be removed:
    Microsoft-Windows-RecoveryDrive
    
    
    WARNING!!!         
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.         
    Begins packages removal...         
    
     1 - Packages removal finished.         
    
    ScreenSavers         
    The following packages will be removed:
    Microsoft-Windows-ScreenSavers-3D
    
    
    WARNING!!!         
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.         
    Begins packages removal...         
    
     1 - Packages removal finished.         
    
    SensorDataService         
    The following packages will be removed:
    Microsoft-Windows-SensorDataService
    
    
    WARNING!!!
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.
    Begins packages removal...
    
     1 - Packages removal finished.
    
    Shell_Wallpaper
    The following packages will be removed:
    Microsoft-Windows-Shell-Wallpaper-Common
    
    
    WARNING!!!
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.
    Begins packages removal...
    
     1 - Packages removal finished.
    
    ShellOptions
    The following packages will be removed:
    Microsoft-Windows-ShellOptions
    
    
    WARNING!!!
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.
    Begins packages removal...
    
     1 - Packages removal finished.
    
    win32calc
    The following packages will be removed:
    Microsoft-Windows-win32calc
    
    
    WARNING!!!
    Removing these packages is irreversible.  There is no way to re-install them unless you re-image your Windows.
    Begins packages removal...
    
     1 - Packages removal finished.
    
    ------------------------------------------------------------
    Reset IoTEnterpriseS base
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19044.3208
    
    [=====          10.0%          ]
    [==========================100.0%==========================]
    The operation completed successfully.
     
  15. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,702
    14,431
    340
    #14035 xinso, Jan 6, 2024
    Last edited: Jan 6, 2024
    I use your new one, to no avail although the System Variables are fine for these:
    Code:
    powershell -Command "(gc temp\sxs\%SOURCE%.xml) -replace '#PARENT#', '%PARENT%' | sc temp\sxs\%SOURCE%.xml"
    powershell -Command "(gc temp\sxs\%SOURCE%.xml) -replace '#LVER#', '%LVER%' | sc temp\sxs\%SOURCE%.xml"
    powershell -Command "(gc temp\sxs\%SOURCE%.xml) -replace '#ARCH#', '%ARCH%' | sc temp\sxs\%SOURCE%.xml"
    
    But not this:
    Code:
    echo.
    echo ------------------------------------------------------------
    echo Remove Selectable packages
    echo ------------------------------------------------------------
    echo.
    Powershell -NoProfile -ExecutionPolicy Unrestricted -File .\RemoveOnIoTEnterpriseS.ps1 -offlineImageFolderPath .\%MT%\ -suppressPrompts -RemoveUnit All -os_variant IoTEnterpriseS -DismLogFile DismLog_RemoveOnIoTEnterpriseS.txt
    pause
    
    Or the RemoveOnIoTEnterpriseS.ps1 I downloaded is bad itself?

    The old one: 240 KB
    The new downloaded now: 176 KB
    Code:
    ------------------------------------------------------------
    Remove Selectable packages
    ------------------------------------------------------------
    
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:40 字元:60
    + ... script type="application/json" id="client-env">{"locale":"en","featur ...
    +                                                             ~~~~~
    運算式或陳述式中有未預期的 ':"en"' 語彙基元。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:40 字元:65
    + ... cript type="application/json" id="client-env">{"locale":"en","feature ...
    +                                                                 ~
    參數清單中遺失引數。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:40 字元:333
    + ... _network_conn_type","no_character_key_shortcuts_in_inputs"]}</script>
    +                                                                 ~
    '<' 運算子保留供未來使用。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:227 字元:84
    + ... tion/json" data-target="react-partial.embeddedData">{"props":{}}</scr ...
    +                                                                 ~
    運算式或陳述式中有未預期的 ':' 語彙基元。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:227 字元:88
    + ... /json" data-target="react-partial.embeddedData">{"props":{}}</script>
    +                                                                 ~
    '<' 運算子保留供未來使用。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:264 字元:205
    + ... ink Button--medium Button d-lg-none color-fg-inherit p-1">  <span cla ...
    +                                                                 ~
    '<' 運算子保留供未來使用。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:287 字元:45
    +             <ul class="list-style-none f5" >
    +                                             ~
    重新導向運算子後面遺失檔案規格。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:485 字元:13
    +       CI/CD &amp; Automation
    +             ~
    不允許使用 & 符號字元。& 運算子已保留供未來使用; 請使用雙引號將 & 符號括住 ("&") 以將它當作字串的一部分來傳遞。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:562 字元:45
    +             <ul class="list-style-none f5" >
    +                                             ~
    重新導向運算子後面遺失檔案規格。
    位於 Z:\19041.1_Unstage_amd64\RemoveOnIoTEnterpriseS.ps1:577 字元:45
    +             <ul class="list-style-none f5" >
    +                                             ~
    重新導向運算子後面遺失檔案規格。
    未報告所有剖析錯誤。請更正報告的錯誤然後再試一次。
        + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
        + FullyQualifiedErrorId : UnexpectedToken
    
    請按任意鍵繼續 . . .
    
    No worries. It's my own problem. Thanks a lot.
     
  16. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,702
    14,431
    340
    #14036 xinso, Jan 6, 2024
    Last edited: Jan 6, 2024
    You remove before Resetbase.

    I remove after Resetbase. (for my own way)
    And, so I use the ps1.

    I remove before Resetbase. Useless.
    Code:
    ------------------------------------------------------------
    Add Cumulative update to IoTEnterpriseS image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1806.1.17
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Remove Selectable packages
    ------------------------------------------------------------
    
    位於 Z:\19041.1_Unstage_amd64\files\RemoveOnIoTEnterpriseS.ps1:40 字元:60
    + ... script type="application/json" id="client-env">{"locale":"en","featur ...
    +                                                             ~~~~~
    運算式或陳述式中有未預期的 ':"en"' 語彙基元。
    位於 Z:\19041.1_Unstage_amd64\files\RemoveOnIoTEnterpriseS.ps1:40 字元:65
    + ... cript type="application/json" id="client-env">{"locale":"en","feature ...
    +                                                                 ~
    參數清單中遺失引數。
    位於 Z:\19041.1_Unstage_amd64\files\RemoveOnIoTEnterpriseS.ps1:40 字元:333
    + ... _network_conn_type","no_character_key_shortcuts_in_inputs"]}</script>
    +                                                                 ~
    '<' 運算子保留供未來使用。
    位於 Z:\19041.1_Unstage_amd64\files\RemoveOnIoTEnterpriseS.ps1:227 字元:84
    + ... tion/json" data-target="react-partial.embeddedData">{"props":{}}</scr ...
    +                                                                 ~
    運算式或陳述式中有未預期的 ':' 語彙基元。
    位於 Z:\19041.1_Unstage_amd64\files\RemoveOnIoTEnterpriseS.ps1:227 字元:88
    + ... /json" data-target="react-partial.embeddedData">{"props":{}}</script>
    +                                                                 ~
    '<' 運算子保留供未來使用。
    位於 Z:\19041.1_Unstage_amd64\files\RemoveOnIoTEnterpriseS.ps1:264 字元:205
    + ... ink Button--medium Button d-lg-none color-fg-inherit p-1">  <span cla ...
    +                                                                 ~
    '<' 運算子保留供未來使用。
    位於 Z:\19041.1_Unstage_amd64\files\RemoveOnIoTEnterpriseS.ps1:287 字元:45
    +             <ul class="list-style-none f5" >
    +                                             ~
    重新導向運算子後面遺失檔案規格。
    位於 Z:\19041.1_Unstage_amd64\files\RemoveOnIoTEnterpriseS.ps1:485 字元:13
    +       CI/CD &amp; Automation
    +             ~
    不允許使用 & 符號字元。& 運算子已保留供未來使用; 請使用雙引號將 & 符號括住 ("&") 以將它當作字串的一部分來傳遞。
    位於 Z:\19041.1_Unstage_amd64\files\RemoveOnIoTEnterpriseS.ps1:562 字元:45
    +             <ul class="list-style-none f5" >
    +                                             ~
    重新導向運算子後面遺失檔案規格。
    位於 Z:\19041.1_Unstage_amd64\files\RemoveOnIoTEnterpriseS.ps1:577 字元:45
    +             <ul class="list-style-none f5" >
    +                                             ~
    重新導向運算子後面遺失檔案規格。
    未報告所有剖析錯誤。請更正報告的錯誤然後再試一次。
        + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
        + FullyQualifiedErrorId : UnexpectedToken
    
    請按任意鍵繼續 . . .
    
     
  17. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,702
    14,431
    340
  18. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,702
    14,431
    340
    #14038 xinso, Jan 6, 2024
    Last edited: Jan 6, 2024
    Reserved
     
  19. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    #14039 acer-5100, Jan 6, 2024
    Last edited: Jan 6, 2024

    Hi, happy new yer to you!

    Just to make it clear that command is usable both on client or servers, but is more effective on server where almost everything is optional.

    Keep in mind that it removes the payload of ALL not enabled features.

    So the typical usage is to use it online: enable what you need (say deduplication and hyper-v) then use the command to get back a couple of GBs

    Features can be enabled also offline, using dism /enable-features, but obviously you need to have a clear idea of what you need before touching anything.

    Assuming you still want to use the command offline just

    enable the features you need using dism /image:<offline drive letter or WIM mountpoint>\ /enable-feature:<feature-name>

    In the oneliner command replace dism /online with dism /image:<offline drive letter or WIM mountpoint>\

    If you're using a script add the above at the end of the script (obviously before any command that unmounts the VHD/WIM)

    P.S. given the oneliner removes just the payload but not the package you can still enable a removed feature but you will need the original ISO or WIM (same as what happens on untouched ISOs when you need to install .net 3.5)
     
  20. Wuyouzi067

    Wuyouzi067 MDL Novice

    Oct 4, 2023
    31
    76
    0
    I may have guessed the cause of the problem, I updated #14008 PS.
    https://forums.mydigitallife.net/th...struction-project.80939/page-701#post-1820316

    In github.com, I only found the following version RemoveOnIoTEnterpriseS.ps1, can you share your 240 KB and 176 KB version?
    202205160703 616 lines (581 loc) · 22.9 KB
    202205170650 296 lines (264 loc) · 8.17 KB
    202207220925 290 lines (258 loc) · 8.1 KB
    202212160708 290 lines (258 loc) · 7.81 KB 与 202207220925 是相同的,只是更新 README.md​

    Remove Removable Packages after, need WinSxS cleanup.