Posts by this author

Jun 23, 2006
Post comments count0
Post likes count0

Cleaning up obsolete Windows PowerShell Aliases

Over the course of time, I've written a number of functions & cmdlets and then created aliases for those.  Many of those where Ad Hoc and I've since thrown them away but I still have the aliases sticking around.  Here is a quick and easy way to determine the validity of your aliases gal |%{if (!(gcm $_.Definition -ea SilentlyContinue)...

ENVIRONMENT
Jun 23, 2006
Post comments count0
Post likes count0

Leveraging Windows PowerShell Type Extensions to get documentation

After just a little use of Windows PowerShell, you quickly learn that you need to pipe objects in the GET-MEMBER utility to understand the capabilities of that object.  Get-Member reflects against the object and shows you all of its methods and properties (more as well but that will be a different blog).  Get-Member is getting that inform...

FAQDOCUMENTATIONTYPEEXTENSION
Jun 23, 2006
Post comments count0
Post likes count0

Windows PowerShell documentation

I have recently noticed that a number of people have missed the fact that we have a Windows PowerShell Documenation Download (for RC1) at: http://www.microsoft.com/downloads/details.aspx?FamilyId=2B0BBFCD-0797-4083-A817-5E6A054A85C9&displaylang=en Everyone should download this document and give it a read.  I think you'll be pleasantly surp...

DOCUMENTATION
Jun 23, 2006
Post comments count0
Post likes count0

Exchange PowerShell Scripting Contest

You are one line of code away from fame and riches ... eeerrrr ... make that fame and a trip to New York.  The Exchange team is holding a scirpting contest.  Produce the coolest one line Windows PowerShell script and you can win a trip to New York to attend the Exchange 2007 launch.  Check out the details at http://www.microsoft.com/...

Jun 23, 2006
Post comments count0
Post likes count0

Flexible pipelining with ScriptBlock Parameters

PSMDTAG:FAQ: How can I pipeline data to a parameter which does not accept pipeline input?PSMDTAG:FAQ: What are ScriptBlock Parameters? One of the foundation concepts of Windows PowerShell is pipelining objects instead of text.  What happens is that when an upstream command generates an object, the PowerShell engine examines the data requiremen...

FAQPHILOSOPHYINTERNAL
Jun 21, 2006
Post comments count0
Post likes count0

More – How does PowerShell formatting really work?

<Edited 7/2/2006 with tags and categories>PSMDTAG:FAQ: Why doesn't output expand when I expand the width of the console?PSMDTAG:FAQ: Why doesn't output expand when I use -noElements on GROUP? Consider the example: PS> gps |group company Count Name              ...

FAQPHILOSOPHYINTERNAL
Jun 21, 2006
Post comments count0
Post likes count0

$ERRORVIEW="CATEGORYVIEW"

<Edited 7/2/2006 with tags and categories>PSMDTAG:FAQ: What is $ErrorView?PSMDTAG:FAQ: How do I get error details? Have you tried out $ErrorView="CategoryView" yet?  Remember -  errors are just objects.  Given that they are objects, we render a subset of their properties to the console.  We provide 2 views: Normal an...

FAQPHILOSOPHYERROR
Jun 21, 2006
Post comments count0
Post likes count0

Windows PowerShell Podcasts with Don Jones available at www.ScriptingAnswers.com

ScriptingAnswers.com has a number of scripting related podcasts at: http://feeds.feedburner.com/ScriptinganswerscomAudioNetwork I had the pleasure of discussing PowerShell with Don Jones during 2 of these.  BTW - if you are not already clued into this website, it is worth an explore.  There is lots of good scripting materials here. Don an...

Jun 19, 2006
Post comments count0
Post likes count0

Windows PowerShell: Analyst briefing with RedMonk

I recently had the pleasure to do an analyst briefing with Michael Cote' of RedMonk.  I really enjoyed it because until recently Michael was working at BMC so we had a number of shared contacts and he had a deep understanding of mgmt issues so I could have a really technically dense conversation with him.  What was humorous was that there...

Jun 16, 2006
Post comments count0
Post likes count0

Using Format Control Strings.

PSMDTAG:FAQ: How do I display large numbers with commas?PSMDTAG:FAQ: How do I use .NET formatting strings? As scripters, we often spend tons of times trying to get our data formated just the right way.  Often this is an error-prone, frustrating experience.  Windows PowerShell leverages .NET objects to make this task a ton simpler.  I...

FAQDOTNET