Practical Windows PowerShell Scripting, 2nd Edition

Video description

12+ Hours of Video Instruction

Fully updated! Decipher PowerShell code and automate administrative tasks with minimal effort.


PowerShell can help you automate a variety of tasks from Windows Server management to rich reporting, to building full blown, graphical applications. But learning PowerShell can be intimidating; its not intuitive and alias use can make code difficult to read.

In this video, Microsoft MVP Brien Posey helps you learn PowerShell with minimal effort. He writes code that is easy to follow and easy to read. He takes time to explain and demo each step and talks you through PowerShells quirks.

This fully updated edition of the bestselling Practical Windows PowerShell Scripting LiveLessons video includes the latest tools such as PowerShell 7 pipeline parallelization, Windows 11 Terminal, and Windows Server 2022. Start by building practical PowerShell scripts that help you manage day-to-day tasks, and then see how take advantage of more advanced features.

About the Instructor

Brien Posey is a 15 time Microsoft MVP and has worked in IT for more than 20 years. He spent the last 15 years working as a freelance technology author and speaker. Previously, Posey worked as a CIO for a national chain of hospitals and healthcare facilities. Past experience includes working as a network engineer for the United States Department of Defense at Fort Knox and as a network administrator for some of the largest insurance companies in America. Brien has also spent the last two years training as a Scientist-Astronaut candidate and continues to pursue this area of interest. Other LiveLessons videos from Brien Posey include, Practical Windows PowerShell Scripting; Microsoft Exchange Server 2016; Building, Managing, and Migrating Virtual Machines with Hyper-V and Azure, and most recently; PowerShell for Business Intelligence and Big Data Analytics.

Skill Level

  • All levels
Learn How To
  • Decipher PowerShell Syntax
  • Work with PowerShell Cmdlets
  • Enhance your PowerShell scripts
  • Interact with Active Directory
  • Automate scripts
  • Create and format reports
  • Import data into charts
  • Establish remote sessions
  • Build your own GUI
  • Use advanced features such as pipeline chain operators and parallelization
Who Should Take This Course
  • This video course is ideal for admins or developers who wants to learn PowerShell and advance their understanding of basic or advanced PowerShell techniques.
Course Requirements
  • A basic understanding of Windows
Lesson Descriptions

Lesson 1 introduces PowerShell. Its intended primarily for those who are just getting started with PowerShell.

Lesson 2 focuses on PowerShell basics, including fundamental concepts such as variables, objects, attributes, and error messages.

Lesson 3 begins to talk about basic scripting, including how to build a PowerShell script, configuring the script execution policy, creating a function, silencing errors, operators, and authentication.

Lesson 4 shows you how to enhance scripts. Learn how to pass a variable to a function, create loops, and integrate with Microsoft .NET. You also learn about if-then-else statements and switch statements.

Lesson 5 covers interacting with Active Directory. Learn how to query the Active Directory, create and modify user accounts, and work with AD groups.

Lesson 6 delves into PowerShell as a management tool. Learn how to make a script run automatically, generate alerts and e-mail messages from a script, and management best practices.

Lesson 7 explains how to use PowerShell for reporting, including creating CSV, text, and HTML files.

Lesson 8 dives into graphical reporting with PowerShell. It also explains how to create simple charts, change the chart type, and import data into the chart.

Lesson 9 shows you how to establish a remote session, run cmdlet on a remote session, and collect data.

Lesson 10 demonstrates how to build your own GUI, including adding text boxes, creating buttons, and working with drop-down lists.

Lesson 11 concludes the video course by presenting advanced features of PowerShell, including ternary operators, pipeline chain operators, null condition operators, and pipeline parallelization.

About Pearson Video Training

Pearson publishes expert-led video tutorials covering a wide selection of technology topics designed to teach you the skills you need to succeed. These professional and personal technology videos feature world-leading author instructors published by your trusted technology brands: Addison-Wesley, Cisco Press, Pearson IT Certification, Sams, and Que. Topics include: IT Certification, Network Security, Cisco Technology, Programming, Web Development, Mobile Development, and more. Learn more about Pearson Video training at

