This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cancel individual jobs via Powershell

I am trying to automate clearing out various queued replications jobs over night to prevent the rollups for still being queued in the morning. I am able to pull the various information about the jobs I want to stop however I can seem to stop individual jobs via a power shell command.

Has anybody come across this issue or found a way round jobs holding each other up overnight when the nightly jobs are supposed to run?

Thnaks Jamie

Parents
  • Yeah -- just add or change a line looking as
    $xJobs += $currentjobs |where {$_.summary -like "*Replica*"}

    (you can use a better filter as I do not remember the exact wording of replication jobs).
    I have a script that sets replication on a schedule with strict enforcement as well -- but this will be for next week :)
Reply
  • Yeah -- just add or change a line looking as
    $xJobs += $currentjobs |where {$_.summary -like "*Replica*"}

    (you can use a better filter as I do not remember the exact wording of replication jobs).
    I have a script that sets replication on a schedule with strict enforcement as well -- but this will be for next week :)
Children
No Data