PowerShell Team

Automating the world one-liner at a time…

Latest posts

Oct 17, 2008
Post comments count 0
Post likes count 0

Emit-XML

PowerShell Team

I was writing a demo yesterday and needed a quick and dirty way to generate some XML so I wrote the function below.  This highlights a couple of changes that are coming up in CTP3 that I thought I would preview. 1) The keyword "cmdlet" is going away and we'll just have "function".  Notice that now you can specify the [Parameter()]  attribute on parameters.  When you do that, we treat the function like a cmdlet.2) Here-strings can now NEST!  Look at how simple the code becomes when you do this.  I think you are going to find this to be one of the mo...

Oct 14, 2008
Post comments count 0
Post likes count 0

GoGrid Snap-in – Managing Cloud Services with PowerShell

PowerShell Team

I was pleased to see Mitch Denny’s announcement and demo of a PowerShell snapin for GoGrid.  GoGrid is a cloud-based, multi-tier grid hosting service leveraging virtual machines.  The snapin is a shared source effort at CodePlex (there are now 52 PowerShell CodePlex Projects).  Very cool stuff.  What could go better together than cloud computing and PowerShell?  At the end of the day, cloud computing is about managing at scale in a lights out fashion and end-administrator self-servicing.  PowerShell is great at both of these and, as you’ll see at the PDC and our next CTP, PowerShel...

Oct 12, 2008
Post comments count 0
Post likes count 0

PowerShell at the PDC

PowerShell Team

I’m giving the following session at the PDC in LA in a couple of weeks: PowerShell: Creating Manageable Web Services Learn how to create management web services using Windows PowerShell. Topics include: how to script against of a large set of machines, how to manage raw HW devices using WS-MAN and Web Services, how to create custom "constrained environments" for scripts to run in and how to make those available to thousands of customers by writing a scalable IIS application hosting PowerShell, and how to use proxy commands.   I’ll be showing some things that have never been seen before and maki...

Sep 30, 2008
Post comments count 0
Post likes count 0

PowerShell’s Security Guiding Principles

PowerShell Team

One of most common issues we face with PowerShell comes from users or ISVs misunderstanding PowerShell’s security guiding principles. At a high-level, it seems to all make sense – execution policies help ensure that you only run scripts that you trust on your system. These protections are driven by PowerShell’s three main security features. For people that will never use PowerShell, that trust decision is made for you by way of PowerShell’s default “Restricted” execution policy. Others may want to use a verifiable identity chain as their important guiding factor, in which case the Authenticode signing certificate...

Sep 29, 2008
Post comments count 0
Post likes count 0

PowerShell and JAOO

PowerShell Team

On Saturday I arrived in Aarhus Denmark for the JAOO conference.  JAOO stands for Java And Object Oriented but it is definitely NOT a Java conference - it is a language conference with lots of .NET, Ruby, Ajax content and then just a lot of really smart people talking about software in general.  I'm honored to be invited to talk about Windows PowerShell at a language conference because it allows me to start the process of setting the record straight regarding PowerShell as a language. People parse the world according to their past experience.  What that means is that a lot of people have pu...

Sep 24, 2008
Post comments count 0
Post likes count 0

PowerShellPlus Professional Edition Ships

PowerShell Team

I’ve talked about PowerShellPlus a few times before and it was the hit of last years IT Forum talks.  Now The official version is now available from Idera at http://www.idera.com/products/PowerShell/ .  It is going to cost $145/user but they are offering introductory pricing of $79/user until Oct 1st. Cheers! Jeffrey Snover [MSFT] Windows Management Partner Architect Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

Sep 23, 2008
Post comments count 0
Post likes count 0

Free Windows PowerShell ebook (Now In Italian)

PowerShell Team

Efran Cobisi has published an Italian version of Frank Koch's very popular PowerShell ebook .  You can download the Italian version HERE or go to the Windows PowerShell Italian Community website and pick it up in the Tutorial section.  It looks like there is some great stuff there - I wish I had learned Italian. :-)  Enjoy Ciao! Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.ms...

Sep 22, 2008
Post comments count 0
Post likes count 0

Decision Input Requested: -EQ with Characters

PowerShell Team

We are struggling with whether or not to make a change in our comparison operators and would like feedback from the community. Here is the documentation about comparision operators:   All comparison operators are case-insensitive by default. To make a comparison operator case-sensitive, precede the operator name with a "c". For example, the case-sensitive version of "-eq" is "-ceq". To make the case-insensitivity explicit, precede the operator with an "i", for example, the explicitly case-insensitive version of "-eq" is "ieq". Here are examples of the current -EQ semantics: PS> "...

Sep 21, 2008
Post comments count 0
Post likes count 0

Adam Weigert Puts NetApp On a String

PowerShell Team

Adam Weigert has started a new Codeplex project PowerShell OnTap.   (That brings the total number of PowerShell-related CodePlex projects to 48!)  OnTap provides a functions to manipulate NetApp servers using the OnTAP web service APIs. I’m not a NetApp user but I was interested in what he was doing and was delighted to read his code.  It is an excellent example of PowerShell coding practices and has a number of excellent and clever techniques in it.   I LOVE Adam’s code – it is logical, clean and visually coherent.  You should view it in an editor that does syntax coloring (lik...