Windows Useful Commands to help maintain healthy your computer
NOTE: If you did some modifications on your system, it may reset it back to normal. This also may not work 100%.
1. Disk Cleanup - The built-in Disk Cleanup tool removes temporary files, system files, empty the Recycle Bin, and more.
Command:
Assuming your system files are in Drive C:
2. Temporary Files Cleanup - Deletes all files in the temporary folder to free up space.
3. SFC (System File Checker) - Repairs corrupted or missing system files by scanning the integrity of system files and replacing any damaged ones.
4. DISM (Deployment Imaging Service and Management Tool) - Repairs Windows image and can be used to fix issues that sfc /scannow doesn't solve.
5. Clear DNS Cache - Clears the DNS resolver cache, which may fix certain internet connectivity issues.
NOTE: If you did some modifications on your system, it may reset it back to normal. This also may not work 100%.
Always do "Run as Administrator" when running command prompt "cmd"
1. Disk Cleanup - The built-in Disk Cleanup tool removes temporary files, system files, empty the Recycle Bin, and more.
Command:
Assuming your system files are in Drive C:
Code:
cleanmgr /d C:
2. Temporary Files Cleanup - Deletes all files in the temporary folder to free up space.
Code:
del /q /f /s %TEMP%\*
3. SFC (System File Checker) - Repairs corrupted or missing system files by scanning the integrity of system files and replacing any damaged ones.
Code:
sfc /scannow
4. DISM (Deployment Imaging Service and Management Tool) - Repairs Windows image and can be used to fix issues that sfc /scannow doesn't solve.
Code:
DISM /Online /Cleanup-Image /RestoreHealth
5. Clear DNS Cache - Clears the DNS resolver cache, which may fix certain internet connectivity issues.
Code:
ipconfig /flushdns