Cleanup WinSxS
DISM
The /Cleanup-Image parameter of Dism.exe provides advanced users more options to further reduce the size of the WinSxS folder
Use the /StartComponentCleanup parameter
Using the /StartComponentCleanup parameter of Dism.exe on a running version of Windows 10 gives you similar results to running the StartComponentCleanup task in Task Scheduler, except previous versions of updated components will be immediately deleted (without a 30 day grace period) and you will not have a 1-hour timeout limitation.
From an elevated command prompt, type the following:
Dism.exe /online /Cleanup-Image /StartComponentCleanup
Use the /ResetBase switch with the /StartComponentCleanup parameter
Using the /ResetBase switch with the /StartComponentCleanup parameter of DISM.exe on a running version of Windows 10 removes all superseded versions of every component in the component store.
From an elevated command prompt, type the following:
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
Source: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder