New-JobTrigger -Daily

This topic contains 2 replies, has 2 voices, and was last updated by  Soma sympli 2 years, 11 months ago.

  • Author
  • #27112

    Soma sympli

    Is there a way I can use the -daily parameter set to trigger a job and use repetition parameter set with it??

    Repition works when I use the -Once parameter set however I cant figure it out how to use it with -Dialy parameter set.

    New-JobTrigger -Daily -At 12:00 -RepeatIndefinitely -RepetitionInterval (New-TimeSpan -minutes 5)

    Any help?? , TIA

  • #27153

    Tim Pringle

    Hi Soma,

    There is no parameter set which allows this, since a job scheduled to occur daily is effectively a repetition interval of 24 hours.

  • #27176

    Soma sympli

    Hi Tim,

    Thanks for the help, I realized that when we use -Once we don't have to explicitly mention -Daily. -Once every "HOURS" indefinitely will do the job.

    Thanks again 🙂

You must be logged in to reply to this topic.