Oct 17, 2018 On Windows 10, Disk Cleanup has been a handy tool for freeing up space after upgrading to a new version and for getting rid of junk files on your hard drive. However, beginning with the October.
Hi,
- How to run Disk Cleanup on Windows 10 While tackling a messy closet or cramped garage may be daunting, using Disk Cleanup on Windows 10 to freshen up your PC is quite easy. Follow these 3 steps to run Disk Cleanup on Windows 10.
- Windows 10 has a feature built into the Disk Cleanup tool called Clean Up System Files that not many people take full advantage of. This feature is designed to help you regain valuable hard disk.
To assist you with your concern on automating disk cleanup in Windows 10, you may do so using Task Scheduler. First, we need to activate some cleaning options and then use the Task Scheduler.
Using Command line version of Disk Cleanup Utility or Cleanmgr.exe
- Open an elevated command prompt, type cleanmgr /sageset:n, 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:Windowssystem32cleanmgr.exe /sagerun:1 in a Run window and hit Enter. The disk cleanup operation will start right away.
Here are the steps to schedule a task:
![Disk Cleanup On Windows 10 Disk Cleanup On Windows 10](/uploads/1/2/4/9/124901646/921741891.jpg)
How Do I Do A Disk Cleanup On Windows 10
- Open Task Scheduler from the Control Panel or type Task Scheduler on the search box.
- Click on Create Basic Task. Give it a name and description.
- Select the Trigger, in this case the frequency. Click Next.
- Fill in the required details and click Next.
- As Action, select Start a program and click Next.
- Since we want to run the Disk Cleanup Utility, write C:Windowssystem32cleanmgr.exe and Add argument as /sagerun:1. As we have saved the disk cleanup setting using the number '1', we are using the same number '1' here. Click Next.
- Check the Summary. Select the Open Properties box and click Finish.
- The Monthly Disk Cleanup Properties box will open where will you get to see details like Triggers, History, General, Settings, Actions and Conditions.
Disk Cleanup On Windows 10
Let us know how it goes.