Forked from p3x-robot/windows10-reduce-winsxs-folder-plus-delete-temporary-files.cmd
Created
October 3, 2022 15:22
-
-
Save Coldblackice/2018fd55a54cc0fc39c6bdad6bc99463 to your computer and use it in GitHub Desktop.
๐๏ธ Windows 10 - reduce WinSxS folder and delete temporary files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM you need to execute in adminstrator command prompt | |
REM based on | |
REM https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder | |
Dism.exe /online /Cleanup-Image /StartComponentCleanup | |
REM All existing service packs and updates cannot be uninstalled after this command is completed. | |
REM This will not block the uninstallation of future service packs or updates | |
Dism.exe /online /Cleanup-Image /SPSuperseded | |
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase | |
%systemroot%\system32\cleanmgr.exe /dC | |
cleanmgr /sageset:65535 /sagerun:65535 | |
%systemroot%\system32\cmd.exe /c Cleanmgr /sagerun:65535 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment