Powershell 3.0 – drool
Okay, so if you live under a rock and haven’t heard, the CTP for the Windows Management Framework 3.0 has been released by Microsoft (http://www.microsoft.com/download/en/details.aspx?id=27548).
I know, you are probably thinking “Big Deal!!” another Community Tech Preview. Not so fast there… THIS CTP includes Powershell 3.0!
Let me restate: “THIS CTP INCLUDES POWERSHELL 3.0!”
What I hope to do is post more as I begin to learn about what is new, what is cool, what is fresh, etc.
A little story about me and Powershell 3.0 ….
When I found out about the Windows 8 – Developer Preview, I wasn’t excited about the new interface, the new look of familiar applications… no. After I found out how to actually get to a command prompt, my first thing was to run Powershell and do a:
$host.version
To my UTTER DELIGHT, I saw the number “3″ in the output. My colleagues, of course, we interested in why I was ooo-ing and ahhh-ing.. then they saw that I was sitting at a Powershell prompt (of course) and the “geek”, “nerd”, and “dork” comments began.
Anyway, needless to say, I soon discovered I could install Powershell 3 on my Windows 7, SP1 laptop at home so I prompty did so upon arriving home from work.
Wow…that was a longer little story than I was expecting.
The bottom line is that I finally have it installed and have begun playing with it and I am a TOTAL GEEK.
——————————
One of the things I was afraid of was losing my Powershell 2.0 installation, yet I had read that they could co-exist. Well, seeing is believing, and I am a believer now.
Launching “powershell.exe” from a command line, by default, will open up version 3.
Launching “powershell.exe -version 2″ from a command line will bring up version 2.
Yes, it really is that simple.
Upon a cursory glance at the cmdlets available I notice that there are many more geared toward command line management of the system and features.
get-controlpanelitem
show-controlpanelitem “Display”
get-counter
new-webbinding
Also there is a cmdlet that helps you explore all of the cmdlets available via a GUI:
show-command
I have, literally, been playing with the new powershell for about an hour, so stay tuned for more updates on this.
Please, everyone, go grab it, kick the tires, run it through its paces, and poke it with a stick.
As always, happy scripting and have a good time discovering Powershell 3.0.
— Mark