Packt

Mastering PowerShell Scripting

Packt

Mastering PowerShell Scripting

Included with Coursera Plus

Gain insight into a topic and learn the fundamentals.
Beginner level

Recommended experience

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Beginner level

Recommended experience

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Optimize code using functions, switches, and looping structures

  • Debug scripts and handle errors effectively

  • Work with objects, operators, and data types to manipulate information

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

May 2026

Assessments

23 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

There are 23 modules in this course

This module introduces the fundamentals of PowerShell, including its command structure, help system, and scripting environment. Learners will explore how to use specialized editors, discover and understand commands, utilize parameters and parameter sets, and streamline scripting with techniques like splatting. By the end, you'll be equipped to navigate and leverage PowerShell for system administration tasks.

What's included

1 video10 readings1 assignment

This module introduces learners to PowerShell modules and snap-ins, detailing how to manage and extend PowerShell's capabilities. You will explore how to locate, install, and update modules using tools like PowerShellGet and understand the significance of the PSModulePath environment variable.

What's included

1 video4 readings1 assignment

This module introduces the foundational concepts of working with objects in PowerShell, including properties, methods, and members. Learners will gain hands-on experience manipulating, filtering, sorting, grouping, and comparing objects, as well as importing data from CSV files. By the end, you'll be able to efficiently manage and analyze collections of objects using key PowerShell commands.

What's included

1 video9 readings1 assignment

This module introduces the wide range of operators available in PowerShell, including mathematical, comparison, array, string, bitwise, type, and conditional operators. Learners will explore how to manipulate data, perform calculations, test conditions, and control output using these operators. Practical examples and syntax explanations will help you confidently use operators in real-world scripting scenarios.

What's included

1 video10 readings1 assignment

This module introduces the fundamentals of working with variables, arrays, and Hashtables in PowerShell. Learners will explore variable management, type conversion, array manipulation, and the use of associative collections like Hashtables and Dictionaries. By the end, you'll be able to efficiently store, access, and modify data structures in PowerShell scripts.

What's included

1 video10 readings1 assignment

This module introduces the fundamental concepts of conditional statements and loops, essential tools for controlling program flow. Learners will explore how to make decisions in code, repeat actions efficiently, and manage loop execution using keywords like break and continue.

What's included

1 video4 readings1 assignment

This module introduces the foundational concepts of working with Microsoft .NET in PowerShell, including types, methods, and the use of keywords like 'using' and type accelerators. Learners will explore how to interact with .NET objects, utilize namespaces, and access both public and non-public members through reflection. By the end, you'll be equipped to leverage .NET libraries effectively within your scripts.

What's included

1 video6 readings1 assignment

This module introduces essential techniques for handling strings, numbers, and dates in PowerShell, leveraging the .NET Framework. Learners will explore methods for manipulating and converting data types, including working with arrays, Base64 encoding, and culture-specific date formats. By the end, you'll be equipped to efficiently process and transform simple data types in PowerShell scripts.

What's included

1 video7 readings1 assignment

This module introduces the fundamentals of regular expressions, including syntax, special characters, and advanced features like look-ahead and look-behind. Learners will explore how to construct, modify, and apply regex patterns for tasks such as text searching, value capturing, and data validation. Practical examples, such as matching IP addresses, help solidify understanding and application.

What's included

1 video9 readings1 assignment

This module introduces learners to managing files, folders, and the Windows Registry using PowerShell providers. You will explore how to manipulate items and their properties, configure permissions and access control lists, and manage ownership within the filesystem and registry contexts.

What's included

1 video6 readings1 assignment

This module introduces the fundamentals of Windows Management Instrumentation (WMI), including its architecture, querying with WQL, and interacting with system information and methods. Learners will explore how to retrieve and manipulate system data, manage permissions, and understand class associations within WMI using PowerShell.

What's included

1 video6 readings1 assignment

