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. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    3,419
    14,190
    120
    @sainfo This script allows you to reduce the number of files required to run win 11 setup.exe inside the Sources dir for a clean or unattended setup, reduces the bloat.
    Normally the bootwim will look for all files & the installation would fail! Only works on clean installs not an upgrade.
    This script allows you to delete every file & folder except what is pictured in this screen shot below.

    @SunLion you might consider incorporating this into the Win 11 script as a unattended option perhaps?

    Code:
    DISM /Mount-Wim /wimfile:D:\sources\boot.wim /index:2 /mountdir:C:\Mount
    reg load HKLM\TEMP C:\Mount\Windows\System32\config\SYSTEM
    reg add HKLM\TEMP\Setup /v "CmdLine" /t REG_SZ /d "X:\\sources\\setup.exe" /f
    reg unload HKLM\TEMP
    DISM /Unmount-Wim /mountdir:C:\Mount /commit"
    Sources.jpg
     
  2. sainfo

    sainfo MDL Member

    Dec 6, 2021
    211
    352
    10
    I still didn’t understand what the point of all this was. In fact, to successfully install the OS, it is enough to have only three files in the Sources folder - boot.wim, install.wim and setup.exe. That’s why I always leave these three files in this folder, and simply delete the rest manually, and I’ve never had any problems installing any OS. I usually place the scripts applied to the image along the path: Windows\Setup\ ...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. SunLion

    SunLion MDL Addicted

    May 11, 2011
    784
    2,188
    30
    I can make an adjustment for testing...
     
  4. SunLion

    SunLion MDL Addicted

    May 11, 2011
    784
    2,188
    30
    Do you use this on Windows 11 regularly?

    Does it work without errors?
     
  5. sainfo

    sainfo MDL Member

    Dec 6, 2021
    211
    352
    10
    What can I tell you about it. Yes, I have been using Windows 11 since the first day it appeared and only the IoT LTSC version because I like it better than other releases. I don't use other people's builds, I build them for myself and my closest friends. I have never had any problems with Windows 11, and if there were any problems, they were all successfully eliminated at the stage of image formation. Here can be of course everyone has their own opinions on the matter, but personally I believe that 24H2 is the best, to date, of all releases of Windows. IMHO
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    3,419
    14,190
    120
    Not with the most recent win 11 builds, yes early builds no problem!
    eg. 24H2 is it's running the new Setup client which calls setupprep.exe & setuphost.exe.
     
  7. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    3,419
    14,190
    120
    @SunLion Thank you buddy!
     
  8. sainfo

    sainfo MDL Member

    Dec 6, 2021
    211
    352
    10
    #2048 sainfo, Jan 25, 2025
    Last edited: Jan 26, 2025
    I don’t even want to argue with you about this, because personally I have no problems with 24H2. The system works stably and without any problems.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. SunLion

    SunLion MDL Addicted

    May 11, 2011
    784
    2,188
    30
    #2049 SunLion, Jan 25, 2025
    Last edited: Jan 26, 2025
    Well, I added the code and made some adjustments to the script, for testing...

    I did not test the image installation.

    Download it and see if that's really it.

    Attachment removed.

    A new corrected one has been uploaded.
     
  10. DrakeBond

    DrakeBond MDL Novice

    Oct 28, 2020
    19
    21
    0
    The script worked without errors, the image does not install, I built the image 2 times and each time the image does not install.
     
  11. fs2com

    fs2com MDL Member

    Oct 14, 2009
    141
    84
    10
    Well in my install is working though, it show 4 choice of mode of screen capture and then after the capture, the image is stored in the clipboard, then you can paste to any imaging software that you wanted
     
  12. bendeyar

    bendeyar MDL Novice

    Mar 14, 2019
    36
    32
    0
  13. SunLion

    SunLion MDL Addicted

    May 11, 2011
    784
    2,188
    30
    Could you post screenshots and the full log file please.
     
  14. DrakeBond

    DrakeBond MDL Novice

    Oct 28, 2020
    19
    21
    0
    #2058 DrakeBond, Jan 26, 2025
    Last edited: Jan 26, 2025

    Attached Files:

  15. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    3,419
    14,190
    120
    @SunLion Works perfectly in a silent unattended installation, Thanks again.
     
  16. SunLion

    SunLion MDL Addicted

    May 11, 2011
    784
    2,188
    30

    Attached Files: