Write your first PowerShell code

Beginner
Developer
Student
.NET

In this module, you begin learning the basics of programming by writing and running code in PowerShell.

Learning objectives

After you complete this module, you'll be able to:

  • Manage PowerShell inputs and outputs.
  • Diagnose errors when you type code incorrectly.
  • Identify PowerShell elements such as cmdlets, parameters, inputs, and outputs.

Prerequisites

Important

To complete the optional exercises in this module, you need to use your own subscription, which might incur charges. If you want to follow along, you can use a trial subscription or a subscription that you already have access to.