Table of contents

  1. Introduction
    1. Practical Windows PowerShell Scripting: Introduction
  2. Lesson 1: PowerShell Basics
    1. Learning objectives
    2. 1.1 What is PowerShell
    3. 1.2 The Windows Command Line Interfaces
    4. 1.3 Basic PowerShell Syntax
    5. 1.4 Getting Help
    6. 1.5 Predicting a Command's Behavior
    7. 1.6 Dealing with a Term Not Recognized Error
  3. Lesson 2: Working with PowerShell Cmdlets
    1. Learning objectives
    2. 2.1 Commonly Used Cmdlets
    3. 2.2 Objects and Attributes
    4. 2.3 Working with Variables, Arrays, and Hash Tables
    5. 2.4 An Introduction to Modules
    6. 2.5 Making Sense of Error Messages
    7. 2.6 Custom Error Message
  4. Lesson 3: Basic Scripting
    1. Learning objectives
    2. 3.1 Building a PowerShell Script
    3. 3.2 Configuring the Script Execution Policy
    4. 3.3 Creating a Function
    5. 3.4 Silencing Errors
    6. 3.5 Mathematical Operators
    7. 3.6 Comparison Operators
    8. 3.7 Assignment Operators
    9. 3.8 Logical Operators
    10. 3.9 Interactive Authentication
    11. 3.10 Automatic Authentication
  5. Lesson 4: Enhancing Your Scripts
    1. Learning objectives
    2. 4.1 Passing a variable to a function
    3. 4.2 Global Variables and Local Variables
    4. 4.3 Creating Loops
    5. 4.4 Creating a Progress Bar
    6. 4.5 Switch Statements
    7. 4.6 Sorting PowerShell Output
    8. 4.7 Building Modules and Stand-Alone Functions
  6. Lesson 5: Script Automation
    1. Learning objectives
    2. 5.1 Making a Script Run Automatically
    3. 5.2 Generating Alerts from a Script
    4. 5.3 Best Practices for PowerShell Scripting
  7. Lesson 6: Interacting with the Active Directory
    1. Learning objectives
    2. 6.1 Querying the Active Directory
    3. 6.2 Creating User Accounts
    4. 6.3 Modifying User Accounts
    5. 6.4 Working with Active Directory Groups
  8. Lesson 7: PowerShell Remoting
    1. Learning objectives
    2. 7.1 An Introduction to Remote Sessions
    3. 7.2 Establishing a Remote Session
    4. 7.3 Running a Cmdlet on a Remote System
    5. 7.4 Collecting Data From Remote System
  9. Lesson 8: PowerShell Reporting
    1. Learning objectives
    2. 8.1 Basic Reporting
    3. 8.2 Creating a CSV File
    4. 8.3 Creating a Text File
    5. 8.4 Creating an HTML File
    6. 8.5 Adding Color and Formatting
  10. Lesson 9: Graphical Reporting
    1. Learning objectives
    2. 9.1 Creating a Simple Chart
    3. 9.2 Changing the Chart Type
    4. 9.3 Importing Data Into a Chart
  11. Lesson 10: Building Your Own GUI
    1. Learning objectives
    2. 10.1 Creating a Basic GUI
    3. 10.2 Adding Text Boxes
    4. 10.3 Creating Buttons
    5. 10.4 Working with Drop Down Lists
  12. Lesson 11: Advanced Features
    1. Learning objectives
    2. 11.1 Installing PowerShell 7
    3. 11.2 Ternary Operators
    4. 11.3 Pipeline Chain Operators
    5. 11.4 Null Coalescing Operators
    6. 11.5 Pipeline Parallelization
  13. Summary
    1. Practical Windows PowerShell Scripting: Summary

Product information

  • Title: Practical Windows PowerShell Scripting, 2nd Edition
  • Author(s): Brien Posey
  • Release date: April 2022
  • Publisher(s): Pearson
  • ISBN: 0137905254