Why Should I Do A Disk Clean Up
So why should I do a disk clean up, will a disk clean-up protect my PC from malware? The answer to that is ‘Probably not’. So why do it? Whats the point of it? Does it keep your PC running efficiently?
We will try to answer the above questions now. The main objective of good PC Maintenance is to keep the PC operating efficiently with minimal disruption. A part of that process is to keep the PC as free as possible of unnecessary data. One way to do that is to run the disk clean up utility that is a part of the Windows operating system. It removes “unnecessary” files from the PC and gives you more free disk space for you to use.
The disk cleanup program does not require administrative privileges so anyone can run the process.
It is found under Start/Programs/Accessories/System Tools.
You can run it by double-clicking its icon. You can also run it from a command line or automate the process. For more information, check this Microsoft web page: ” How to Automate the Disk Cleanup Tool in Windows XP and Windows 7″ at http://support.microsoft.com/default.aspx?scid=kb;en-us;315246
For Windows 10 automating disk cleanup you can do the below:
Using Command line version of Disk Cleanup Utility or Cleanmgr.exe
Open an elevated command prompt and then type:
where n can be any integer between 1 and 255.
Note: This switch /sageset displays the Disk Cleanup Settings dialog box and creates a registry key to store the settings.
The number denote the settings which will be stored in the Registry when your run sagerun switch later on – and basically lets you make shortcuts to different stored configurations or schedule automatic cleanup in the Task Scheduler.
In effect the /sagerun:n switch will run the specified tasks that are assigned to the n value by using the \sageset switch. Opening the Command line version of Disk Cleanup Utility offers more cleanup options. Select the ones that you want and click OK to save them. After you click OK, the settings (selection) will be stored in the Registry for future use.
When you schedule it using cleanmgr /sagerun:1 to run through the Task Scheduler, it will take these settings for Disk Cleanup.
If you want to run this “Enhanced” Disk Cleanup Utility right away, type cleanmgr /sagerun:1 in the cmd window and hit Enter.
Alternatively, you could type C:\Windows\system32\cleanmgr.exe /sagerun:1 in a Run window and hit Enter. The disk cleanup operation will start right away.
For the system tools version, you would next select what task you wish to be processed by the disk cleanup software from the following list:
* Downloaded Program Files
* Temporary Internet
* Recycle Bin
* Temporary Remote Desktop Files
* Setup Log Files
* Offline Files
You may see other categories than these. You can highlight the item to see an explanation of the category.
As a rule of thumb, always consider the effect of change to your system. Have a full backup of all data that you may need. Review what is found in each of these categories to be sure that it is what you think it is. Once you are comfortable with what it is and that you can safely remove it, then run the disk cleanup. For years, I have been running the disk cleanup utility with ALL categories selected and have had no problem as a result. I would also say that you to use this utility and to follow it with a disk defragmentation.