Clean Manager Registry Entries

From Michael's Information Zone
Revision as of 13:40, 30 September 2017 by Michael.mast (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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.