Scheduled Task, how to run every 30 minutes?

Posted on 2011-10-13
Last Modified: 2012-05-12
I cannot seem to get a task to run every 30 minutes.  I've gone into the advanced section, and told it 30 minutes, but it still wants to use the start time.

Any suggestion as to how I can accomplish a task to run every 30 minutes?
Question by:rdabate
    LVL 15

    Expert Comment

    To schedule a task that runs every N minutes
    Minute Schedule Syntax
    Copy Code schtasks /create /tn <TaskName> /tr <TaskRun> /sc minute [/mo {1 - 1439}] [/st <HH:MM>] [/sd <StartDate>] [/ed <EndDate>] [{/et <HH:MM> | /du <HHHH:MM>} [/k]] [/it] [/ru {[<Domain>\]<User> [/rp <Password>] | System}] [/s <Computer> [/u [<Domain>\]<User> [/p <Password>]]]Remarks
    In a minute schedule, the /sc minute parameter is required. The /mo (modifier) parameter is optional and specifies the number of minutes between each run of the task. The default value for /mo is 1 (every minute). The /et (end time) and /du (duration) parameters are optional and can be used with or without the /k (end task) parameter.

    To schedule a task that runs every 20 minutes
    The following command schedules a security script, Sec.vbs, to run every 20 minutes. The command uses the /sc parameter to specify a minute schedule and the /mo parameter to specify an interval of 20 minutes.

    Because the command does not include a starting date or time, the task starts 20 minutes after the command completes, and runs every 20 minutes thereafter whenever the system is running. Notice that the security script source file is located on a remote computer, but that the task is scheduled and executes on the local computer.

    Copy Code schtasks /create /sc minute /mo 20 /tn "Security Script" /tr \\central\data\scripts\sec.vbs
    LVL 7

    Accepted Solution

    Open your tasks and Click on the second tab - Triggers then highlight the task and click edit

    Under advanced settings Click Repeat task every and on the drop down select 30 minutes and also do it for a duration  ... ie 12 hours and make sure it says enabled at the bottom of the screen
    LVL 7

    Expert Comment

    Remember this task will go to the start time until it is triggered and then the task will run.

    Also remember on the General tab that it must be set to " Run whether users is logged on or not " and always a good idea to set it to "Run with Highest privileges"

    Under the history do you get any errors?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Want to promote your upcoming event?

    Attending an event? Speaking at a conference? Or exhibiting at a tradeshow? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

    I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
    The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
    This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
    To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now