Introduction
Most administrators start working with scripts by downloading or modifying scripts that others create. Once you have a script, you need to run it. Running scripts in Windows PowerShell differs in important ways from running them at a standard command prompt. This module covers those differences and other scripting concepts.
Learning objectives
After completing this module, you'll be able to:
- Describe Windows PowerShell scripts.
- Explain how to find scripts and modify them.
- Describe how to create scripts.
- Describe the PowerShellGet module.
- Explain how to run Windows PowerShell scripts and describe the script execution policy.
- Explain how to use AppLocker to help secure Windows PowerShell scripts.
- Explain how to digitally sign scripts.
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 client device administration (Windows 10 and Windows 11)
- Windows PowerShell pipeline, PowerShell providers, and PowerShell drives
- CIM and WMI technologies
- The use of variables, arrays, and hash tables in Windows PowerShell