Running a job for ps1 with parameters.

Welcome Forums General PowerShell Q&A Running a job for ps1 with parameters.

Viewing 2 reply threads
  • Author
    Posts
    • #258398
      Participant
      Topics: 9
      Replies: 10
      Points: 16
      Rank: Member

      I’ve been trying to use start-job with arguments to run my script.

      I’m using the following to start the job:

      Calling the following script:

      Unfortunately it seems like I’m missing something there, the jobs are created but I’m not getting any results, if I run the scrip by itself and specify the parameter, it works fine – what am I missing?
      Thank you

      • This topic was modified 1 month ago by grokkit. Reason: code formatting
    • #258425
      Participant
      Topics: 12
      Replies: 541
      Points: 1,314
      Helping Hand
      Rank: Community Hero
      • #258449
        Participant
        Topics: 9
        Replies: 10
        Points: 16
        Rank: Member

        Ah, so it looks like i’ve missed the receive-job part (apart from couple other things) – thank you!

    • #258512
      Participant
      Topics: 9
      Replies: 10
      Points: 16
      Rank: Member

      Now, another question, is there an easy way to throttle this? I’ve tried adding -ThrottleLimit to the job but that does not seem to work.

      Thank you

Viewing 2 reply threads
  • You must be logged in to reply to this topic.