News

Indexing Arrays Indexing refers to accessing the individual items in an array. In PowerShell, the index numbers start at 0, meaning that the first item in the array has an index of 0, the second item ...
PowerShell, like other programming languages, has different object types. These types are a way to define a kind of schema for how each object behaves. A few common types you may have heard of are ...
An array is a data structure that's designed to store a collection of items. The items can be the same type or different types. Beginning in Windows PowerShell 3.0, a collection of zero or one object ...
I was going nuts trying to sort an array into a random order. I was hoping for something in PowerShell that would be along the lines of Shuffle() in PHP or Ruby. Thankfully I figured out the easiest ...
The Select-Object cmdlet selects specified properties of an object or set of objects. It can also select unique objects, a specified number of objects, or objects in a specified position in an array.
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 ...
I use Powershell's "custom-object" command to create custom objects with properties I want to save. But custom-object applies only to one variable. Is it possible to create a custom class, like in ...