Disk Defragmenter

ByLine
How to Change the Schedule for Disk Defragmenter in Vista
Synopsis
This will show you how to turn the Disk Defragmenter automatic Run on a schedule on or off, and how to change the schedule to run Disk Defragmenter when you want it to run.
How to Change the Schedule for Disk Defragmenter in Vista

information   Information
This will show you how to turn the Disk Defragmenter automatic Run on a schedule on or off, and how to change the schedule to run Disk Defragmenter when you want it to run.
Note   Note
The Disk Deframenter .exe file is located at C:\Windows\System32\dfrgui.exe .
Tip   Tip
For a faster alternative that includes a progress graph, you can use the free Auslogics Disk Defrag.
warning   Warning
Solid State Drives (SSD) do not need to be defragmented. Doing so may lower the lifespan.





OPTION ONE
To Change the Disk Defragmenter Schedule

1. Open the Start Menu.​
A) In the white line (Start Search) area, type dfrgui and press Enter.​
B) Go to step 3.​

OR
2. Open the Start Menu.​
A) Click on All Programs, Accessories, System Tools, and then on Disk Defragmenter.​

3. Click on Continue in the UAC prompt.​
NOTE: If will take a little bit while Disk Defragmenter analyzes the disks.​
Schedule.jpg

4. To Turn On the Disk Defragmenter Schedule
A) Check Run on a Schedule. (See screenshot above)
B) Go to step 6.​

5. To Turn Off the Disk Defragmenter Schedule
A) Uncheck Run on a Schedule. (See screenshot below step 2)​
B) Go to step 9.​

6. To Modify the Schedule Time
A) Click on the Modify Schedule button. (See screenshot below step 3)​
B) Make your time adjustments: (See screenshot below step 6C)​
  • How Often: Daily, Weekly, or Monthly
  • What Day: Pick a day, Sunday to Saturday.
  • What Time: Select a time from list.
Tip   Tip
Recommended Schedule of Times to Defrag
Tip   Tip

NOTE: The more you save and delete items off your hard drive, the more often you should defrag. Adjust to your needs.

Schedule

Description

Once a Month

For a user that is only on the computer a few hours a week and does not do much file saving and deleting. You rarely install and uninstall programs.

Once a Week

For most average users that use the computer for a few hours on a daily basis and does a lot more file saving and deleting. You only do a few installing and uninstalling of programs.

Once a Day

For your power user that uses the computer for several hours a day and does an unbelievable amount of file saving and deleting. You do a lot of installing and uninstalling of programs.


C) Click on OK.​
Modify.jpg


7. To Select Volumes to Defragment
NOTE: This option is only added when you install the Vista SP1.​
A) Click on the Select volumes button. (See screenshot below step 3)​
B) Check the drives you want to be included in the defrag and uncheck the drives you do not want to be included. (See screenshot below)​
C) Click on OK.​
Select_Volumes.jpg


9. To Manually Run Disk Defragmenter Now
A) Click on the Defragment now button. (See screenshot below step 3)​
B) Do steps 7B and 7A.​
NOTE: If you need to stop Disk Defragmenter, click on the Cancel defragmentation button.​

10. When done, click on OK, if it is not grayed out, or Close if it is. (See screenshot below step 3)​





OPTION TWO
Set Defragmenter to Wake the Computer to Run

NOTE: By default Disk Defragmenter will only run when the computer is running and during low or idle usage in the background unless you run it manually, and not when the computer is in sleep mode or turned off. This will show you how to set Disk Defragmenter to wake the computer from sleep mode to run. This way you can schedule it to run when you are not using the computer in Option One above.
1. Open the Start Menu.​
A) In the white line (Start Search) area, type taskschd.msc and press Enter.​
B) Go to step 3.​

OR
2. Open the Control Panel (Classic view).​
A) Click on the Administrative Tools Icon.​
B) Click on Task Scheduler.​

3. In the left pane, click on the arrow next to Task Scheduler Library, Microsoft, and Windows to expand the folders. (See screenshot below step 4)​
4. Click on the Defrag folder.​
Task.jpg

5. In the middle pane right click on ScheduledDefrag and click on Properties. (See screenshot above)​
6. Click on the General tab. (See screenshot below step 7)​
7. Check the Run with highest privileges box.​
General_Tab.jpg

