Session

Improve PowerShell Code Efficiency with .NET RunSpaces

Efficient PowerShell Scripting is important when working with large sets of data. PowerShell users have many options at their disposal to increase the power of the code, including parallel processing, avoiding the pipeline, memory utilization, etc. PowerShell 7.x has additional features for Parallel Processing that PowerShell 5.1 does not have. I will briefly explain these various code enhancements and then go into a deep dive on .NET RunSpaces. I had to create a script that processed large quantities of data and the script was taking over 2 hours. With the help of .NET RunSpaces, I was able to get my script to around 10-15 minutes. The script runs on a Windows Server and is only used on PowerShell 5.1. I'll go into a detailed explanation on how .NET RunSpaces is used in the script along with a demonstration.

Bruce Stump

Everwise Credit Union, Systems Administrator

South Bend, Indiana, United States

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top