Tech Tips Home
The Best Tech Tips And Daily Deals
Newsletter On The Internet!

WorldStart Tech Tip And Store Search
Email: Password: Login Remember Me

Like what you see here? Subscribe to the Tech Tips newsletter!   Email: Subscribe

Use Task Scheduler To Clean Up Your PC: Part 3

Tuesday, March 28th, 2017 by | Filed Under: Uncategorized
 
Loading...


In part 1 and part 2 of this series, we got started with using task scheduler to set up automatic PC maintenance. If you haven’t read those articles yet:

Click here for part 1.

Click here for part 2.

Now that we’ve instructed task scheduler to start a program at a particular time, let’s tell it what actions we want to be taken.

Step four: one of the most important steps. We are going to specify the location of the program that we want to start. In the Program/script box insert the route of the executable, you can click on browse and navigate through the folders to locate it.

In this case, to execute the windows defrag tool, the path is:
%windir%\system32\defrag.exe

http://imgsrv.worldstart.com/images/ct-images/2017/03/scheduler-add-arguments.jpg

Also, we can add arguments that will specify rules and preferences that the program will follow upon execution.

These are the arguments that we can add to defrag.exe. Those in red work in Windows 8, 8.1 and 10.

/A            Perform analysis on the specified volumes.

/B            Perform boot optimization to defrags the boot sector of the boot volume. This will not work on an SSD.

/C            Perform the operation on all volumes.

/D            Perform traditional defrag (this is the default).

/E            Perform the operation on all volumes except those specified.

/H            Run the operation at normal priority (default is low).

/K            Perform slab consolidation on the specified volumes.

/L            Perform retrim on the specified volumes. Only for an SSD.

/M           Run the operation on each volume in parallel in the background.

/O           Perform the proper optimization for each media type.

/T            Track an operation already in progress on the specified volume.

/U            Print the progress of the operation on the screen.

/V            Print verbose output containing the fragmentation statistics.

/X            Perform free space consolidation on the specified volumes.

 

Step five: almost there! The last window shows us a summary of the task that we’ve just created. Make sure that you check the box “Open the Properties dialog for this task when I click Finish”.

http://imgsrv.worldstart.com/images/ct-images/2017/03/scheduler-properties-dialog.jpg

Step six: the properties window. Here we’ll set some important privileges options. Always make sure that you are logged with an account that has administrator rights when creating the task, if not, then you can change the account that is running the task from “Change User or group” button (red rectangle). Also check the box “Run with highest privileges” (blue rectangle), if you don’t, some tasks won’t run at all. Last but not least, configure the task for the operative system you are running, in this case, Windows 7 (green rectangle).

http://imgsrv.worldstart.com/images/ct-images/2017/03/scheduler-privileges.jpg

 

 

Now you can close the window and look for your new task in the Active task section.

http://imgsrv.worldstart.com/images/ct-images/2017/03/active-tasks-scheduler.jpg

But how can we now that it will work when the time comes? Well, if you double-click on it, then you can check and edit its properties from the actions column on the right. There you can run the task anytime you want, end it if it’s already running or delete it if you no longer need it.
Let’s test it by clicking Run.

active-tasks-scheduler-run

http://imgsrv.worldstart.com/images/ct-images/2017/03/active-tasks-scheduler-running.jpg

It’s alive! Click Ctrl+C if you don’t want to run the defrag now.

Now, at the beginning of this series, I promised you some bonus tips for scheduling other actions using Task Scheduler. We’ll check those out in the final part of this series, tomorrow.

~ Hernan Escalante

7 Responses to “Use Task Scheduler To Clean Up Your PC: Part 3”

  1. Beverly Martinez says:

    I had a problem printing Part 2. When I clicked on “Print here for Part 2″, WorldStart.com came up but then immediately switched to Fronter.com with several web sites to go to. I also tried to print it when I was in the Printer Friendly Version and a message appeared saying “Server not Found” — can’t find the server at . . .”

    Had this same problem the other day. Never happened before.

  2. betty stephens says:

    I cannot get part 2 at all

  3. D.J. Smith says:

    I can’t get Part 2 either. All I get is “Server not Found” 3/30/17

  4. D.J. Smith says:

    I can’t get either, only “Server not Found” 3/30/17

  5. R.Clarke says:

    I can’t get Part 2 either.

Leave a Reply


Like these tips? Get them for FREE in your email!

WorldStart's Tech Tips Newsletter

  • Tech Tips Daily - Become a tech pro! Get the very best tech and computer help sent directly to your email every weekday!

  • Tech Tips Weekly - If you don't want our Tech Tips newsletter every day, then sign up for this weekly newsletter to get the best information of the week. Sent on Fridays.

Other Newsletters

  • WorldStart's Daily Deals - Every week, we send out great deals in our Daily Deals newsletter. Many of these deals are exclusively for our Daily Deals newsletter subscribers and can't be found with our regular specials.

  • Just For Grins - Each issue includes a couple clean jokes, some funny quotes, and a hilarious reader's story. Newsletter is sent five days a week.


Enter Email Address:

Subscribe

Your e-mail address is safe with us!
We only use it to send you the newsletters you request. It is NEVER disclosed to a third party for any reason, ever! Plus, if you decided you don't like our newsletters (don't worry, you'll love them), unsubscribing is fast and easy.

Free Newsletter Signup



Tech Tips Daily

Become a tech pro! Get the very best tech and computer help sent directly to your email every weekday!

Tech Tips Weekly

The week's best in tech and computer help. Get your issue sent to your email every Friday!

WorldStart's Daily Deals

The very best deals on the Internet! Get a new set of incredible sales every day of the week!

Just For Grins

Clean jokes, funny quotes, and hilarious comics. Sent 5 times a week straight to your email.


Subscribe


Love Worldstart? Refer A Friend!

WorldStart's Premium Membership

Tip Archive


Categories:
Archives: