How to Run Disk Cleanup on Startup

Want to run Disk Cleanup every time Windows starts to make sure you never have files on your system you don’t need? You can set-up Disk Cleanup to run at startup using the Windows Task Scheduler, how that works, we explain below.

Disk Cleanup removes unwanted files from your hard disk, including these:

  • Downloaded Program Files
  • Temporary Internet Files
  • Offline Webpages
  • Old Windows Installations
  • Delivery Optimization Files
  • Recycle Bin
  • Temporary Files
  • Thumbnails
You need to be signed into an Administrator Account to add tasks.

How to Run Disk Cleanup on Startup

1. Start Task Scheduler. (Type Task Scheduler in the Start search bar, or press the Windows + R keys on the keyboard at the same time, then in the Run window type “taskschd.msc” without the quotes)

Run: taskschd.msc  How to Run Disk Cleanup on Startup Disk Cleanup on Startup

Run: taskschd.msc

2. Click on Create Basic Task…

3. Fill in the name for your task, such as “Automatic Cleanup Tool”

4. Click on Next

How to Run Disk Cleanup on Startup. Task Scheduler How to Run Disk Cleanup on Startup Disk Cleanup on Startup

How to Run Disk Cleanup on Startup. Task Scheduler

5. You will now see the Trigger screen, choose “When I log on

6. Now click on Next

How to Run Disk Cleanup on Startup. Task Scheduler How to Run Disk Cleanup on Startup Disk Cleanup on Startup

How to Run Disk Cleanup on Startup. Task Scheduler

7. You will now see the Action screen, choose “Start a program

8. Click on Next

How to Run Disk Cleanup on Startup. Task Scheduler How to Run Disk Cleanup on Startup Disk Cleanup on Startup

How to Run Disk Cleanup on Startup. Task Scheduler

9. Under Program/Script fill in: “cleanmgr.exe” without the quotes

10. Under Arguments fill in: “sagerun:1” without the quotes

11. Click on Next

How to Run Disk Cleanup on Startup. Task Scheduler How to Run Disk Cleanup on Startup Disk Cleanup on Startup

How to Run Disk Cleanup on Startup. Task Scheduler

12. Confirm the settings are correct, then click on Finish

Delaying the Task (Recommended)

It’s recommend to delay tasks a bit, since Windows has more to do after signing in, you can delay the task by editing it, and adding it as condition. Since adding to many tasks at start-up can greatly impact your boot performance

1. Click on Task Scheduler Library

2. Double-click on the Task you just created, for example Automatic Cleanup Tool

3. Open the Tab “Triggers“, and double-click the trigger “At Log On

How to Run Disk Cleanup on Startup. Triggers How to Run Disk Cleanup on Startup Disk Cleanup on Startup

How to Run Disk Cleanup on Startup. Triggers

4. Then at “Delay Task For” choose the time you want the task delayed for, I recommend 5 minutes.

How to Run Disk Cleanup on Startup.  How to Run Disk Cleanup on Startup Disk Cleanup on Startup

How to Run Disk Cleanup on Startup.

5. Click on OK.

The task will now be delayed by the amount of time you set up.

 

We hope this tutorial helped you on how to run disk cleanup on startup, if you need more help feel free to visit our forums

What's your reaction?
Solved it!
0%
Helped me
0%
Didn't work
0%
Inaccurate Information
0%
About The Author
Yuri Pustjens
Yuri Pustjens
2014, 2015 & 2016 Microsoft Most Valuable Professional Windows Yuri specializes in troubleshooting (crash analysis and devices), system resource utilisation and system performance. He is also very interested in Customer Security. Yuri can be found as Windows Community Moderator and Wiki Author on Microsoft Answers and is active on different communities all across the web.

Leave a Response