The Surly Admin

Father, husband, IT Pro, cancer survivor

Objects and Hashtables

I expect, if you got the right group of people together, you could have a good old Mac vs PC style argument over the use of Powershell Objects (PSObjects) and hashtables.  And I’ll be honest, while I’ve used hashtables a lot for splatting I’ve used them very little for anything else.  Time to look at the two and figure out which is better, once and for all!

Continue reading


February 21, 2013 Posted by | Powershell - Best Practices, Powershell - Performance | , , , | 4 Comments

Building PSObject Performance

You know I love working with Objects in Powershell, but are some methods better at building them then others?  Ran into an interesting technique recently and wanted to test it against my normal way of doing things.  Read on to see which technique is faster

Continue reading

January 14, 2013 Posted by | Powershell - Performance | , , | 6 Comments

Get Service Information for a List of Computers

Today was a great example of how something that should be really easy with a computer turns out to be hard. Even in Powershell this happens. Case in point: on Spiceworks today a guy named dhubbard posted a vbScript that got a bunch of information about Windows services. It could be run against multiple servers from a simple text file.

Continue reading

September 6, 2012 Posted by | PowerShell | , , , , | 5 Comments