Table of Contents
This tip is about the how to Clean a Windows PC using Command Prompt. So read this free guide, How to Clean a Windows PC using Command Prompt step by step. If you have query related to same article you may contact us.
How to Clean a Windows PC using Command Prompt – Guide
Microsoft Windows, commonly referred to as Windows, is one of, if not the most popular operating system for home and business computers. Undoubtedly, you can work on your PC with a wide range of functions. As there are a lot of background tasks, PC memory needs to be cleaned up from time to time.
With the Windows operating system, you can clean up PC memory in many different ways. You can use third-party software to delete temporary files on your hard drive, or you can use Windows built-in Disk Cleanup features at the command prompt.
How to Clean a Windows PC Using Command Prompt
Commands to clean your computer using CMD
Below is the list of commands to start the disk cleanup utility, clean temp files, memory cache and more. Some of these commands may require you to open the command prompt as an administrator. Here it is how to do it.
How to Defrag hard drive with command prompt
How to Use Disk Cleanup Utility via Command Prompt
Basic file deletion
You can use the cleanmgr command to launch the Disk Cleanup tool using Command Prompt. To use it:
Skipping drive selection
Running this command skips the drive selection step and displays the Disk Cleanup settings window. From here, you can select the files to be deleted.
Automatically delete files
If you prefer to let the Disk Cleanup utility decide which files to delete, use the cleanmgr /sagerun variant. After running, it will scan your drives and delete junk files from your system.
Optimize for little space
The lowdisk option, as the name suggests, is useful if you are running low on hard drive storage space. When run, it automatically scans all file categories by default.
When using this form of command, enter the drive letter of the partition to free up space. The command will look something like this:
When run, Disk Cleanup will open with all junk file categories selected on the D: drive. To delete all junk files quickly without user prompt, use the following command:
Final note
I hope you like the guide How to Clean a Windows PC using Command Prompt. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.