How To Clean your Windows PC by Command Prompt

How To Clean your Windows PC by Command Prompt

By cleaning up the clutter on your computer, you can improve performance and free up a lot of storage space. Windows comes with several built-in system cleanup utilities, such as the Disk Cleanup tool. However, one lesser-known way to clean up your computer is through the command line.

Here are some ways to clean up a slow Windows PC using Command Prompt.

Why clean up your computer using the command line?

The command line is a built-in command processor available in almost all versions of Windows, starting with Windows 3.1. Although the graphical user interface is convenient for most people, some may prefer the command line to perform multiple tasks due to its efficiency and productivity improvements.

If you’re new to Microsoft’s popular command processor, check out our beginner’s guide to the Windows command line.

The Disk Cleanup tool and the Storage Sense feature in Windows 10 make it pretty easy to clean up your PC. If there are any unnecessary files left, you can delete them manually, for example by clearing the temporary folder. You can speed up this process by using commands to access Disk Defragmenter, diskpart, and Disk Cleanup.

Run Disk Cleanup Utility via CMD
 
🔹Step 1: First of all, click on the Windows Start button and type in ‘CMD‘. Next, right-click on the Command Promot and select ‘Run as Administrator.’
 
🔹Step 2: Now on the Command Prompt, type in cleanmgr and hit the Enter button.
 
🔹Step 3: This will launch the Disk Cleanup utility. Select the drive you want to clean and click on the ‘Ok‘ button.
 
🔹Step 4: If you wish to skip the drive selection pop-up, enter the command:
 
cleanmgr /sageset
 
🔹 You need to select the files to delete after executing the above command
 
🔹Step 5: If you wish to delete files automatically, then execute the command:
 
cleanmgr /sagerun
 
🔹 The above command will automatically scan your drives and delete junk files from your PC.
 
  ✅ That’s it You’re done. THIS WILL scan your drives and Remove Junk from your pc. 
 
Keep supporting us❤️,
See Also