Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

scriptblock size/line limit in start-job?

$
0
0

Is there a size limit here? I have over 150+ lines in the block and it errors out after a certain line no matter how I rearrange the script.

Any ideas?

A get-job | receive-job -keep produces the following after 100+ lines of the code process....

The background process reported an error with the following message: .+ CategoryInfo          : OperationStopped: (localhost:String) [], PSRemotingTransportException+ FullyQualifiedErrorId : JobFailure+ PSComputerName        : localhost


-DEMPC



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>