Invoke-Parallel
Invoke-Parallel copied to clipboard
Speed up PowerShell with simplified multithreading
This causes some issues when running scripts that interact with the filesystem using a relative path, e.g. downloading a file 
Added documentation for the ImportFunction parameter added Pull #46 (c9c6ae0)
This line: `$runspace.powershell.EndInvoke($runspace.Runspace)` Means that if your session is set to stop on errors, and any of your jobs write an error, Invoke-Parallel will error out at the point it...
Modules is the preferred way to distribute reusable components.
Goal: I am trying to only use PowerShell to conduct a ping sweep and I want to perform the fastest ping sweep possible. Research: I found a quick single line...
I am processing large objects and I would like Invoke-Parallel to push 1000 threads at a time. The job is done for only 400+ objects. But when I change the...
I'm trying to call some custom functions inside of Invoke-Parrallel as such: ``` if ($xmlfile.configuration.DBAndFilesBackup.item("MSSQL").haschildnodes) { foreach ($backup in $xmlfile.configuration.DBAndFilesBackup.MSSQL.backup) { Invoke-Parallel -ImportVariables -Throttle 2 { # Create a unique...
I need to display the number of records being processed by Invoke-Parallel in a WinForms variable. For that I need to keep a Counter variable. I tried Boe's [synchronized hash...
Please, observe the following script: ```Powershell param([switch]$Cleanup, [Switch]$MockMutex, $N = 1) function Cleanup() { 1..$N | ForEach-Object { Unregister-PSRepository "r$_" -ErrorAction SilentlyContinue } Remove-Item $WorkDir -ErrorAction SilentlyContinue -Recurse } $WorkDir...