Task Scheduler Repeat: Until: Duration:

Discussion in 'Windows Server' started by MikeV99, Oct 25, 2005.

  1. MikeV99

    MikeV99 Guest

    I am confused about the purpose of

    Repeat: Until: Duration: 24 Hour(s): 0 Minute(s)

    Does it mean the task will stop repeating after 24 hours even though
    the task is scheduled to run everyday?

    I want a task to run every hour, every day, forever. What should the
    Repeat: Until: Duration: field be set to?

    My definitions are as follows:

    C:\schtasks /query /FO LIST /V

    HostName: WIN2003-HOME
    TaskName: DNSExit
    Next Run Time: 11:36:00 AM, 10/25/2005
    Status:
    Logon Mode: Background only
    Last Run Time: 10:36:00 AM, 10/25/2005
    Last Result: 0
    Creator: V
    Schedule: Every 1 hour(s) from 7:36 PM for
    24 hour(s) every day, sarting 10/24/2005
    Task To Run: C:\DNSExit\ipUpdate.exe
    Start In: C:\DNSExit
    Comment: N/A
    Scheduled Task State: Enabled
    Scheduled Type: Hourly
    Start Time: 7:36:00 PM
    Start Date: 10/24/2005
    End Date: N/A
    Days: Everyday
    Months: N/A
    Run As User: NT AUTHORITY\SYSTEM
    Delete Task If Not Rescheduled: Disabled
    Stop Task If Runs X Hours and X Mins: Disabled
    Repeat: Every: 1 Hour(s)
    Repeat: Until: Time: None
    Repeat: Until: Duration: 24 Hour(s): 0 Minute(s)
    Repeat: Stop If Still Running: Disabled
    Idle Time: Disabled
    Power Management: Disabled

    Thanks.
     
    MikeV99, Oct 25, 2005
    #1
    1. Advertisements

  2. MikeV99

    Dave Patrick Guest

    24 hours

    As an example; say you wanted to run the task at 1 hour intervals from
    2:00AM to 4:00PM daily then you would set the start time of 2:00AM and the
    repeat task every 1 hours and duration of 14 hours

    --

    Regards,

    Dave Patrick ....Please no email replies - reply in newsgroup.
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    http://www.microsoft.com/protect
     
    Dave Patrick, Oct 25, 2005
    #2
    1. Advertisements

  3. MikeV99

    MikeV99 Guest

    OK. Then if I set duration to be 25 or 30 or 100 or ... the duration
    counter would be restarted at the start time and the duration time
    would never be reached.

    That makes sense. Thank you.

     
    MikeV99, Oct 26, 2005
    #3
  4. MikeV99

    Dave Patrick Guest

    To be honest I never tried setting higher than 24 hours since it wouldn't
    make any sense. The Task Scheduler applet does accept higher numbers though
    I don't know what side effects this might cause.

    --

    Regards,

    Dave Patrick ....Please no email replies - reply in newsgroup.
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    http://www.microsoft.com/protect
     
    Dave Patrick, Oct 26, 2005
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.