Commands to fix some problems I tend to have with Windows, mostly related to disk space.
powercfg -h off
It removes the gigantic hiberfil.sys
file.
Ctrl + Alt + Del -> Power icon -> Hold shift and click restart.
Basically, we manually remove the page file and let the system create a new one. To do so, boot up in safe mode and then:
cd c:\
dir /a:h
del /a:h pagefile.sys
chkdsk /f
Sources:
Bobby_Lee, Microsoft Community
MajorGeeks
Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore
Source:
Microsoft Learn
Dism.exe /Online /Cleanup-Image /StartComponentCleanup
Source:
Microsoft Learn