Introduction
In this module, you'll learn about variables and some rules for how to use them. These rules help ensure that the data you store in variables is in the correct format and easily accessible. When working with variables, it's important to name them appropriately, and to assign them the correct data type.
You'll learn how to identify the properties and methods for use in your scripts. You'll also learn how to manipulate the contents of variables. Each type of variable has a unique set of properties that you can access. Each variable also has a unique set of methods that you can use to manipulate it.
Learning objectives
After completing this module, you'll be able to:
- Explain the purpose of variables and describe the naming rules for using variables.
- Explain how to assign a value to a variable.
- Describe variable types and explain how to assign a variable type.
- Identify methods and properties of variables.
- Work with strings and manipulate them.
- Work with dates and manipulate them.
Prerequisites
Familiarity with:
- Windows networking technologies and implementation
- Windows Server administration, maintenance, and troubleshooting
- Windows PowerShell and its commands to perform specific tasks
- PowerShell cmdlets used for system administration tasks related to Active Directory, network configuration, server administration, and Windows 10 device administration
- Windows PowerShell pipeline, PowerShell providers, and PowerShell drives
- CIM and WMI technologies