Difference between revisions of "Clean Manager Registry Entries"

From Michael's Information Zone
Jump to navigation Jump to search
(Created page with "<pre> The /sagerun:n switch runs the Disk Cleanup tool with the options you previously created using the /sageset:n switch. sageset:n - option displays the Disk Cleanup Settin...")
 
 
Line 1: Line 1:
 +
<ref>https://answers.microsoft.com/en-us/windows/forum/windows_xp-performance/how-to-code-a-batch-file-for-cleanmgr-with/5ec69be4-c272-4fbc-8959-7558cdabd988?auth=1</ref>
 
<pre>
 
<pre>
 
The /sagerun:n switch runs the Disk Cleanup tool with the options you previously created using the /sageset:n switch.
 
The /sagerun:n switch runs the Disk Cleanup tool with the options you previously created using the /sageset:n switch.

Latest revision as of 13:40, 30 September 2017

[1]

The /sagerun:n switch runs the Disk Cleanup tool with the options you previously created using the /sageset:n switch.
sageset:n - option displays the Disk Cleanup Settings dialog box and also creates a registry key to store the settings that you select. The n value, which is stored in the registry, allows you to specify tasks for Disk Cleanup to run. The n value can be any integer value from 0 to 65535. To have all of the options available when you use the /sageset option, you might need to specify the drive where Windows is installed. You can have any number of tasks created [in Sageset 1, you can select "Recycle Bin", in Sageset configuration 2, you can deselect Recycle-bin. Each of the Sageset configurations are stored in the following registry key and sub-keys:
HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \VolumeCaches
Above from MVP Ramesh's article describing automating disk cleanup.