Tip & How-To about Computers & Internet

How to create a daily enhanced Disk Cleanup task in Windows 7

So you want your Windows 7 Operating System to perform a daily enhanced Disk Cleanup? Well, so do I. So lets get this party started.

Step 1. Click on Start and then click Control Panel.

Step 2. In Control Panel change the View to Small Icons.

Step 3. Now click on Administrative Tools.

Step 4. Now double-click on Task Scheduler.

Step 5. On the right hand side of the Task Scheduler window, click on Create Task.

Step 6. In the Name field, you can type "I love crickets", but to make our task easier to find and manage, I would suggest you label it for what it is, ie., Daily Enhanced Disk Cleanup.

Step 7. In the Security Options area, you are asked to use the default account, which is the account you are currently logged in with. If your account is not an Administrator account you will not be able to create this task. Also, if your account does not have a password, you will not be able to run this account.

Step 8. We want to run this task while we are not actively using this machine, so let's select the "Run whether user is logged on or not" radio button.

Step 9. Leave the "Do not store password" checkbox unchecked.

Step 10. Select the "Run with highest priveledges" checkbox.

Step 11. Leave the Hidden box unchecked as well. We wouldn't want to make it harder for us to find the task if we have to edit it.

Step 12. Click on the Triggers tab.

Step 13. Click the New button.

Step 14. For Begin the task. select "On a Schedule".

Step 15. Select Daily to Recur every 1 days.

Step 16. Change the Start time to 2:00 AM

Step 17. Now check the Enabled checkbox then hit OK.

Step 18. Click on the Actions Tab.

Step 19. Click the New button.

Step 20. In the action dropdown menu, select "Start a program".

Step 21. In Program/script, type C:\Windows\System32\cleanmgr.exe

Step 22. For Add Arguments, type in /sagerun:1
(Please note: To utilize the /sagerun:1 argument, you must follow the steps outlined in my previous article located here.)

Step 23. Hit OK.

Step 24. Click on the Conditions tab.

Step 25. Select the "Wake this computer to run this task" checkbox.

Step 26. Hit OK to close the Create Task UI. You will be prompted for your password or the password you used to create the task.

Step 27. Now test your task.

Step 28. In the task Scheduler UI, click in Task Scheduler Library in the top left hand corner.

Step 29. Right-click on the task you just created and hit run. Your task should run silently in the background. After a few moments, you can click on the History tab and check the status of the task as it stands right now. You will either see running or completed successfully.

Though this task was built using Windows 7, the same steps apply to Windows Vista.

Posted by on

Computers & Internet Logo

Related Topics:

Related Questions:

3 Answers

my pc was very slow loading how to fix it

1) check whether it is because of u r antivirus. just try uninstalling it and use the pc then u will find it out.
2) u must also have minimum RAM of 1 GB.
3) try deleting all temporary files too .

Jul 14, 2011 | Microsoft Windows 7 Home Premium 64BIT...

1 Answer

how can i speed up my aircel internet on pc

5 ways to speed up your PCBy following a few simple guidelines, you can maintain your computer and keep it running smoothly. This article discusses how to use the tools available in Windows 7, Vista, and XP Service Pack 3 (SP3) to more efficiently maintain your computer and safeguard your privacy when you're online.
1. Free up disk spaceThe Disk Cleanup tool helps you free up space on your hard disk to improve the performance of your computer. The tool identifies files that you can safely delete, and then enables you to choose whether you want to delete some or all of the identified files.
Use Disk Cleanup to:
  • Remove temporary Internet files.
  • Remove downloaded program files (such as Microsoft ActiveX controls and Java applets).
  • Empty the Recycle Bin.
  • Remove Windows temporary files such as error reports.
  • Remove optional Windows components that you don't use.
  • Remove installed programs that you no longer use.
  • Remove unused restore points and shadow copies from System Restore.
2. Speed up access to dataDisk fragmentation slows the overall performance of your system. When files are fragmented, the computer must search the hard disk when the file is opened to piece it back together. The response time can be significantly longer.
Disk Defragmenter is a Windows utility that consolidates fragmented files and folders on your computer's hard disk so that each occupies a single space on the disk. With your files stored neatly end-to-end, without fragmentation, reading and writing to the disk speeds up.
When to run Disk Defragmenter
In addition to running Disk Defragmenter at regular intervals—monthly is optimal—there are other times you should run it too, such as when:
  • You add a large number of files.
  • Your free disk space totals 15 percent or less.
  • You install new programs or a new version of Windows.
3. Detect and repair disk errorsIn addition to running Disk Cleanup and Disk Defragmenter to optimize the performance of your computer, you can check the integrity of the files stored on your hard disk by running the Error Checking utility.
As you use your hard drive, it can develop bad sectors. Bad sectors slow down hard disk performance and sometimes make data writing (such as file saving) difficult, or even impossible. The Error Checking utility scans the hard drive for bad sectors, and scans for file system errors to see whether certain files or folders are misplaced.
If you use your computer daily, you should run this utility once a week to help prevent data loss.
Run the Error Checking utility:
  1. Close all open files.
  2. Click Start, and then click My Computer.
  3. In the My Computer window, right-click the hard disk you want to search for bad sectors, and then click Properties.
  4. In the Properties dialog box, click the Tools tab.
  5. Click the Check Now button.
  6. In the Check Disk dialog box (called Error-checking in Windows 7), select the Scan for and attempt recovery of bad sectors check box, and then click Start.
    checkdisk.jpgExample of Check Disk Local Disk dialog box

  7. If bad sectors are found, choose to fix them.
Tip: Only select the "Automatically fix file system errors" check box if you think that your disk contains bad sectors.
4. Protect your computer against spywareSpyware collects personal information without letting you know and without asking for permission. From the Web sites you visit to usernames and passwords, spyware can put you and your confidential information at risk. In addition to privacy concerns, spyware can hamper your computer's performance. To combat spyware, you might want to consider using the PC safety scan from Windows Live OneCare. This scan is a free service and will help check for and remove viruses.
5. Learn all about ReadyBoostIf you're using Windows 7 or Windows Vista, you can use ReadyBoost to speed up your system. A new concept in adding memory to a system, it allows you to use non-volatile flash memory—like a USB flash drive or a memory card—to improve performance without having to add additional memory.

Jun 13, 2010 | Microsoft Windows XP Professional for PC

Not finding what you are looking for?

218 people viewed this tip

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers


Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions