Powershell – My Long Lost Friend

Unless you’ve been in the dark ages for the past two years, you might just have heard about a little system that a “few guys” at Microsoft wrote called Powershell.

Powershell.  Automatically you sit back and pause. 

“Cool sounding name.  That’s it?”

Powershell, for the uninitiated is a scripting language.  No it’s a prettier command prompt.  It’s management system.  It’s more!  It’s less.

“Taste Great! Less Filling! Taste Great! Less Filling!”

So who’s right?

Interestingly enough; you all are.  

If you’re a developer, there’s an amazing amount of things you can work with from a text based level in very little  work.  (Or more if you like)

Or you can just do a dir.

The reason Powershell is picking up such a huge following is that it can fit so many hats so easily.   You CAN be a developer and love Powershell (It works with .NET natively), you can be a Windows Scripting guru and love Powershell (You may find more often than not what took pages of code now can take lines)

Or you can just be a Network Administrator trying to import a list of Users in Active Directory.  With the aid of the freely downloadable Quest Active Directory CommandLets.

And without a course in C programming, you CAN script!  Without a computer science degree, you CAN code!

And the beautiful part of working in Powershell is because it uses the same setup for almost anything, it’s portable between systems.

How would you like to be able to automatically purge all .TMP files sitting on a computer older than a certain date on a hard drive?

That’s one line in Powershell.

ONE LINE!

And not difficult to do either.

It’s a simple “very-noun” syntax for the commands that can easily pipe into other commands amongst multiple levels.

As I sang before, “It’s so easy, and it’s free…”

You can download it from Microsoft for free.  In the newer operating sytems (Server 2008 and Vista SP1) it’s a built in Component that can be added on.  In future releases of Windows (Windows 7 and Server 2008 R2) it replaces the command prompt.

Follow my path as I begin to learn Powershell a little more.  The books I have for reference are Powerscripting by Bruce Payette and the Step by Step series from Microsoft.   There are other books.  There are excellent resources like powerscripting.net

There is a huge online community built just by enthusiasts.  The resources are easily and readily accessible.

Powershell.

Search for it, it WILL change your life for the better.

Leave a Reply