Maybe research this first, but on my old 32GB/2GB RAM non-upgradeable machine, now & again I'd run (from command-prompt with elevated privileges):
#1: Run Cleanup ManagerTo set options:
cleanmgr /D C /sageset:65535
To perform cleanup operation:
cleanmgr /D C /sagerun:65535
#2: Remove previous updates/service packsAfter updates/system running ok for a while, would analyse WinSxS folder & reduce size if possible.
To show current details
dism.exe /online /cleanup-image /AnalyzeComponentStore
If rather large, would perform "resetbase" operation.
Note:
installed service packs/updates cannot be uninstalled after this.
Future installed updates/packs can be removed, unless this is run again at a later time..
dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
(apologies if I've introduced any typo whislt copying manually from another machine)
There will probably be other suggestions. I'm not claiming to be any kind of expert, but maybe try searching online re:
dism.exe before running
Good luck!