PowerShell Team

Automating the world one-liner at a time…

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 ...

Processing text, files and XML

Manning Press was generous enough to put another chapter of Bruce Payette's Book PowerShell in Action book online. Presumably you'll read it and become convinced that you must buy the book in its entirety. Whatever the motivation – we all get a great free chapter on Processing text, files and XML. I was honored to be offered the ...

Payette Podcast

Superstar Scott Hanselman interviewing superstar Bruce Payette – does it get any better? Bruce is a dev lead on PowerShell and author of Windows PowerShell in Action.  Jeffrey Snover [MSFT]Windows PowerShell/MMC ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter ...