Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Reusing PowerShell Code—What is Best?

Summary: In this Weekend Scripter blog, Microsoft Scripting Guy, Ed Wilson, discusses considerations for code reuse. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, is here. It has been really fun these past few weeks reviewing all of the scripts that were submitted for the 2011 Scripting Games. One of the questions I have seen crop up ...

Write PowerShell Functions That Accept Pipelined Input

Summary: Learn how to write Windows PowerShell functions that accept pipelined input.   (image) Hey, Scripting Guy! I really like the way that some Windows PowerShell cmdlets enable me to pipeline things to it. I do not understand why some Windows PowerShell cmdlets do not allow me to pipeline stuff to it, or perhaps I am doing it wrong...

The Function of PowerShell Functions

   Summary: In this how to article, Microsoft Scripting Guy Ed Wilson discusses design considerations for Windows PowerShell functions.   (image) Hey, Scripting Guy! I am trying to decide how to configure my Windows PowerShell function. I have heard that functions should return objects, but I am thinking that it would be better ...