PowerShell Team

Automating the world one-liner at a time…

Extended Types and Types.XSD

I'd like to draw your attention to a really important blog entry that Jim Truher recently made: PowerShell Extended Types (Includes a TYPES.XSD). In that entry, he talks about how powerful PowerShell's extended type system is. He is absolutely correct on this point, this is an incredibly important and powerful feature of the system that not ...

Time till we land …

<Today we have a guest blog entry from Ed Wilson – Author of the upcoming MSPRESS book, Microsoft Windows PowerShell Step By Step> <2/16 fixed a bug pointed out by Richard Siddaway [use TotalMinutes instead of Minutes for the out-gauge].  Thanks Richard! -jps> I was on my way to Ottawa this week, and working on a few ...

Why isn’t “New-Object” aliased to “New”

Alistair Young made a Note to Self : In a standard PowerShell installation, "new" is not an alias for "new-object". You added that. You should therefore know better that to make this kind of dumbass mistake. We talked about making "New" an alias to "New-Object" but decided against it in the end because it leaves open the door for us to provide...

Admin Development Model in Action

Ken Taylor has a PowerShell blog over on LiveSpaces. Today he posted a blog entry, Enabling RDP with PowerShell, that had me jumping for joy as a perfect example of the Admin Development Model in action. The whole point of the admin development model is that you use tools to quickly investigate the system and manage it. Ken needed to ...

Leveraging PowerShell Semantics to do More with Less

Brad Wilson – the .NET Guy recently posted a set of scripts showing how to drive TortoiseSVN from PowerShell. I thought I would use one of these to highlight how you can leverage the PowerShell semantics to do more with less code. PowerShell is provides Shell semantics and sometimes allows you to ask for more formal, programming, semantics...

“Windows PowerShell in Action” has been released…

Since a lot of people have been asking about it, yes - my book "Windows PowerShell in Action" is finally in stock and available on-line from http://amazon.com , http://www.barnesandnoble.com/ as well as directly from the publisher http://manning.com/powershell . It should be available in the store at Barnes and Noble and Borders later this ...

Execution Policy and Vista

Some of you may be getting an error when trying to set the execution policy on a new install of Windows PowerShell in Vista:  PS C:\Users\leonard> Set-ExecutionPolicy unrestrictedSet-ExecutionPolicy : Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell' is denied.At line:1 char:...

It’s All about Economics

There is a cool blog over on Windows Live Spaces called PowerShell for Testers. This has a bunch of great technical meat around script testing and testing using scripts. The most recent entry is on Lowering the Cost of Test Automation which makes the case the PowerShell excels at lowering the cost of test automation. I'm very pleased to see...

Port 25 interview with Bruce Payette

Port 25 recently interviewed Bruce Payette. Bruce is one of the founding members of the team, is the development lead responsible for the PowerShell language, and is the author if the soon to be released PowerShell in Action from Manning Press. I think you'll find this interview very worthwhile. Check it out at: http://port25.technet.com/...

PowerShell Tip: How to “shift” arrays…

It's fairly common in scripts to extract the first element out of an array then "shift" the remaining elements. Perl has a special shift operator for doing this as do many of the UNIX shells. PowerShell, however, doesn't have a shift operator built-in. So how do we shift arrays in PowerShell? Well – we could do it the brute force way and ...