This module introduces the essential PowerShell commands and .NET classes for working with HTML, XML, and JSON data formats. Learners will explore how to parse, manipulate, and convert structured data using practical examples and built-in tools. By the end, you'll be able to efficiently handle data serialization and transformation tasks in PowerShell.

What's included

1 video7 readings1 assignment

This module explores the fundamentals of interacting with web APIs using REST and SOAP, including handling authentication with OAuth and managing SSL errors in PowerShell 7. Learners will gain practical experience making web requests, passing arguments, and working with WSDL documents for SOAP services.

What's included

1 video6 readings1 assignment

This module explores the fundamentals of PowerShell remoting, including secure remote connections, session management, and cross-platform considerations. Learners will gain practical skills in configuring encrypted remoting, managing user permissions, and troubleshooting common issues such as the double-hop problem. The module also introduces advanced concepts like Just Enough Administration for delegated access.

What's included

1 video8 readings1 assignment

This module explores how to execute PowerShell commands asynchronously, enabling you to run multiple tasks simultaneously for improved efficiency. You'll learn about jobs, runspaces, event handling, and techniques for managing variables and multiple instances in asynchronous workflows.

What's included

1 video5 readings1 assignment

This module introduces the fundamentals of building graphical user interfaces (GUIs) in PowerShell using Windows Presentation Foundation (WPF). Learners will explore layout controls, event handling, element naming, and techniques for creating responsive and interactive interfaces. Practical examples demonstrate how to arrange UI elements, handle user actions, and manage interface responsiveness.

What's included

1 video7 readings1 assignment

This module introduces the foundational elements of PowerShell scripting, including the use of scripts, functions, and script blocks. Learners will explore parameter handling, advanced function attributes, output management, and best practices for writing maintainable code. The module also covers techniques for documentation and code readability.

What's included

1 video9 readings1 assignment

This module explores advanced parameter handling in PowerShell, including validation techniques, dynamic parameters, and argument completers. Learners will discover how to control parameter input, enforce validation rules, and implement flexible parameter sets to enhance script functionality.

What's included

1 video9 readings1 assignment

This module introduces the fundamentals of creating and using classes and enumerations in PowerShell, including inheritance, interfaces, and custom validation attributes. Learners will explore how to leverage these features for more robust scripting and configuration management, including integration with Desired State Configuration (DSC). Practical examples demonstrate how to implement and utilize these advanced object-oriented concepts in real-world scenarios.

What's included

1 video9 readings1 assignment

This module introduces the fundamentals of creating, managing, and publishing PowerShell modules. Learners will explore module manifests, understand how to merge and structure module content, and practice initializing and removing modules for effective automation and code organization.

What's included

1 video6 readings1 assignment

This module introduces automated testing in PowerShell, focusing on tools and techniques such as PSScriptAnalyzer, the Abstract Syntax Tree (AST), tokenization, and the Pester testing framework. Learners will explore how to structure, execute, and iterate tests, as well as how to use mocking and module scope features to enhance test coverage and reliability.

What's included

1 video9 readings1 assignment

This module explores how PowerShell handles errors, including the distinction between terminating and non-terminating errors. Learners will discover various techniques for raising, capturing, and managing errors using parameters, variables, and control statements. By the end, you'll be equipped to diagnose and respond to unexpected conditions in your scripts.

What's included

1 video7 readings1 assignment

This module explores essential debugging techniques and troubleshooting strategies for PowerShell scripts. Learners will discover how to identify and resolve common issues related to operators, variables, and named blocks, and will gain hands-on experience using debugging tools in both the console and Visual Studio Code.

What's included

1 video6 readings1 assignment

Instructor

Packt - Course Instructors
Packt
1,763 Courses499,028 learners

Offered by

Packt

Why people choose Coursera for their career

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."
Coursera Plus

Open new doors with Coursera Plus

Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription

Advance your career with an online degree

Earn a degree from world-class universities - 100% online

Join over 3,400 global companies that choose Coursera for Business

Upskill your employees to excel in the digital economy

Frequently asked questions