PowerShell Team

Automating the world one-liner at a time…

-ErrorAction and -ErrorVariable

Let me take a minute to tell you about 2 of my favorite things in Windows PowerShell:  -ErrorAction and –ErrorVariable You may have heard me talk about being maniacal about doing a great job with error handling ... this is one the cornerstones of our architecture. Here is the background:  Cmdlets are implemented by ...

PowerShell Month Begins!!!!

Windows PowerShell Scripting Contest on TechNet ScriptCenter (Nov 1 – Dec 15 2006)   Want a chance to win one of over 150 prizes, including one of two, all-expenses paid trips to Redmond, WA to meet the Windows PowerShell team? Or maybe one of 12 Xbox 360 Core gaming machines? Or one of the dozens of prizes provided by PowerGadgets or ...

Power and Pith

In our newsgroup, Benny asked the question, “How to get subdir items with full path name?” ClaudioG64 responded: PS> get-childitem C:\ | foreach-object -process { $_.FullName } Dreeschkind replied that we had pithier ways of doing it posting: PS> gci C:\ | % { $_.FullName } It was at this point that I realized that many of you ...

Turning the dial to 11 with Custom TypeConverters

If you are the sort of bloke that likes to turn the dial to 11, you should check out Abhishek's recent blog entry on Custom TypeConverters: http://abhishek225.spaces.live.com/Blog/cns!13469C7B7CE6E911!191.entry Much of the power of Windows PowerShell comes from the type coercion capabilities of our ObjectFlow engine.  This is ...

Windows PowerShell Font Customization

Windows PowerShell Font Customization   <Today we have a guest blog entry from another team in Microsoft> There’s a new set of fonts that have been developed and released this year bundled with the betas for the new Windows and Office.  These 6 fonts are collectively called The Microsoft ClearType Font Collection.  ...

Windows PowerShell Exit Codes

Windows PowerShell Exit Codes   PSMDTAG:FAQ: How can my script control the PowerShell exit code? Answers: 1.      A normal termination will set the exitcode to 0 2.      An uncaught THROW will set the exitcode to 1 3.      The EXIT statement will stop the ...

Live Syntax Checking

Sapien PrimalScript's support for WIndows PowerShell continues to get better.  The latest addition is Live Syntax Checking.  This is particularly useful for people who are starting out with PowerShell which is basically everyone at this point.  Checkout their blog post: http://sapien.eponym.com/blog/_archives/2006/10/14/2416634....

HanselMinutes Interview

I had the pleasure to do an interview with Scott Hanselman.  If you aren't already a regular HanselMinutes listener, I can strongly recommend it.  Scott is super smart, articulate and entertaining.    BTW - if you ever have a chance to see Scott demo PowerShell - RUN DON'T WALK to the session.  He has a great way ...

Windows PowerShell in Action

Well folks, at long last, my book is almost done :-) (image) Before it goes out for print, you can get electronic copies through Manning's early access program: http://www.manning.com/payette/  The early access program is a chance for readers to provide feedback on a book so the author can fix things.  As Jeffrey says - enjoy...