Microsoft PowerShell is awesome


At work I’ve been playing with Windows PowerShell.  I could try to describe it, but Wikipedia has already done a better job:



Windows PowerShell, previously Microsoft Shell or MSH (codenamed Monad) is an extensible command line interface (CLI) shell and scripting language product developed by Microsoft. The product is based on object-oriented programming and the Microsoft .NET framework.


Windows PowerShell 1.0 is available for download from the Microsoft web site.


It blows my mind how cool it is.  Unfortunately it also, uhh, fries my brain because I don’t know how to use it.  I’m a cmd.exe expert.  Seriously, I know way, way too much about writing CMD scripts, to the point where most people can’t keep up.  I don’t want this knowledge, and I see that PowerShell may give me freedom from the burden of the knowledge.

 

My biggest annoyance is that it’s not universally available.  I want to be able to sit down at any machine and just start using PowerShell, not having to worry about installing it (and the .Net Framework) first.  I want to be able to offer .PS1 scripts for anyone to use, without them having to jump through the same hoops.

 

Too bad it missed the Vista train.  That means it’ll be 10 years before it’s everywhere.  We’ll get there.

 

Comments (6)

  1. kfarmer says:

    It is indeed powerful and something to get excited about.  

    My biggest (if not only) complaint has to be the crufty feel to the language.  Waaay too much influence from the underscore-is-a-variable-name crowd.  I understand and accept the desire to make it friendlier to entrenched bsh/csh/* and cmd folks, but I’d rather fire up something more like IronPython.  Plenty of people have gone the Python route toward command-line bliss, to be sure.

  2. Kris says:

    It is awsome to see MS embracing automation (at least towards its customers and not just internally.)  The only downside I see is that you are forced to play catch up to the BSD/*nix tools that are tried and true across the other OS’s… reinventing grep, sed, find, awk, etc. is a lot of effort I would think.. the example shows URI:DownloadString, however; curl or wget are already available.  

  3. Travis says:

    Yeah man… so cool… piping objects! The web site says they hope to have a Vista drop by 1/31, so I’m holding my breath, too.

  4. MSDNArchive says:

    Kris: I’d summarize what you’re saying as "PowerShell is a 1.0 product that is still a little rough around the edges, while bash & Co. have decades of refinement".  But the good news is that PS comes with a foundation that will enable it to go much further than those other tools, and it won’t take decades.  

    Guess I’m a PowerShell fanboy. 🙂

  5. Having come up with the initial idea of Windows PowerShell and then worked on it for a (really) long

  6. At work I’ve been playing with Windows PowerShell . I could try to describe it, but Wikipedia has already done a better job: Windows PowerShell , previously Microsoft Shell or MSH ( codenamed Monad ) is an extensible command line interface (CLI) shel