New-JobTrigger -Daily

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Soma sympli Soma sympli 1 year, 6 months ago.

  • Author
    Posts
  • #27112
    Profile photo of Soma sympli
    Soma sympli
    Participant

    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
    Profile photo of Tim Pringle
    Tim Pringle
    Participant

    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
    Profile photo of Soma sympli
    Soma sympli
    Participant

    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.