Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Construct Effective Powershell Commands with the Pipeline
Role Play
Rating: 4.4 out of 5(20 ratings)
5,219 students

Construct Effective Powershell Commands with the Pipeline

Master the PowerShell pipeline: select, sort, measure, filter and export objects and pass data by value and by property
Created byVitalii Shumylo
Last updated 11/2026
English
English [Auto],

What you'll learn

  • Understand how the pipeline works and what travels through it
  • Select, sort and measure objects
  • Filter objects out of the pipeline early, so commands run faster
  • Enumerate objects in the pipeline and work with each one
  • Pass data in the pipeline by value and learn when that works
  • Pass data by property name, and see why a command sometimes needs help to bind its parameters
  • Test yourself with two practice tests

Course content

1 section • 34 lectures • 2h 12m total length
  • Part 10:59

    Explore the pipeline in Windows PowerShell, including selecting and measuring objects, filtering and enumerating objects, and understanding why the pipeline is a key functional component.

  • Part 20:40

    Describe the windows power shell pipeline and basic techniques for running multiple commands. Explain pipeline output, object members, and potential issues when commands yield multiple object types.

  • Part 31:50

    Create and execute pipelines in PowerShell by chaining one or more commands with vertical bars, passing output from left to right, and using extended prompt mode for multi-line commands.

  • Part 41:23

    Learn how to combine commands in a PowerShell pipeline, piping Get-Service output to Out-File, and use the greater-than redirection to write results to a text file named service_list.txt.

  • Part 52:05

    Explore how Windows PowerShell uses object outputs and the pipeline to filter service objects by properties like name, display name, and status, avoiding text parsing in text-based shells.

  • Part 62:36

    Discover how PowerShell describes object properties, methods, and events, and reveal them with get member, including piping commands like get service to get member and using the gm alias.

  • Part 71:42

    Explore constructing PowerShell pipelines by inspecting outputs with get-member, listing services and processes with get-service and get-process, using out-gridview for grid view, and viewing recent security event logs with get-eventlog.

  • Part 81:40

    Discover how the PowerShell pipeline can return multiple object kinds, such as files and directories from Get-ChildItem, and how differing properties like Length affect filtering and using Get-Member.

  • Part 10:31

    Learn to manipulate objects in the PowerShell pipeline by sorting, selecting, and measuring properties, displaying subsets, and creating custom properties for tailored object displays.

  • Part 210:15

    Master sorting, measuring, and selecting PowerShell objects with sort-object, measure-object, and select-object. Learn to sort by multiple properties, control case, and display chosen properties for precise output.

  • Part 38:01

    Explore how to create calculated properties in PowerShell using hash tables with label, name, and expression keys, and display customized output with Select-Object and formatting.

  • Part 43:06

    Learn to build effective PowerShell commands with the pipeline to display the current date, installed hotfixes, firewall rules, network neighbors, and DNS client cache for actionable reports.

  • Part 54:26

    Execute PowerShell commands to extract system information and configurations. Learn to display the current day of the year with Get-Date, view hotfixes, firewall rules, network neighbors, and DNS cache.

  • Section Quiz: Selecting, Sorting, and Measuring Objects
  • Part 10:32

    Explore Windows built-in features for converting data between formats and moving data to and from external storage. Understand object conversion, directing command output to a file, and handling errors.

  • Part 28:45

    Convert pipeline objects to various data representations using convert to, export, and out-file in Windows PowerShell, and learn two-step versus single-step workflows for data output.

  • Part 35:04

    Learn how PowerShell imports data from external storage, converts it into objects in a pipeline, and uses sort and select to manipulate the results, distinguishing import from get-content.

  • Part 45:16

    Learn to convert management information into multiple data formats using PowerShell pipelines, exporting objects to text, HTML, and delimited files, and importing data from these sources.

  • Part 55:53

    Learn to convert management information into formats for others using PowerShell pipelines, with commands like get-process, sort, select, convertto-csv, and export to create reports.

  • Quiz: Converting, Exporting and Importing Data
  • Part 10:44

    Learn to filter objects in the Windows PowerShell pipeline using basic and advanced syntax, compare with select-object, list major comparison operators, and optimize filtering performance.

  • Part 25:40

    Explore filtering objects with the PowerShell pipeline using Where-Object and comparison operators (equal, not equal, greater than, less than, like), including case sensitivity and wildcards.

  • Part 311:00

    Master PowerShell pipeline filtering by crafting where-object scripts, applying multi-criteria comparisons, and optimizing performance by filtering early and choosing efficient syntax.

  • Section Quiz: Filtering Objects Out of the Pipeline
  • Part 10:43

    Explore how to enumerate objects in the pipeline and how Windows PowerShell processes them from one command to another, plus the two techniques it uses to craft complex command lines.

  • Part 20:32

    Learn to enumerate objects in the PowerShell pipeline, work with one object at a time, and explain the purpose of enumeration using basic and advanced syntax.

  • Part 38:47

    Learn how to enumerate objects in a PowerShell pipeline using foreach-object, apply methods or properties, and use basic and advanced syntax with script blocks and the range operator.

  • Part 42:54

    Perform level 1 tasks using the PowerShell pipeline to enumerate certificates and their key algorithms, generate random numbers and names, work with WMI objects, and restart the computer if needed.

  • Part 52:34

    Learn PowerShell pipeline techniques to display installed certificate key algorithms, enumerate WMI object members, and generate random numbers with Get-Random, including reboot methods.

  • Section Quiz: Enumerating Objects in the Pipeline
  • Part 10:46

    Explain the first shell pipeline technique, how commands receive input, which parameters accept input, and how to override the pipeline with manual parameters or use parenthetical commands.

  • Part 26:36

    Learn how Windows PowerShell commands receive input through the pipeline using by value, or by name, and how the shell binds pipeline objects to the most specific parameter types.

  • Part 35:02

    Learn how pipeline input binds to PowerShell command parameters and what happens when the input cannot be bound because a parameter is already used manually, using receptacle commands and parentheses.

  • Section Quiz: Passing Data in the Pipeline by Value
  • Part 25:03

    Explore pipeline input by property name in PowerShell, map object properties to parameters, and use help to identify compatible inputs. Demonstrate creating users from comma-separated data by piping to New-User.

  • Part 36:35

    Use the PowerShell pipeline to pass the expanded name property of each computer to a command like Get-Service, enabling domain-wide service checks.

  • New Starters From a Spreadsheet: Bulk Accounts With the Pipeline
  • Part 45:49

    Predict and control data flow in Windows PowerShell pipeline, practice writing commands, review pipeline input behavior, and troubleshoot services, remote queries, and startup settings across domain computers.

  • Part 54:44

    Learn to use the PowerShell pipeline to query services across every computer in the domain, validate command behavior, and handle pipeline input with Get-WMIObject, Get-Content, and Restart-Computer.

  • The Monday Report: From Clicking to One Pipeline
  • Section Quiz: Passing Data in the Pipeline by Property
  • Build a Server Health Report with PowerShell Pipelines
  • Test 1
  • Practice Test 2: PowerShell Pipeline Commands
  • Bonus Lecture: What to Learn Next0:15

