PowerShell Team

Automating the world one-liner at a time…

Sorting out -GroupBy

Did you realize that Format-Table had a parameter -GroupBy?  This tells Format-Table to generate a series of tables instead of a single table.  The best way to get this in focus is to show an example.  For the purposes of this blog entry, I'm going to use the aliases GSV for Get-Service and FT for Format-Table.  Also...

2 + 2 equals "Monday Evening"

I wanted to follow up on Jeffrey's post and one of the comments.  It has to do with this example: The reason that we get a double rather than an int is because of precedence.  The conversion has a higher precedence than the division operation, so what really means is: "Convert 1 to an integer and then divide by 2", which will result...

Two plus two equals "Monday" ?

In PowerShell, two plus two does not always equal four.  Why?  Because there are twos and there are twos. Let me explain.  PowerShell does a ton of work on your behalf so you can think about what you want to do and not how to do it.  Think about the difference between an automatic transmission and a manual ...

Windows PowerShell for Testers

The PowerShell team is very much into unit testing so, when  I ran into this blog by Adam Geras today, I found it very interesting.  All its entries are on using PowerShell for testing.  I especially liked this entry on using PowerShell and Excel for data driven testing because I always love it when you can ...

"PowerShell … is there anything it CAN'T do?"

This weekend my wife was searching for some stuff and came across the following photo on Flickr : http://www.flickr.com/photos/windbag/167080724/  Apparently someone had taken a photo of the one of the slides during my TechEd talk. I just loved the comment.  This one has a fun comment as well:  http://www.flickr.com/photos/...

Yet Another Freakishly PowerFul PowerShell One-liner

MOW has done it again.  Check out  http://thepowershellguy.com/blogs/posh/archive/2007/01/06/it-is-to-me.aspx for another one of MOW's freakishly powerful PowerShell one-liners.  It is so powerful and pithy that makes my head spin.  Enjoy! Jeffrey Snover [MSFT]Windows PowerShell/MMC ArchitectVisit the Windows ...

Cliff Notes of ConvertTo-Html & Other Language Blogs

I just saw a PowerShell blog entry on spaces ( http://hung-yuwu.spaces.live.com/Blog/cns!744FB258BF8C8020!1291.entry ) but it was in a language I don't read (I think it was Japanese)*.  I thought I would check it out for yucks and was delighted to realizes that while I couldn't understand anything the blogger was saying, I could ...

Hyphens in Command Names

In my previous blog entry, I talked about how Michael Fisher had blogged his intial impressions about PowerShell. One of the things that Michael did not like was the hyphenated command names.  A discussion about the Pros/Cons of hyphens isn't actionable at this point because we've placed our bets and shipped V1.  Even if ...

Blog Your Initial PowerShell Experiences

Michael Fisher has just started using PowerShell and is blogging his impressions.  You can see them at http://fastdad.wordpress.com/2007/01/05/windows-powershell-10/ .  10,000 thanks Michael! I can't tell you how valuable we find it when people do this!  We fully expect that you are going to have to invest a few...