PowerShell Team
Automating the world one-liner at a time…
Latest posts
Online PowerShell Training
Sapien is considering offering PowerShell Training online. They have a survey asking about potential ways to deliver the training. Complete the survey and you'll be entered into a contest to win a free slot in their first training session. The contest ends in 2 weeks. You can get more details HERE and take the survey HERE. Enjoy! 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...
Tab Completion
Did you realize that you can use Wildcards with our tab completion? At the very beginning of the project, we had long discussions about whether it should be "Verb-Noun" or "Noun-Verb". One of the arguments for NOUN-VERB was that it was better for tab completion. We expected a TON of nouns but only a few verbs. As such, if you type VERB-<TAB>, you'd see a ton of things to choose from. Alternatively, if you typed NOUN-<TAB>, you'd only see the VERBS that apply to that noun. That wasn't a good enough reason to go NOUN-VERB. In the end, we w...
Lightweight Performance Testing with PowerShell
When you write a script, a few possible concerns may be going through your mind: · Does my Script do what I want it to? · Can the script be read and understood by other people? · Is the script efficient? The answers to one and two can be very subjective, so today I’ll help you figure out how to make your script efficient. More precisely, I will help you to figure out the most efficient of a few different ways you can do something in Powershell. ...
On Snoopy
Oisin asked, "What's with the Snoopy obsession?". To me, the Snoopy dance represents a state pure, unalloyed joy to which the only sensible response is a silly dance. In case you missed it: SNOOPY DANCE! 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
Just when you thought it was safe to surf the internet….
A few weeks ago I posted a blog about Ye110beard's blog that had reworked the lyrics to AC/DC's "Highway to Hell" to be a tribute to PowerShell. I closed with the statement, "I'm looking forward to the video!". I THINK I CREATED A MONSTER...... :-) http://ca.youtube.com/watch?v=MWWzrp3xkYY I believe that this video closes the book on the 2 great mysteries of life that have vexed me for years: Jeffrey Snover [MSFT] Windows Management Partner Architect Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell Visi...
PowerShell gets Redmond Magazine 2008 Editor's Choice Award
PowerShell continues to win awards with Redmond Magazine’s 2008 Editor’s “Slickest Time Saving Tool” co-winner to go along with PS’s Best of Tech-Ed Attendees award and Best of Tech-Ed Client awards. I said it before, I'll say it again: This train keeps gathering steam! SNOOPY DANCE! 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
Block Comments
<Update 01/04/2012: This post was written in 2008, when PowerShell was in version 1. Block comments were introduced in Version 2.> One of the raging debates that have had within the team is the issue of whether to support block comments. In PowerShell, we have the comment character # e.g. # This is a test get-Process -Name LSASS # you can put a comment at the end of a line too There are times when you have a large set of lines that you need to comment out (e.g. code in progress, cutting out code to test something, function headers, etc). Some believe that we should support a block c...
Format-XML
Have you ever had an XML file that looks like crap? The problem is that XML is sorta the data encoding equivalent of Shimmer - sometimes its an encoding for programs and sometimes its an encoding for users. Our PowerShell MVP Brandon Shell pointed out that the output of Export-CLIXML looked like cra.... errrrrr .... well let's just say that was "programmer oriented". :-) Its true, we were thinking about programs consuming our XML not users. You'll find lots of XML like that in the world (one reason is that it saves a ton of space by eliminating whitespaces). So if you ever have a file lik...
Managing Remote WebSphere MQ via PowerShell/Should CMDLETS do their own Remoting?
Dale Lane of IBM announced that the latest version of the IBM PowerShell Library for WebSphere MQ now supports administering remote queue managers. You can read the details and see a couple of examples HERE. Kudos to Dale and that team! What this allows you to perform operations on multiple remote queue managers. Some of you might ask, "Why not just wait and let PowerShell V2 do the remoting for you?". I wanted to address that issue in this blog. First lets start with the conclusion: It is perfectly fine for Cmdlets to do their own remoting! So let's lay it out.&#...