Requirements

  • General familiarity with Windows and server administration
  • Ability to open PowerShell and run a simple command
  • Some earlier experience with cmdlets is helpful

Description

The pipeline is what makes PowerShell different from every other shell: it passes objects, not just text. Once you understand how, long one-liners start working the first time. This course explains the pipeline step by step, with short parts that each answer one question.

How the course works

Each part is a short lecture that shows the commands live, so you can pause, copy the idea and run it on your own machine. The practice tests at the end let you check that the ideas have stuck before you apply them at work.

Inside the course

The course is organised into these sections: Understanding the Pipeline; Selecting, Sorting, and Measuring Objects; Filtering Objects Out of the Pipeline; Enumerating Objects in the Pipeline; Passing Data in the Pipeline by Value; Passing Data in the Pipeline by Property.

A practical example

A typical scenario: you need a list of the largest items on a server, sorted and exported for a colleague. With the pipeline this is one chain of commands, and the lectures show how each link passes its objects on to the next one.

The course runs about 2.2 hours in 34 lectures and includes two practice tests. It covers the pipeline only, and it does not teach functions, modules or advanced scripting. Because each part is short, you can watch a part, try it yourself and then move on. If you are brand new to PowerShell, a fundamentals course first will make this easier.

Who this course is for:

  • Administrators who run PowerShell commands one at a time
  • IT technicians who want to build reports from command output
  • System administrators who want shorter, faster one-liners
  • DevOps technicians preparing to write scripts