The Surly Admin

Father, husband, IT Pro, cancer survivor

Simple Multiplication Table

My daughter has really been working on her multiplication tables this year and normally she comes home with a study sheet for each number, all the way up to 12.  This week we’re working on 8’s, so 8×0, 8×1, all the way up to 8×12.  Unfortunately she didn’t get a worksheet so she decided to make her own.  If I can take a moment of fatherly pride, she does this kind of thing all the time without us making her.  What a gal!  Well, one of the ways I motivate her is to race her.  So it was on.  Can I write a PowerShell script and get the multiplication table out before she could write it out?!

Continue reading


April 4, 2014 Posted by | Powershell - Getting Started | , , , , | 1 Comment

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

ForEach Performance

It’s been a tough couple of weeks, let me tell you!  I had a cold, that eventually dropped into my lungs and became pneumonia.  I don’t know about you, but I don’t have much interest in doing anything when I’m sick, not even Powershell!  Also, at work, we’re ramping up to migrate from our current ERP system to one from SAP and I expect that will be eating up a ton of time too.  Not to mention the need to finish my Exchange 2010 migration, create a Sharepoint 2010 test environment from our production one and half a dozen other projects going on at the same time.  I hope to keep fitting my scripts in amongst all this, as I have to admit this is where my IT passion is right now.

Continue reading

December 3, 2012 Posted by | Powershell - Performance, Random Thoughts | , , | 2 Comments

Get Started with Powershell: Loops and branches

I think I mentioned this before, but I’ll say it again now, the purpose of these little “Get Started” posts is not to teach you Powershell but instead is meant to give you the foundations for moving forward with your own scripting.  There are far better tutorials out there and I encourage you to seek them out if that’s what you need.  Here I just want to get you started.  From the past couple of days we’ve learned 4 key cmdlet’s and methods to help us discover Powershell by asking Powershell.  With this post I want to talk about the most common method of creating a loop and branching your code given a particular condition.

Continue reading

September 26, 2012 Posted by | Powershell - Getting Started | , , | 2 Comments