Answer the question
In order to leave comments, you need to log in
Why does a variable disappear after one use in PowerShell in the Start-ThreadJob cmdlet?
I am writing
Start-ThreadJob -ThrottleLimit 500 -InputObject $for_list_pc -ScriptBlock { }
Inside scriptblok, according to the documentation, I use $input to access the variable passed through -InputObject $for_list_pc. But on the second call to $input, there is nothing there. What am I doing wrong?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question