July 2011
Intermediate to advanced
480 pages
11h 54m
English
Like many other scripting and programming languages, Windows PowerShell allows you to work with arrays and hash tables. An array is a collection of values that can be stored in a single object. A hash table is also known as an associative array, and is a dictionary that stores a set of key-value pairs. You'll need to have a good grasp of arrays so that you can effectively manage objects in bulk and gain maximum efficiency in the shell. In this recipe, we'll take a look at how we can use both types of arrays to store and retrieve data.
You can initialize an array that stores a set of items by assigning multiple values to a variable. All you need to do is separate each value with a comma. The following ...
Read now
Unlock full access