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
#!/usr/bin/env bash -ex | |
set -euo pipefail | |
shopt -s inherit_errexit nullglob | |
YW=$(echo "\033[33m") | |
BL=$(echo "\033[36m") | |
RD=$(echo "\033[01;31m") | |
BGN=$(echo "\033[4;92m") | |
GN=$(echo "\033[1;92m") | |
DGN=$(echo "\033[32m") | |
CL=$(echo "\033[m") |
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 |