Last active
October 3, 2022 15:22
-
-
Save p3x-robot/0c02aaa99bb37ca44fd5f223a5e2711c 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