CHAPTER 5Variables, Arrays, and Hashtables
This chapter covers the use of variables, arrays, and hashtables. First, we will demonstrate how to work with variables in Windows PowerShell, including creating, setting, and removing variables. We will also take a brief look at different data types. Then we will move on to using arrays and hashtables in Windows PowerShell.
Variables in Windows PowerShell
Windows PowerShell, like most other scripting languages, stores values in variables. Variables are represented by single-word text strings that begin with the dollar sign ($). Windows PowerShell supports four types of variables: user-created, automatic, preference, and environment variables.
Working with Variables
The simplest way to create a ...
Get PowerShell for Microsoft SharePoint 2010 Administrators now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.