Slimdown10 – turn Windows 10 22H2 or LTSC 2021 into classic/legacy Windows

Discussion in 'Windows 10' started by Deleted member 190847, Feb 15, 2023.

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

    sainfo MDL Addicted

    Dec 6, 2021
    663
    1,477
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. wuliyen

    wuliyen MDL Member

    Oct 6, 2009
    203
    483
    10
    I often perform image version conversion, which usually involves copying and replacing files, and then modifying the key using DISM.
     
  3. sainfo

    sainfo MDL Addicted

    Dec 6, 2021
    663
    1,477
    30
    #2403 sainfo, Jan 23, 2026
    Last edited: Jan 23, 2026
    Okay, here's my personal take on this issue. Here's (for example) a piece of code that implements this idea in my tool script:
    Code:
    -
    -
    -
    -
    -
    
    echo.
    echo ============================================================
    echo == Export WIM image: "%WIMName%" to folder directory ==
    ECHO ============================================================
    If not "%WIMName%"=="" (
    if exist "%~dp0Data\Temp" rd /s /q "%~dp0Data\Temp" >nul 2>&1
    mkdir "%~dp0Data\Temp"
    move /y "%~dp0*.wim" "%~dp0Data\Temp" >nul 2>&1
    )
    
    echo.
    echo ============================================================
    echo == Mounting image with index 1 on directory ==
    echo ============================================================
    "%DISM%" /English /Get-WimInfo /WimFile:"%~dp0Data\Temp\install.wim" /Index:1 | find /i "Name :"
    
    If exist "%~dp0Data\Temp\Mount" rd /s/q "%~dp0Data\Temp\Mount"
    mkdir "%~dp0Data\Temp\Mount"
    "%DISM%" /English /Mount-Wim /WimFile:"%~dp0Data\Temp\install.wim" /index:1 /MountDir:"%~dp0Data\Temp\Mount"
    if !errorlevel! neq 0 (
    echo [ERROR] Failed to mount install.wim
    pause
    exit /b
      )
    echo.
    echo [OK] install.wim mounted successfully.
    
    if "%Сonversion%"=="1" (
    echo.
    echo == Removing Professional Edition ==
    "%DISM%" /english /scratchdir:"%~dp0Data\Temp" /image:"%~dp0Data\Temp\Mount" /apply-unattend:files\100.xml
    for /f "tokens=4 delims= " %%x in ('dism /english /scratchdir:"%~dp0Data\Temp" /image:"%~dp0Data\Temp\Mount" /get-currentedition ^| findstr /i /C:"Current Edition :"') do (set Current=%%x)
    
    echo.
    echo == Copy the files from the image ==
    xcopy "%~dp0Data\Addons\skus\IoTEnterpriseS" "%~dp0Data\Temp\Mount\windows\system32\spp\tokens\skus\IoTEnterpriseS" /i
    
    echo.
    echo == Resetting base ==
    "%DISM%" /english /scratchdir:"%~dp0Data\Temp" /image:"%~dp0Data\Temp\Mount" /cleanup-image /startcomponentcleanup /resetbase
    
    del /q "%~dp0Data\Temp\Mount\Windows\WinSxS\Backup\." >NUL 2>&1
    del /q "%~dp0Data\Temp\Mount\Windows\WinSxS\ManifestCache\." >NUL 2>&1
    del /q "%~dp0Data\Temp\Mount\Windows\System32\Recovery\." >NUL 2>&1
    
    "%~dp0Data\Tools\%HostArchitecture%\wimlib-imagex" optimize install.wim
    "%~dp0Data\Tools\%HostArchitecture%\wimlib-imagex.exe" info install.wim 1 --image-property NAME="" --image-property DESCRIPTION="" --image-property FLAGS="" --image-property DISPLAYNAME="" --image-property DISPLAYDESCRIPTION=""
    "%~dp0Data\Tools\%HostArchitecture%\wimlib-imagex.exe" info install.wim 1 --image-property NAME="Windows 11 IoT Enterprise LTSC" --image-property DESCRIPTION="Windows 11 IoT Enterprise LTSC" --image-property FLAGS="%Current%" --image-property DISPLAYNAME="Windows 11 IoT Enterprise LTSC" --image-property DISPLAYDESCRIPTION="Windows 11 IoT Enterprise LTSC"
    )
    
    -
    -
    -
    -
    -
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. bendeyar

    bendeyar MDL Member

    Mar 14, 2019
    235
    492
    10
    Let's continue everything related to "Windows 11" in this topic.
     
  5. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,475
    2,576
    60
    @sainfo , @bendeyar , @wuliyen , @rayman95
    you are still discussing Windows11, have you not read Post #2393
    all Windows11 material has been moved to its own specific thread
    the last 7 posts should all have been placed there, dont you think?
     
  6. rayman95

    rayman95 MDL Senior Member

    Oct 3, 2018
    402
    267
    10
    I have post before the thread move..and they answer
     
  7. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream
    Staff Member

    Dec 21, 2012
    8,041
    10,268
    270
    Hi, please continue to discuss Windows 10 related Slimdown10 here: https://forums.mydigitallife.net/threads/slimdown10_v2-0-2-continued.88599/
    The Windows 11 Slimdown content is here: https://forums.mydigitallife.net/threads/slimdown11-–-turn-windows-11-or-ltsc-2024-into-classic-legacy-windows.90039/

    I will close this topic for three reasons:
    1. It is not owned by @SunLion, but started by W. Keller. The other two topics are owned by @SunLion, including the first post.
    2. We do not need two topics about this.
    3. Merging the two would be confusing.

    The topic will stay up as read-only for informational purposes. Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...