Skip to content

Start-RSJob outputting full job details #208

Description

@apachegit

I'm sure this is something stupidly simple, but what would cause the call to Start-RSJob to output the full job details to the screen when it starts a job? I'm using the following loop

   {
      $args=@()
      $Args+=$comp
      start-rsjob -throttle $maxjobs -argumentlist $args -filepath "$mydir\getlogons.ps1"
    }

When I use that in a very simple test script, the call to start-rsjob outputs the expected single line of output. However, when I moved it into my larger script, it outputs the full details of the job, as if I'd piped it through "fl".

I'm running Windows 10 and Powershell 5.1 with the latest PoshRSJob installed.

Can anyone shed light on what I should look for earlier in the larger script that's causing this behavior? I'm new to PoshRSJob, so I'm still climbing the learning curve. Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions