New-JobTrigger -Daily

Welcome Forums General PowerShell Q&A New-JobTrigger -Daily

This topic contains 2 replies, has 2 voices, and was last updated by

3 years, 9 months ago.

  • Author
  • #27112

    Points: 110
    Rank: 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

    Points: 60
    Rank: Member

    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

    Points: 110
    Rank: 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 🙂

The topic ‘New-JobTrigger -Daily’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort