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

    MarvelX7 MDL Member

    Jun 1, 2021
    233
    216
    10
    Although i have not had this problem in 21h2 but wait for the fork of this project soon to improve code for w11.
     
  2. sainfo

    sainfo MDL Novice

    Dec 6, 2021
    46
    45
    0
    #1102 sainfo, Jan 14, 2024
    Last edited: Jan 28, 2024
    I don't see it as a big problem either, it's just my wishes. For my purposes I used this script:
    Code:
    :: Working with install.wim image
    :: Mounting the install.wim image
    dism /Mount-Wim /WimFile:C:\Work\install.wim /index:1 /mountdir:C:\Work\mount\
    :: Loading registry partitions
    reg load HKLM\WIM_Software C:\Work\Mount\windows\system32\config\software
    reg load HKLM\WIM_SYSTEM C:\Work\Mount\Windows\System32\Config\SYSTEM
    reg load HKU\WIM_NTUSER C:\Work\Mount\Users\Default\NTUSER.DAT
    :: Applying tweaks to registry sections - Registry Tweak Tool
    C:\Work\superUser64 /w /s reg import C:\Work\Tweak\SOFTWARE.reg
    C:\Work\superUser64 /w /s reg import C:\Work\Tweak\SYSTEM.reg
    C:\Work\superUser64 /w /s reg import C:\Work\Tweak\HKEY_CURRENT_USER.reg
    :: Disabling reserved storage
    reg add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\ReserveManager” /v ShippedWithReserves /t REG_DWORD /d 0 /f
    :: Unloading registry sections
    reg unload HKLM\WIM_Software
    reg unload HKLM\WIM_SYSTEM
    reg unload HKU\WIM_NTUSER
    pause
    :: Deleting obsolete and unused versions of WinSxS catalog components
    dism /Image:C:\Work\Mount /Cleanup-Image /StartComponentCleanup
    dism /Image:C:\Work\Mount /Cleanup-Image /StartComponentCleanup /ResetBase
    dism /Image:C:\Work\Mount /Cleanup-Image /SPSuperseded
    pause
    ::Deleting protected folders in an image
    C:\Work\superUser64.exe /w cmd /c RD /s /q C:\WORK\Mount\Windows\System32\InputMethod
    C:\Work\superUser64.exe /w cmd /c RD /s /q C:\WORK\Mount\Windows\System32\migration
    C:\Work\superUser64.exe /w cmd /c RD /s /q C:\WORK\Mount\Windows\System32\migwiz
    C:\Work\superUser64.exe /w cmd /c RD /s /q C:\WORK\Mount\Windows\System32\Recovery
    C:\Work\superUser64.exe /w cmd /c RD /s /q C:\WORK\Mount\Windows\WinSxS\Backup
    :: Saving the image to install.wim
    dism /Unmount-Wim /MountDir:C:\Work\Mount /Commit
    dism /cleanup-wim
    :: Export image to new_install.wim
    DISM /Export-Image /SourceImageFile:C:\Work\install.wim /SourceIndex:1 /DestinationImageFile:C:\Work\new_install.wim /Compress:maximum
    Pause
    exit
    
    Code:
    :: Working with install.wim image
    :: Mounting an install.wim image
    dism /Mount-Wim /WimFile:C:\Work\install.wim /index:1 /mountdir:C:\Work\mount\
    :: Loading registry partitions
    reg load HKLM\WIM_Software C:\Work\Mount\windows\system32\config\software
    reg load HKLM\WIM_SYSTEM C:\Work\Mount\Windows\System32\Config\SYSTEM
    reg load HKU\WIM_NTUSER C:\Work\Mount\Users\Default\NTUSER.DAT
    :: Applying tweaks to registry sections - Registry Tweak Tool
    C:\Work\superUser64 /w /s reg import C:\Work\Tweak\SOFTWARE.reg
    C:\Work\superUser64 /w /s reg import C:\Work\Tweak\SYSTEM.reg
    C:\Work\superUser64 /w /s reg import C:\Work\Tweak\HKEY_CURRENT_USER.reg
    :: Disabling reserved storage
    reg add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\ReserveManager” /v ShippedWithReserves /t REG_DWORD /d 0 /f
    :: Unloading registry sections
    reg unload HKLM\WIM_Software
    reg unload HKLM\WIM_SYSTEM
    reg unload HKU\WIM_NTUSER
    pause
    :: Removing packages from an image without specifying the full name
    ::Networking
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-DirectoryServices /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-PeerDist-Client /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-NetworkDiagnostics-DirectAccessEntry /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-NFS-ClientSKU /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-OfflineFiles /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-RemoteAssistance-Package-Client /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-TerminalServices /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-RDC /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-RemoteFX-VM-Setup /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-SimpleTCP /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-WMPNetworkSharingService /r
    ::Mobile PC
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-MobilePC /r
    ::Printing
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-Printing /r
    ::System
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-SecureStartup /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-InternetExplorer /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-MSMQ-Client /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-OneDrive /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-Hello-Face /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c microsoft-windows-hello-face-package-Wrapper /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-Holographic /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-PowerShell-V2-Client /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-SearchEngine /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-WinOcr /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Server-Help-Package.ClientEnterprise /r
    ::Virtual PC
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Hyper-V /r
    ::Misc
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-WindowsMediaPlayer-Troubleshooters /r
    ::Windows Apps
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Clipchamp.Clipchamp_2.2.8.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.549981C3F5F10_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.BingNews_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.BingWeather_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.DesktopAppInstaller_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.GamingApp_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.GetHelp_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.Getstarted_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.HEIFImageExtension_1.0.43012.0_x64 /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.MicrosoftOfficeHub_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.MicrosoftSolitaireCollection_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.MicrosoftStickyNotes_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.NET.Native.Framework /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.NET.Native.Runtime /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.Paint_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.People_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.PowerAutomateDesktop_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.RawImageExtension_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.ScreenSketch_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.SecHealthUI_1000.22621.1.0_x64 /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.Todos_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.UI.Xaml /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.VCLibs.140.00.UWPDesktop_14.0.30704.0_x64 /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.WebMediaExtensions_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.WebpImageExtension_1.0.42351.0_x64 /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.Windows.Photos_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.WindowsAlarms_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.WindowsCalculator_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.WindowsCamera_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c microsoft.windowscommunicationsapps_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.WindowsFeedbackHub_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.WindowsMaps_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.WindowsNotepad_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.WindowsSoundRecorder_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.WindowsTerminal_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.Xbox.TCUI_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.XboxGameOverlay_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.XboxGamingOverlay_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.XboxIdentityProvider_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.XboxSpeechToTextOverlay_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.YourPhone_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.ZuneMusic_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft.ZuneVideo_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c MicrosoftCorporationII.MicrosoftFamily_2022.507.447.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c MicrosoftCorporationII.QuickAssist_2022.507.446.0_neutral /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c MicrosoftWindows.Client.WebExperience_2022.507.446.0_neutral /r
    ::Unknown
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c HyperV /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Windows-StorageService /r
    C:\Work\install_wim_tweak.exe /n /p C:\Work\Mount /c Microsoft-Hyper-V /r
    pause
    :: Deleting obsolete and unused versions of WinSxS catalog components
    dism /Image:C:\Work\Mount /Cleanup-Image /StartComponentCleanup
    dism /Image:C:\Work\Mount /Cleanup-Image /StartComponentCleanup /ResetBase
    dism /Image:C:\Work\Mount /Cleanup-Image /RestoreHealth
    dism /Image:C:\Work\Mount /Cleanup-Image /SPSuperseded
    pause
    ::Deleting protected folders in an image
    C:\Work\superUser64.exe /w cmd /c RD /s /q C:\WORK\Mount\Windows\System32\InputMethod
    C:\Work\superUser64.exe /w cmd /c RD /s /q C:\WORK\Mount\Windows\System32\migration
    C:\Work\superUser64.exe /w cmd /c RD /s /q C:\WORK\Mount\Windows\System32\migwiz
    C:\Work\superUser64.exe /w cmd /c RD /s /q C:\WORK\Mount\Windows\System32\Recovery
    C:\Work\superUser64.exe /w cmd /c RD /s /q C:\WORK\Mount\Windows\WinSxS\Backup
    :: Saving the image to install.wim
    dism /Unmount-Wim /MountDir:C:\Work\Mount /Commit
    dism /cleanup-wim
    :: Exporting the image to new_install.wim
    DISM /Export-Image /SourceImageFile:C:\Work\install.wim /SourceIndex:1 /DestinationImageFile:C:\Work\new_install.wim /Compress:maximum
    Pause
    exit
    
    It would be very interesting to somehow merge the Slimdown script with part of this script.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hoak

    hoak MDL Member

    Nov 13, 2009
    178
    258
    10
    Is there someone actually working on that, or just wishful thinking?

    :)
     
  4. hoak

    hoak MDL Member

    Nov 13, 2009
    178
    258
    10
  5. Matrix360

    Matrix360 MDL Junior Member

    Jun 22, 2015
    55
    77
    0
    #1107 Matrix360, Jan 20, 2024
    Last edited: Jan 20, 2024
    The purpose of these commands is to enable the "Store Apps", not the Store itself (which is disabled if EnableStore=0).
    And yes, you can disable the "Store Apps" again after MAS activation. Do not use the second command, but this one :
    Code:
    reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsStore" /v "DisableStoreApps" /t REG_DWORD /d 1 /f
     
  6. ExtremelyFancyUsername

    Oct 17, 2018
    212
    70
    10
    How do I re-enable SMB/network shares?
     
  7. khoighost

    khoighost MDL Novice

    May 25, 2015
    2
    1
    0
    i used
    en-us_windows_10_consumer_editions_version_22h2_updated_dec_2023_x64_dvd_3045f975.iso
    and
    en-us_windows_10_business_editions_version_22h2_updated_jan_2024_x64_dvd_5453cae4.iso

    the script always error and auto exit (don't have log screen to file)

    and don't support add more *.msu
     
  8. AwsCc10

    AwsCc10 MDL Novice

    May 30, 2020
    1
    0
    0
    How long can I expect slimdown to require while optimizing ltsc 2021? Laptop I'm doing it from is nothing special, I just want to make sure it hasn't hanged, been about 1 hour now. Anyone know what I could expect?
    It's been at 100% of installing kb5032189 and hasn't changed, is this a particularly big update, or is it stuck
     
  9. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,499
    1,510
    150
    It could be paused. Press like space bar when the Slimdown window is selected
     
  10. jimmy2027

    jimmy2027 MDL Novice

    Mar 28, 2014
    1
    0
    0
    #1114 jimmy2027, Feb 8, 2024
    Last edited: Feb 8, 2024
    I am running into a problem, all notifications are disabled on this build, my browser says notifications are blocked, I went into settings/privacy but I am not able to switch notifications to on
     
  11. Dude Guyman

    Dude Guyman MDL Senior Member

    Jun 20, 2017
    294
    299
    10
    #1115 Dude Guyman, Feb 8, 2024
    Last edited: May 2, 2024
    Check your registry for "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Your\BrowserName" and delete the offending settings, or find the same settings in the script before using it and delete or comment them out.

    Eample: what's left of mine...
    Code:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox]
    "DisablePocket"=dword:00000001
    "DisableTelemetry"=dword:00000001
    "AppAutoUpdate"=dword:00000000
    "BackgroundAppUpdate"=dword:00000000
    "DisableAppUpdate"=dword:00000001
    "DisableFirefoxStudies"=dword:00000001
    
    Edit: After re-reading, also the "Action Center" is disabled in Slimdown10. If those were the notifications you were talking about, I don't know how to fix it after the fact, but there is a section in the script about it that should be easy to find and disable. I've not tested, but I assume this would do the trick?
    Code:
    :: REM Disable Action Center
    :: Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell" /v "UseActionCenterExperience" /t REG_DWORD /d 0 /f >nul
    :: Reg add "HKLM\TK_NTUSER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "HideSCAHealth" /t REG_DWORD /d 1 /f >nul
    :: Reg add "HKLM\TK_NTUSER\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /t REG_DWORD /d 1 /f >nul
    :: Reg add "HKLM\TK_NTUSER\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "NoBalloonFeatureAdvertisements" /t REG_DWORD /d 1 /f >nul
    :: rem Reg add "HKLM\TK_SYSTEM\ControlSet001\Services\wscsvc" /v "Start" /t REG_DWORD /d "4" /f >nul
    :: rem "%~dp0tools\%HostArchitecture%\NSudo.exe" -U:T -P:E -UseCurrentConsole -Wait cmd /c "del /q /f "%~dp0mount\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\Windows.UI.ActionCenter.dll"" >nul 2>&1
    
    
     
  12. sainfo

    sainfo MDL Novice

    Dec 6, 2021
    46
    45
    0
    Friends, somewhere in this thread I saw a path in the registry that would switch to the standard Start, but now I can't find it. Can you point me to the page with this information?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. SunLion

    SunLion MDL Senior Member

    May 11, 2011
    377
    541
    10
  14. sainfo

    sainfo MDL Novice

    Dec 6, 2021
    46
    45
    0
    Thank you!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Cassiopa

    Cassiopa MDL Novice

    Jan 30, 2024
    1
    0
    0
    I installed 10_v2_02 (pro) and it works great.
    Sorry for my ignorance. After installation and if I run any of these commands:
    sfc /scannow
    DISM /Online /Cleanup-Image /ScanHealth
    DISM /Online /Cleanup-Image /RestoreHealth
    Windows will return to the original and without being SLIM??
     
  16. egalerst

    egalerst MDL Junior Member

    Sep 3, 2017
    56
    46
    0