Windows cleanup commands and tools

Dism commands

in CMD or powershell as administrator use following commands (do “CheckHealth,” “ScanHealth,” first)
DISM /Online /Cleanup-Image /RestoreHealth. This command will scan and repair any issues with the Windows image.

Source : https://www.windowscentral.com/how-use-dism-command-line-utility-repair-windows-10-image

Software

Chris Titus The Ultimate Windows Utility

From an Elevated (Run as Administrator) PowerShell prompt

iwr -useb https://christitus.com/win | iex