Showing posts with label Performance. Show all posts
Showing posts with label Performance. Show all posts

2013/06/28

PowerShell SCCM 2007 Module - My contribution

I recently contributed to a PowerShell module called SCCM Automation created by Andre Bocchini. (SCCM stands for System Center Configuration Manager)

Take a look at it on GitHub here: https://github.com/andrebocchini/sccm-powershell-automation-module Andre really did an awesome job on this module!

This Module for SCCM 2007 (which does not come with a set of PowerShell Cmdlets) allows you to query Computers, Collections, Advertisements etc... (Check the Full list of Cmdlets)

However against big SCCM environment I notice some functions queries were very slow to report object.
After inspecting the code, I tweaked some parts of the code, especially on the Get-WmiObject queries.
Those modifications are now part of the module.

2012/02/17

Powershell - Webcast Speeding Up PowerShell: Multithreading

Interesting Web cast next Monday about Powershell Multi threading.

Monday, February 20th, 2012 12:00 PM to 1:00 PM Central Time

Here is the Event home page

PowerShell is single-threaded by design which is why PowerShell can execute tasks only sequentially. To speed up scripts, PowerShell v2 offers background jobs which are somewhat heavyweight. In this webcast, PowerShell MVP Dr. Weltner illustrates how you can spawn lightweight threads to execute multiple things in parallel (at the same time). Unlike background jobs, this technique uses less resources and allows threads to communicate with each other. This will not only enable you to considerably speed up scripts. It will also enable you to open multiple GUI windows and keep them open while other PowerShell threads update the window content. To round things up, Weltner will quickly highlight some of the future parallel processing capabilities built into the upcoming PowerShell version 3.0 which is currently publicly available as CTP (community technology preview).