Tag Archives: array

Invoking Private Static Methods Using PowerShell

Usually if I want to accomplish a task in PowerShell, I can count on either a cmdlet or a publicly available .Net method to come to my rescue. Sometimes though, a method that I would like to use is just … Continue reading

Posted in powershell | Tagged , , , , | 6 Comments

Looking More at System.Array With PowerShell

I had written about why you shouldn’t use System.Array and instead should use System.Collections.ArrayList and went over the performance gains regarding this. I had mentioned that each time you add something to the System.Array, that it rebuilt itself while adding … Continue reading

Posted in powershell | Tagged , , , | 3 Comments

Quick Hits: Adding Items to an Array and a Look at Performance

I had some comments on a recent performance comparison article that were well received and encouraged me to write some more of these similar articles. So without further ado, lets get started on looking at adding items to an array … Continue reading

Posted in powershell | Tagged , , , , | 8 Comments

Creating a Report of Log File Data using Regular Expressions, Arrays and Hash Table

As I was checking my email early in the morning, I saw an email from co-worker asking me to write a script to parse through some logs that were generated from another script that listed the date the script is … Continue reading

Posted in powershell, scripts | Tagged , , , , , | 5 Comments

Custom Powershell Objects and Performance

One of the things that I have been seeing are the different ways to compile a report or to create a collection of custom objects in Powershell.  In fact, there was a comment on a previous post saying that I … Continue reading

Posted in powershell | Tagged , , , , | 5 Comments