8. Click on the Conditions tab. (See screenshot below step 9)​
9. Check the Wake the computer to run this task box, and click on OK.​
Properties.jpg

10. Close Task Scheduler.​
That's it,
Shawn




 
Last edited by a moderator:
Shawn Brink

Comments

Hi Brink. I just loaded Auslogics Disc Defrag (thanks by the way for the list of free loads) and I have read that some have had some trouble with Vista Defrag, is there some other way to disable Vista Defrag so that it doesn't cause problems later? Maybe you have a Tutorial that I havent found yet? As always no need for speed. Thanks a bunch! Later, Bare Foot Kid
 
Hi Bare Foot Kid,

Nope, you did not miss anything. Unchecking the Run on a schedule option will turn off the automatic running of Vista Defrag. It will then not run unless you manually run it, so it will not hurt anything to let it sit dorment. I just deleted the shortcut in the Start menu for it and replaced it with a shortcut for Auslogics instead. ;)

Shawn
 
How odd. My defrag is set to auto. How did that happen? I know I didn't do it and it wasn't done the last time I defragged, just a couple of days ago. When I clicked on it, it started defragging instead of the usual, check volume thingie first.
 
Hi Bubba,

Did you have it set to run on a schedule? It may be still running on or finishing from the set scheduled time.

Shawn
 
In my experience (and as I have also read elsewhere), waking the computer to run defrag will not work if you set the computer to ask for a password upon waking up, correct? Do you know a way around this (without removing the password)?

Also, I was wondering if defrag will continue its job even if your computer goes to sleep?

Thanks for any help.
 
I unchecked auto schedule for disk defrag a while back. Looked at it again today and its re-enabled itself. Not sure why. I cleared the check box again, and installed disk keeper. Now Vista defrag does not show up in the tools menu. I can get to it with the command line dfrgui though. Where has the listing of it gone from tools?
 
I unchecked auto schedule for disk defrag a while back. Looked at it again today and its re-enabled itself. Not sure why. I cleared the check box again, and installed disk keeper. Now Vista defrag does not show up in the tools menu. I can get to it with the command line dfrgui though. Where has the listing of it gone from tools?
Hi Genesis1,

If the schedule was enabled from either Option One or Option Two, it will enable it both areas. It is not unusual that sometimes a Windows Update will reset something like this back to default settings. Usually only from a major update though like the SP1.

I'm not sure of what you mean is missing. The default Disk Defragmenter shortcut is located in the Start Menu, All Programs, Accessories, and System Tools folder. If you meant from within Administrative Tools, then you will need to just copy or create the shortcut in it.

Hope this helps,
Shawn
 
No, I mean from the listing you mentioned previous, eg: Start Menu, All Programs, Accessories, and System Tools. Its not there anymore, since installing disk manager.Diskmanager is there instead of the Vista default one. Seems to have replaced the shortcut.
 
Last edited:
Genesis1,

That program may have taken over as the default program and also replaced the default shortcuts for Disk Defragmenter with it's own.

You should be able to manually create a shortcut for Disk Defraggmenter from it's .exe file located at C:\Windows\System32\dfrgui.exe. Just right click on dfrgui.exe and click on Send To and Desktop (Create shortcut). From there you can move or copy the new Disk Defragmenter shortcut from the desktop to where you like (ex: Start menu) for easy use.

Hope this helps,
Shawn
 
Thanks Shawn, will do.
Don't think programs should delete original shortcuts, its like how certian ISP's alter IE to look like they supplied it! Thank goodness for websites and people like you who can help us all restore normality.

Jon.:D
 
Hi Brink....Great Forum! I am running Vista Home Premium SP1 x64 with 8 Gigs of Ram. I am also running Diskeeper 2009. Since that is always running, but doesn't seem to use any real CPU usage, will that noticeably slow my system down ( I can't tell if it has)? Should I uninstall it and use AusLogics instead? Sorry that I am bumping this thread, but I thought it was pretty much on point. Thanks.....Michael :cool:
 
Hi Lordpuffer,

You can just turn the schedule off for Vista Disk Defragmenter to not have it run unless you run it manually.

Hope this helps,
Shawn
 
Hi thanks for a great forum - I am a newbie (1st post) why did Vista do away with the colored squares when defraging? now I know Vista says its doing the job, but at least with previous versions of Windows you felt some thing was actually happening with a defrag, now am not convinced.

Kev
 
Top