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.
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
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.