News

In PowerShell and many languages, an array is a set of items all represented by a single variable. To explain arrays and how to manage them in PowerShell, let's start with the example of a set of ...
Powershell. Using Add-member on elements in an array I’m making a new Powershell inventory script. I already have one, but I’m fiddling with the arrays to see if I can make the code a little ...
Posey's Tips & Tricks How To Use .CSV Files with PowerShell, Part 2 In the second part of this series, Brien shows how to import a .CSV file into a PowerShell array, including two methods for ...
Odds are that anyone writing a script will know the number of columns in the array that's passed. But is there a way that Powershell can get the number of columns on its own?
The += operator tells PowerShell to add the data from the current line to whatever is already in the array. You can see an example of how this works in Figure 3.