Windows Task Scheduler

I need a windows task scheduler that will run an exe every 5 minutes between 7am and 11pm EST
Larry Bristersr. DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jose Gabriel Ortega CEE Solution Guide - CEO Faru Bonon ITCommented:
Hi there,
You can use a trigger that runs 5 minutes, but there's no option between 2 times (7am to 11pm).
I mean you can use a trigger that runs every 5 minutes, but you can't specify the 7am to 11pm...

What I can think about is to run secondary task,
one a 6.55am to enable the tasks:
https://docs.microsoft.com/en-us/powershell/module/scheduledtasks/enable-scheduledtask?view=win10-ps

and another tasks at 11.05pm to disable the task.
https://docs.microsoft.com/en-us/powershell/module/scheduledtasks/disable-scheduledtask?view=win10-ps

Those works for win10, 2k16.

For 2008 R2
http://blog.powershell.no/2012/05/28/working-with-scheduled-tasks-from-windows-powershell/
0
Sam Simon NasserIT Support ProfessionalCommented:
The task must be configured in two steps.

First you create a simple task that start at 0:00, every day. Then, you go in Advanced... (or similar depending on the operating system you are on) and select the Repeat every X minutes option for 24 hours.

The key here is to find the advanced properties. If you are using the XP wizard, it will only offer you to launch the advanced dialog once you created the task.

On more recent versions of Windows (7+ I think?):

Double click the task and a property window will show up.
Click the Triggers tab.
Double click the trigger details and the Edit Trigger window will show up.
Under Advance settings panel, tick Repeat task every xxx minutes, and set Indefinitely if you need.
Finally, click ok.

https://stackoverflow.com/questions/4249542/run-a-task-every-x-minutes-with-windows-task-scheduler
0
Hello ThereSystem AdministratorCommented:
Trigger Tab -> New Trigger
Daily: Start at 7:00
Repeat Task every: 5 minutes for a duration of: 3 hours

tsk.PNG
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Jose Gabriel Ortega CEE Solution Guide - CEO Faru Bonon ITCommented:
Hello, you need to correct the duration of 3 hours to be: 16 hours (7:00 to 23:00), (7am to 11pm).
0
Hello ThereSystem AdministratorCommented:
11pm not 11am... sorry.
1
Larry Bristersr. DeveloperAuthor Commented:
That'll do it guys

Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
task scheduler

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.