Scripting Blog [archived]

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

Adding Array Index Numbers to PowerShell Custom Objects

Summary: Microsoft Scripting Guy, Ed Wilson, talks about adding array index numbers to Windows PowerShell custom objects. (image)  Hey, Scripting Guy! Our software application returns arrays of information. What I need is a way to artificially add the array element number to the object that the cmdlet outputs. For example, I want to add ...