How to Deep Clean Windows Using Command Prompt (CMD)
Is your C: drive mysteriously filling up? Even after running the standard Disk Cleanup tool, Windows often keeps gigabytes of old update files "just in case." Here is a pro-level trick to reclaim that space using a single command.
The Magic Command: DISM
Windows stores system components in a folder called WinSxS. Over time, this folder grows massive. We can clean it safely using the Deployment Image Servicing and Management (DISM) tool.
Step-by-Step Guide:
Open CMD as Administrator: Press the Windows key, type cmd, right-click on it, and select Run as Administrator.
Check the space: (Optional) Type the following to see if a cleanup is recommended:
Dism /Online /Cleanup-Image /AnalyzeComponentStore
Run the Cleanup: To start the cleaning process, type:
Dism /Online /Cleanup-Image /StartComponentCleanup
Wait for the process: Windows will now scan and remove redundant files. This might take a few minutes depending on your PC speed.
Pro Tip: Removing Service Pack Backups
If you want to go even deeper and remove all backup files from previous updates (note: you won't be able to uninstall current updates after this), use:
Dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase
Verdict: This is a safe, effective, and "clean" way to keep your OS lean without installing third-party software
Always ensure you have a backup of your important data before performing system cleanups.
إرسال تعليق