PowerShell Beginner 7 h 52 min 40 items

PowerShell Basics

Get comfortable with PowerShell: commands, the object pipeline, variables, filtering and sorting data, scripts and functions, and importing and exporting CSV and JSON, with side by side comparisons to Bash.

About this course

Learn how PowerShell thinks, not just what to type

PowerShell is a shell and scripting language that runs on Windows, macOS and Linux. Its big idea is simple but powerful: commands pass objects to each other, not lines of text. Once that clicks, querying, filtering, reshaping and exporting data becomes a short, readable pipeline instead of a puzzle of text parsing.

This course teaches the working fundamentals. It is aimed at people who are new to PowerShell, including those who already know a little Bash and want to know what is the same and what is different. It deliberately stays away from deep Windows administration (Active Directory, the registry, remoting and so on) so you can build a solid foundation first.

What you will learn

  • Find and understand commands with Get-Command, Get-Help and Get-Member
  • Use the pipeline to pass objects between commands, and see why that differs from Bash
  • Work with variables, strings, numbers and PowerShell's comparison operators
  • Store data in arrays, hashtables and custom objects
  • Query data with Where-Object, Sort-Object, Group-Object, Measure-Object and Select-Object
  • Make decisions and loop, then package your work as scripts and functions with parameters
  • Work with files and folders, and import and export CSV and JSON
  • Handle errors with try and catch, and build a small reporting script from start to finish

How the course works

  • 8 modules of short lessons, each with examples you can type and run
  • A short check at the end of every module, with explanations for every answer. Score 70% to unlock the next module, and retake it as often as you like
  • Bash comparisons throughout, so you can map what you already know
  • A printable PowerShell and Bash cheat sheet (PDF) to keep
  • A certificate of completion when you finish

The course is free.

Syllabus

Not started: What PowerShell is Lesson
Not started: Commands: verbs, nouns and parameters Lesson
Not started: Finding commands and getting help Lesson
Not started: Aliases, navigation and familiar names Lesson
Not started: Module 1 check: Getting started Quiz

Not started: The pipeline passes objects Lesson
Not started: Exploring objects with Get-Member Lesson
Not started: Choosing properties with Select-Object Lesson
Not started: Formatting and displaying output Lesson
Not started: Module 2 check: Objects and the pipeline Quiz

Not started: Variables and types Lesson
Not started: Working with strings Lesson
Not started: Comparison and logical operators Lesson
Not started: Numbers and arithmetic Lesson
Not started: Module 3 check: Variables, strings and operators Quiz

Not started: Arrays: lists of values Lesson
Not started: Hashtables: values by name Lesson
Not started: Building your own objects Lesson
Not started: Module 4 check: Arrays, hashtables and custom objects Quiz

Not started: Practice data: a small orders file Lesson
Not started: Filtering with Where-Object Lesson
Not started: Sorting and reshaping data Lesson
Not started: Grouping and measuring Lesson
Not started: Acting on each item with ForEach-Object Lesson
Not started: Module 5 check: Querying data Quiz

Not started: Making decisions with if and switch Lesson
Not started: Repeating work with loops Lesson
Not started: Writing and running scripts Lesson
Not started: Writing your own functions Lesson
Not started: Module 6 check: Decisions, loops, scripts and functions Quiz

Not started: Working with files and folders Lesson
Not started: Reading, writing and searching text Lesson
Not started: Importing and exporting CSV Lesson
Not started: Working with JSON Lesson
Not started: Module 7 check: Files, text, CSV and JSON Quiz

Not started: Handling errors Lesson
Not started: Project: planning a sales report Lesson
Not started: Project: building the report script Lesson
Not started: Bash to PowerShell reference and next steps Lesson
Not started: Module 8 check: Errors and the final project Quiz