The Surly Admin

Father, husband, IT Pro, cancer survivor

Multithreading Powershell Scripts

In your scripting journey there will come a time that you have a script that is simply running too long. Perhaps you’re wanting to gather information hourly and the script is taking two hours to run. Maybe you’re a consultant and need a discovery script to run as fast as possible so you can get out of there? Whatever it is at some point you’ll consider multithreading. Powershell has this capability baked right into it using Powershell Jobs, but .Net has a way too, and initial testing shows it might be faster! Read on to see what I mean.

Continue reading

Advertisement

February 11, 2013 Posted by | PowerShell, Powershell - Performance | , , , , , , | 30 Comments