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

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

  1. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    334
    670
    10
    #1721 sainfo, Nov 12, 2024
    Last edited: Nov 13, 2024
    Hello, I tried it, great script, I really liked it! I added KB5046617 instead of KB5044384 to it and got build 26100.2314. Once again, thank you very much!
    :cheers:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. czsss

    czsss MDL Novice

    Aug 14, 2015
    8
    0
    0
    How does the touch keyboard not be deleted?
     
  3. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    334
    670
    10
    O-ooh, this is very good, we are waiting...

    The script already works well, but we will be very happy to improve it!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    286
    347
    10
    Hello, don't think that I'm rude, but, this script is so simple that it is enough to open it and see what this script changes in the image
     
  5. SunLion

    SunLion MDL Addicted

    May 11, 2011
    960
    2,924
    30
    #1730 SunLion, Nov 14, 2024
    Last edited: Nov 15, 2024
    Updated for 26100.2314 - 226x1.4460

    SD11v202_4.8.40

    - Updated appx files
    - Updated hfixes files
    - Changed the use of DISM, to have 22621 by default
    - Added option to Disable\Remove WMP11
    - Enabled the RemoveSystemUWPappsAlsoFromDisk=1 option
    - Adjusted for reinstallation of both updates after enabling netfx35
    - Add option for DisableBitlockerEncryption
    - Other small adjustments

    Added some stuff from @sergey1302170's script.
    Thanks @Sergey!


    https://forums.mydigitallife.net/threads/slimdown10-–-turn-windows-10-22h2-or-ltsc-2021-into-classic-legacy-windows.86552/page-75#post-1851693
     
  6. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    334
    670
    10
    #1731 sainfo, Nov 15, 2024
    Last edited: Nov 15, 2024
    Hello, I need your help:
    I modified your instrument a little for myself. The .iso template was used by Enterprise LTSC RU 26100.1742, and the code for upgrading the edition to IoT LTSC 26100.2314 was added to the script:
    Code:
    ECHO.
    ECHO ============================================================
    ECHO Upgrading an image to IoT Enterprise LTSC
    ECHO ============================================================
    "%DISM11%" /English /Image:"%InstallMount%" /Set-Edition:IoTEnterpriseS
    
    ECHO.
    ECHO ============================================================
    ECHO Installing Cumulative Update...
    ECHO ============================================================
    "%DISM11%" /English /Image:"%InstallMount%" /add-package /packagepath:"Updates\Cumulative"
    
    ECHO.
    ECHO ============================================================
    ECHO Cleaning the image, resetting the WinSxS database
    ECHO ============================================================
    "%DISM11%" /English /Image:"%InstallMount%" /cleanup-image /startcomponentcleanup /resetbase
    
    
    I removed the localization from the script, since the image is already RU, added the tweaks I needed and removed the commands I didn’t need in its script.
    According to my plan, the install.wim file should be moved from the DVD folder to the shared folder of your instrument, and the DVD folder itself should be deleted. But something is not working for me and install.wim is not moved to the root of your folder and the DVD folder is not deleted. Can you help me with this question and correct the code I suggested so that this part of the script works normally?
    Code:
    ECHO.
    ECHO ============================================================
    ECHO Re-Building Source Install.wim Image
    ECHO ============================================================
    "Bin\wimlib-imagex.exe" export "%Wim%" all "%WimTemp%" --compress=LZX
    move /y "%WimTemp%" "%Wim%"
    "%DISM%" /English /Cleanup-Mountpoints
    
    ECHO.
    ECHO ===========================================================
    ECHO Exporting the image to install.wim
    ECHO ===========================================================
    "%DISM11%" /English /Image:"%InstallMount%"  /export-image /sourceimagefile:"%WIM%" /sourceindex:1 /destinationimagefile:"%install.wim"
    
    ECHO.
    ECHO ============================================================
    ECHO Remove mount and cleanup folders
    ECHO ============================================================
    "%DISM11%" /english /rd /q /s "DVD" 1>nul 2>nul
    
    ECHO.
    ECHO.
    ECHO All Finished.
    ECHO.
    ECHO Press any key to end the script.
    ECHO.
    
    Pause >nul
    EXIT
    
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    286
    347
    10
    #1732 sergey130270, Nov 15, 2024
    Last edited: Nov 15, 2024
    Unpacking of files is performed from the ISO folder and the LTSC subfolder to the DVD folder, just put your ISO distribution along the ISO\LTSC path. After the end of processing, the DVD folder will contain files already processed by the script.

    Just correctly place your untouched ISO and get in the DVD folder already processed your install.wim, as well as boot.wim. No movements of install.vim are provided in this scenario.
     
  8. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    334
    670
    10
    #1733 sainfo, Nov 15, 2024
    Last edited: Nov 15, 2024
    Yes, everything is clear, I do everything exactly this way and get everything as intended in your script. But I'm only interested in the install.wim file. This is why I want to move the install.wim (после полного выполнения вашего скрипта) file after running your script from the DVD folder to the root of your folder, and delete the DVD folder itself, since it is no longer needed. I tried to do this, but it didn't work.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    286
    347
    10
    #1734 sergey130270, Nov 15, 2024
    Last edited: Nov 15, 2024
    You can transfer only the install.wim to your distribution, but only without the boot.wim and other files, since the boot.wim and all other files in the image are very much interconnected with each other by updating DU_Sources.
    How else can I help you?
     
  10. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    334
    670
    10
    #1735 sainfo, Nov 15, 2024
    Last edited: Nov 15, 2024
    Well, we don't understand each other with these translations, so I'll write in Russian: I repeat, your script works just fine. I use not English but Russian LTSC image as a template, so in your script I upgrade it to IoT LTSC and update it to 26100.2314. Everything else, except for the tweaks you applied and my own tweaks that I need, is left in the script. So I don't need ANYTHING from the DVD folder except the install.wim file. And that is why I would like to move the finished, processed install.wim file from the DVD folder to the root of the folder with your tools, and delete the DVD folder itself, because it is not needed. For my build I need only the resulting install.wim file and nothing else!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    286
    347
    10
    I can help by contacting you via remote access (any-desk) and change the script to suit your needs.
     
  12. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    334
    670
    10
    I've already changed the script and everything works great. All I need is just these two lines of code to move install.wim and delete the DVD folder and nothing else.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    286
    347
    10
    Which folder do you want to move install.wim to?
     
  14. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    334
    670
    10
    #1739 sainfo, Nov 15, 2024
    Last edited: Nov 15, 2024
    Well, which one, in your folder where everything else is located, in the Integrator folder.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    286
    347
    10
    #1740 sergey130270, Nov 15, 2024
    Last edited: Nov 15, 2024
    copy /y "DVD\sources\install.wim" "%~dp0"
    rd /q /s "DVD" >nul 2>&1
    Is there anything else I can help you with?