Create and run scripts by using Windows PowerShell

Intermediate
Administrator
Azure
Microsoft Entra ID
Azure Cloud Shell
Azure PowerShell
Azure Virtual Machines
Microsoft 365

This module explains how to create and run scripts.

Learning objectives

Upon completion of this module, the learner will 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.

  • Describe the script execution policy.

  • Set the script execution policy.

  • Explain how to use AppLocker to help secure Windows PowerShell scripts.

  • Explain how to digitally sign scripts.

  • Digitally sign a Windows PowerShell script.

Prerequisites

  • Familiarity with Windows networking technologies and implementation

  • Familiarity with Windows Server administration, maintenance, and troubleshooting

  • Familiarity with Windows PowerShell and its commands to perform specific tasks

  • Familiarity with PowerShell cmdlets used for system administration tasks related to Active Directory, network configuration, server administration, and Windows 10 device administration

  • Familiarity with Windows PowerShell pipeline, PowerShell providers, and PowerShell drives

  • Familiarity with CIM and WMI technologies

  • Familiarity to use variables, arrays, and hash tables in Windows PowerShell