PowerShell Team

Automating the world one-liner at a time…

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

Adding elements to XML objects with Windows PowerShell

While it’s very easy to load and view the content of XML documents how do you add new elements? Here’s how: Let’s create a simple XML document, one parent node with two children: PS> [xml]$x = “<top> <first>first child</first> <second>second child</second>    </top>” PS> $x....

Windows PowerShell RC2 FAQs

Since the release of Windows PowerShell RC2, we've been receiving many questions around some of the changes from previous versions of PowerShell to RC2. To help clear up and confusion, I've taken the most common questions I've been hearing and have answered each below. Q: Which platforms are supported for PowerShell RC2?   PowerShell RC2 ...

Linking against RC2

The RC2 SDK is not yet available.  Until it is, here is a quick and dirty way for you to find/extract the DLLs to link your code against.  Do this from a RC2 shell and you'll a copy of the DLLS in C:\SDK:   PS>[appdomain]::currentdomain.getassemblies() | where {($_.fullname -match "system.management") -OR ($_.fullname –...

Windows PowerShell RC2 Now Available

Windows PowerShell RC2 Now Available Today Microsoft announced the availability of Microsoft Windows PowerShell RC2, the command line shell and scripting language that helps IT Professionals achieve greater productivity and control of system administration. Using a new admin-focused scripting language and consistent syntax and utilities...

Windows PowerShell ISV/Developer Conference – Oct 9-10th, 2006

Windows PowerShell ISV/Developer Conference – Oct 9-10th, 2006   We have a small number of available slots available for ISVs or Enterprise Developers to attend the Windows PowerShell & Microsoft Management Console (MMC) ISV Workshop (Building Next Generation Command Line and GUI Applications on Windows) on October 9th & 10th, ...