Skip to content

CarolineChiari/lets-learn-PowerShell

Repository files navigation

Let's Learn PowerShell

✅ = Lesson Completed

Introduction

The goal of this repository is to give you examples and lessons for learning PowerShell.

Warning

Even though this is common sense, I need to put it in there:

Do not run any code from the internet that you do not understand! Always read the code before running it.

Prerequisites and useful resources

The lessons in here are all based on PowerShell 7, and using VSCode as the editor. You can download them here:

Installing PowerShell

Installing VSCode

PowerShell in VSCode

PowerShell official documentation

PowerShell About Topics: Those articles are great for learning about specific topics in PowerShell which are not necessarily cmdlets or modules.

The basics

✅ Cmdlets

Cmdlets (pronounces 'command lets') are commands in PowerShell used to run actions.

Lesson Code

✅ Variables

Variables are a way to store information so that it can be used later.

Lesson

✅ Strings

Strings deserve their own section because they are usually used for storing data and giving the user feedback. That's why it's important to learn how to form strings.

Lesson

✅ Arrays

Arrays are a collection of values, it allows you to store multiple values in one object. Think of it as a list for your groceries, the piece of paper is the array and each item is a element of the array.

Lesson

✅ Hashtables

Hashtables are a data structure that allows you to store data similar to an array except it is stored in key/value pairs.

Lesson

✅ Loops

Loops are one of the best parts of programming. It allows you to do the same thing over and over again without having to writing the same thing over and over again.

Lesson

✅ Conditionals

When you write code, you often have to handle different scenarios, that's where conditional statements come in.

Lesson

✅ Functions

If you have to perform the same actions over and over again and every time it takes a few lines of code to do it, then functions are your friend!

Lesson

✅ (Optional) Aliases

Aliases are a shortened way to invoke cmdlets and other PowerShell entities. They are not considered best practice and should be avoided as much as possible. They are only in this lesson plan because some people do use them and it can be useful for you to know them. There will be no lesson about them, but feel free to read the documentation about them:

Documentation

A little more advanced

Pipes

Advanced functions

Start-job

Workflows

Azure

Azure CLI

ARM templates

Azure Functions

Azure Automation

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published