How Windows 7 defrag schedule work

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 9,600
    Win 7 Ultimate 64 bit
       #11

    Curious. I looked in Task Scheduler and didn't find any entries related to defragging.
      My Computer


  2. Posts : 24,479
    Windows 7 Ultimate X64 SP1
       #12

    I found it here Jeannie.
    How Windows 7 defrag schedule work-tasks.png
      My Computer


  3. Posts : 9,600
    Win 7 Ultimate 64 bit
       #13

    Ok, found it. Apparently, defrag will run just fine with the default settings (no three minute delay, etc.) because all of that is disabled (grayed out) on mine and, when ever I checked the fragmentation levels of the spinners on Thursday, they have been at zero. It is possible to overthink things.
      My Computer


  4. Posts : 24,479
    Windows 7 Ultimate X64 SP1
       #14

    Lady Fitzgerald said:
    Ok, found it. Apparently, defrag will run just fine with the default settings (no three minute delay, etc.) because all of that is disabled (grayed out) on mine and, when ever I checked the fragmentation levels of the spinners on Thursday, they have been at zero. It is possible to overthink things.
    I've never done that.
      My Computer


  5. Posts : 9,600
    Win 7 Ultimate 64 bit
       #15

    Britton30 said:
    Lady Fitzgerald said:
    Ok, found it. Apparently, defrag will run just fine with the default settings (no three minute delay, etc.) because all of that is disabled (grayed out) on mine and, when ever I checked the fragmentation levels of the spinners on Thursday, they have been at zero. It is possible to overthink things.
    I've never done that.
    LOL! Just like I never have.
      My Computer


  6. Posts : 51
    Windows 7 build 7127 x64
    Thread Starter
       #16

    LMiller7 said:
    The task scheduler provides control over what happens when the computer comes out of the idle state while a task is running. Open the properties for the task and select the "conditions" tab.

    Note the second checkbox labeled "Stop if the computer ceases to be idle". Quite clear.
    Note the third checkbox labeled "Restart if the idle state resumkes". Also quite clear.

    Or have I misunderstood the question?
    I did not saw thos options, it is quite clear indeed. The only case where a disk is not defragmented is when a user always close his computer as soon as he don't use it anymore. Thanks for clearing this up. Always good to let his computer idle at least one day per week.
      My Computer


  7. Posts : 17
    Windows 7 x64 Home Premium
       #17

    Will the task scheduler method allow the defrag to run when the PC is in a logged off state? I scheduled defrag through the standard interface, but it wouldn't run until the next time a user logged in. On the other hand my AV's scheduled scan ran just fine while logged off.

    EDIT: I looked at it in task scheduler, and the logged on/off section was greyed out (although there was a check on the "run whether user is logged on or not" box). Why is it greyed out?
    Last edited by Mang Nux; 20 Mar 2014 at 02:32.
      My Computer


  8. Posts : 2,497
    Windows 7 Pro 64 bit
       #18

    EDIT: I looked at it in task scheduler, and the logged on/off section was greyed out (although there was a check on the "run whether user is logged on or not" box). Why is it greyed out?
    That section will be disabled unless you select a user account other than the default of "SYSTEM". The SYSTEM account is always logged on while Windows is running so the the question is meaningless. It is common practice for programs to disable options that have no relevance in the current context.
      My Computer


  9. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #19

    pominator said:
    I was playing around with the default Windows 7 defrag schedule and still can't figure how it work exactly.

    The default schedule is set to start at 1h am wednesday with 3 minutes idle condition. Their is also a settings that set the defrag to start as soon as it can if a schedule is missed. If my understanding is right, if the computer is close in the night of wednesday to thursday, it will start to defrag next time it will be open and idle for 3 minutes. But what happen if you open your computer on friday, do some work and let it idle 3 mins. The defrag start but then you start back using your computer before the end of the defrag. Do the defrag stop completly and the next scheduled start is next wednesday ? Do it only put itself in pause until you idle again ? Do it put iself in pause until you idle again or stop automatically if too many changes are made to the filesystem ?

    Anyway thanks if you have any info regarding this.

    Edit : You can see the details of the schedule like this : Use Task Scheduler To Tweak Automatic Disk Defragmentation In Windows 7/Vista
    I was curious about this so I looked at my History for this task.
    On 2/28/2014 I see a defrag started, stopped for "not idle", started later, ...
    Eventually it re-started and completed :)

    In Task Scheduler I now use "Enable All Tasks History" all the time, on all my systems.
    From what I found it does not impact system performance or disk usage in any noticeable way.
    The W7 default setting is to have History disabled, for whatever reason ...
    Enabling History allows looking back if I ever want to...

    I don't normally turn off my PCs.
    I use Hybrid Sleep, usually sleep is set at 30 minutes ...

    I've noticed sometimes it doesn't sleep "at the expected scheduled time" ...
    I found some programs prevent Auto Sleep while they are running.
    Maybe defrag is one of these programs?

    You could at least turn on "Enable History" temporarily to see what it shows for your scenario/question.
    If you don't want it on all the time, turn it off after your testing.

    How Windows 7 defrag schedule work-tssp01.png
      My Computer


  10. Posts : 17
    Windows 7 x64 Home Premium
       #20

    LMiller7 said:
    EDIT: I looked at it in task scheduler, and the logged on/off section was greyed out (although there was a check on the "run whether user is logged on or not" box). Why is it greyed out?
    That section will be disabled unless you select a user account other than the default of "SYSTEM". The SYSTEM account is always logged on while Windows is running so the the question is meaningless. It is common practice.
    OK. But if it's being run by 'system', and 'system' is always logged on, then why did it delay my sceduled 3am defrag until a 9am when a user was logged on?
      My Computer


 
Page 2 of 3 FirstFirst 123 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:44.
Find Us