- Let's Learn PowerShell
✅ = Lesson Completed
The goal of this repository is to give you examples and lessons for learning PowerShell.
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.
The lessons in here are all based on PowerShell 7, and using VSCode as the editor. You can download them here:
PowerShell official documentation
PowerShell About Topics: Those articles are great for learning about specific topics in PowerShell which are not necessarily cmdlets or modules.
Cmdlets (pronounces 'command lets') are commands in PowerShell used to run actions.
Variables are a way to store information so that it can be used later.
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.
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.
Hashtables are a data structure that allows you to store data similar to an array except it is stored in key/value pairs.
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.
When you write code, you often have to handle different scenarios, that's where conditional statements come in.
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!
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: