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. SunLion

    SunLion MDL Addicted

    May 11, 2011
    974
    3,025
    30
    #1821 SunLion, Nov 30, 2024
    Last edited: Dec 1, 2024
    No, I don't do anything to make things more difficult. On the contrary, I do it to make things easier for the less experienced user.

    By the way, I installed Windows 11 just to do the tests and I believe I found the best way to make the script work well on Windows 11.

    I'm attaching the script and I ask you to test it and report back the results.

    There are two options:

    The first is to run the Start.cmd file, which uses nsudo to start the main script with elevated rights (in this option, no log file is created).

    The second is to run the 24H2_Integrator5.3_Start.cmd file, which will start the main script with elevated rights and will create the log file at the end.

    In my tests, everything went well, without errors. See the attached log file.

    edit: new version released
     
  2. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    286
    347
    10
    Hi SunLion!
    I tested your script and it worked great, it looks great, what I needed to be completely happy
    Congratulations! Thank you very much, Friend))).
     
  3. SunLion

    SunLion MDL Addicted

    May 11, 2011
    974
    3,025
    30
    I thank you for your great contribution.
    Hugs!
     
  4. haber123

    haber123 MDL Member

    Nov 5, 2009
    102
    44
    10
    Thank both of you, you both hung in there and kept refining the script. I look forward to using the latest 24H2_Integrator5.3. Somehow I have a feeling its only the beginning.
     
  5. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    3,571
    14,671
    120
    #1825 Mavericks Choice, Dec 1, 2024
    Last edited: Dec 1, 2024
    In the package I downloaded has only the usual Multi.cmd, when I run this as admin it deletes the iso & bat file as it did previously. Perhaps the download was corrupted?
     
  6. ashish1989

    ashish1989 MDL Addicted

    Sep 20, 2013
    516
    118
    30
    Kindly provide first boot ram usage images
     
  7. SunLion

    SunLion MDL Addicted

    May 11, 2011
    974
    3,025
    30
    See the Performance.jpg image inside the Docs folder
     
  8. SunLion

    SunLion MDL Addicted

    May 11, 2011
    974
    3,025
    30
    The last package with only scripts is not the one you mentioned.

    I will publish a new complete one.
     
  9. 6ryvcIDtC2m

    6ryvcIDtC2m MDL Novice

    Oct 29, 2019
    9
    11
    0
    First time reading the thread and had the same thing happen to me, I gotta admit that I was really confused about it hahaha.
    I'll also be waiting for a full upload, thank you very much for the work you've been doing SunLion (and everyone who contributed). I really liked the W10 version so I can't wait to test the 11.
     
  10. SunLion

    SunLion MDL Addicted

    May 11, 2011
    974
    3,025
    30
  11. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    3,571
    14,671
    120
    #1831 Mavericks Choice, Dec 1, 2024
    Last edited: Dec 1, 2024
    @SunLion Just tested working flawlessly now, will run it through a VM for further testing Thank you for this.

    Ran in a VM & is working well!
     
  12. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    286
    347
    10
    #1832 sergey130270, Dec 2, 2024
    Last edited: Dec 3, 2024
    Hi SunLion! Now you can use dism to remove Edge.

    ECHO.
    ECHO ============================================================
    ECHO Delete Edge Browser
    ECHO ============================================================
    for /f %%x in ('dir /b "%~dp0mount\Program Files\WindowsApps\Microsoft.MicrosoftEdge.Stable*"') do (rmdir /q /s "%InstallMount%\Program Files\WindowsApps\%%x")
    for %%u in (Edge, EdgeCore, EdgeUpdate, EdgeWebView) do (
    for /f "tokens=1 delims=" %%a in ('dir /b /ad "%~dp0mount\Program Files (x86)\Microsoft" 2^>nul ^| find /i "%%u"') do (
    ECHO Removing %%a from Disk
    rd /q /s "%InstallMount%\Program Files (x86)\Microsoft\%%a"
    )
    )

    for %%u in (Microsoft-Edge-WebView) do (
    for /f "tokens=1 delims=" %%a in ('dir /b /ad "%~dp0mount\Windows\System32" 2^>nul ^| find /i "%%u"') do (
    ECHO Removing %%a from Disk
    rd /s /q "%~dp0mount\Windows\System32\%%a"
    )
    )

    ECHO.
    ECHO ============================================================
    ECHO Hide Microsoft Edge from apps features
    ECHO ============================================================
    reg add "HKLM\TK_SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Microsoft.MicrosoftEdge.ContentProcessComponent" /v "ActivationType" /t REG_DWORD /d "1" /f
    reg delete "HKLM\TK_SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /f
    reg delete "HKLM\TK_SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /f
    reg delete "HKLM\TK_SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView" /f

    ECHO.
    ECHO ============================================================
    ECHO Disabling Edge services
    ECHO ===========================================================
    for %%s in (edgeupdate, edgeupdatem) do (
    for /f "tokens=1 delims=" %%a in ('reg query "HKLM\TK_SYSTEM\ControlSet001\Services" /e /k /f "%%s" 2^>nul ^| find /i "%%s"') do (
    ECHO Disabling service %%s
    reg add "HKLM\TK_SYSTEM\ControlSet001\Services\%%s" /v "Start" /t REG_DWORD /d "4" /f
    )
    )
     
  13. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    340
    682
    10
    #1833 sainfo, Dec 2, 2024
    Last edited: Dec 2, 2024
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. SunLion

    SunLion MDL Addicted

    May 11, 2011
    974
    3,025
    30
    It would be interesting to do some testing and see how it works...

    I'll try that.
     
  15. SunLion

    SunLion MDL Addicted

    May 11, 2011
    974
    3,025
    30
    I added this command below (line 847)

    ECHO ============================================================
    ECHO Remove Edge Browser
    ECHO ============================================================
    if exist "%~dp0temp" rd /s/q "%~dp0temp" >NUL 2>&1
    mkdir "%~dp0temp" >NUL 2>&1
    "%DISM11%" /English /scratchdir:"%~dp0temp" /image:"%~dp0mount" /Remove-Edge



    And the error below occurred

    ============================================================
    Remove Edge Browser
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1

    Error: 32

    An initialization error occurred.
    For more information, review the log file.

    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

    I don't think it's worth modifying the script.

    We would need to understand the command better before doing anything.
     
  16. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    286
    347
    10
    #1836 sergey130270, Dec 2, 2024
    Last edited: Dec 3, 2024
    ECHO.
    ECHO ============================================================
    ECHO Remove-Edge
    ECHO ============================================================
    "%DISM11%" /english /image:%~dp0mount /Remove-Edge

    My test went well.


    "test.cmd" Script - Running As Trusted Installer by nSudo.

    ============================================================
    Unpacking ISO/DVD image: "ru-ru_windows_11_enterprise_ltsc_2024_x64_dvd_f9af5773.iso" to DVD directory...
    ============================================================

    7-Zip 24.07 (x64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-06-19

    Scanning the drive for archives:
    1 file, 5025744896 bytes (4793 MiB)

    Extracting archive: ISO\PRO\ru-ru_windows_11_enterprise_ltsc_2024_x64_dvd_f9af5773.iso
    --
    Path = ISO\PRO\ru-ru_windows_11_enterprise_ltsc_2024_x64_dvd_f9af5773.iso
    Type = Udf
    Physical Size = 5025744896
    Version = 1.02
    Cluster Size = 2048
    Sector Size = 2048
    Created = 2024-09-07 01:00:00.000000
    Modified = 2024-09-07 01:00:00.000000
    Comment =
    {
    Primary Volumes:
    PrimaryVolumeDescriptorNumber: 0
    VolumeSequenceNumber: 1
    VolumeId: UDF Volume
    VolumeSetId: e1cf4000MS UDFBridge
    ApplicationId:
    ImplementationId: *Microsoft CDIMAGE UDF::Windows NT
    Partitions:
    PartitionIndex: 0
    PartitionNumber: 2989
    ContentsId: +NSR02
    ImplementationId: *Microsoft CDIMAGE UDF::Windows NT
    AccessType: Read-Only
    Size: 5025122304
    Pos: 622592
    Logical Volumes:
    Id: CES_X64FREV_RU-RU_DV9
    BlockSize: 2048
    DomainId: *OSTA UDF Compliant::1.02
    ImplementationId: *Microsoft CDIMAGE UDF::Windows NT
    Partition Maps:
    PartitionMap: 0
    Type: 1
    VolumeSequenceNumber: 1
    PartitionNumber: 2989
    File Sets:
    FileSetNumber: 0
    FileSetDescNumber: 0
    LogicalVolumeId: CES_X64FREV_RU-RU_DV9
    Id: CES_X64FREV_RU-
    CopyrightId:
    AbstractId:
    DomainId: *OSTA UDF Compliant::1.02
    }

    Everything is Ok

    Folders: 102
    Files: 1057
    Size: 5019812471
    Compressed: 5025744896
    1

    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1

    Details for image : D:\Win\Integrator11_24H2\DVD\sources\install.wim

    Index : 1
    Name : Windows 11 Корпоративная LTSC
    Description : Windows 11 Корпоративная LTSC
    Size : 18 284 772 237 bytes
    WIM Bootable : No
    Architecture : x64
    Hal : <undefined>
    Version : 10.0.26100
    ServicePack Build : 1742
    ServicePack Level : 0
    Edition : EnterpriseS
    Installation : Client
    ProductType : WinNT
    ProductSuite : Terminal Server
    System Root : WINDOWS
    Directories : 24529
    Files : 100669
    Created : 06.09.2024 - 5:28:02
    Modified : 06.09.2024 - 5:48:10
    Languages :
    ru-RU (Default)

    The operation completed successfully.

    ============================================================
    Mounting installation image 1
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1

    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Remove-Edge
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1

    Image Version: 10.0.26100.1742

    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1

    Image File : D:\Win\Integrator11_24H2\DVD\sources\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [========= 16.0% ]

    Try Without SCRATCH
    This startup directive allows the user to specify the location of the Temporary directory for created files.
     
  17. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    3,571
    14,671
    120
    If I would like to retain WM player 11 would I need to include this in the apps dir?
     
  18. wuliyen

    wuliyen MDL Novice

    Oct 6, 2009
    34
    55
    0
    test well.
     
  19. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    340
    682
    10
    #1839 sainfo, Dec 3, 2024
    Last edited: Dec 3, 2024
    You can, or just remove it in this part of the code:
    Code:
    ECHO.
    ECHO.
    ECHO ============================================================
    ECHO Removing capabilities ...
    ECHO ============================================================
    
    set "RemoveCapabilities=App.StepsRecorder,App.Support.QuickAssist,Hello.Face,OneCoreUAP.OneSync,Browser.InternetExplorer"
    
    
    I also need it, so I remove it from this part of the code.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    340
    682
    10
    #1840 sainfo, Dec 3, 2024
    Last edited: Dec 3, 2024
    This code only deletes the Microsoft folder with its files (I have used this before).
    To completely remove it, you need to clear the remains of Edge in the registry. To do this, you need to adapt this code to your scenario and add it too:
    Code:
    :: === Cleaning up Edge remnants in the registry ===
    D:\WimLocal\tools\SU64.exe /w /s Powershell "LS HKLM:\WIM_SOFTWARE -Rec -ea 0|?{$_.Name -Match 'edge' -and $_.Name -NotMatch 'EdgeGesture'}|RI -Rec"
    
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...