Skip to Content
PowerShell Fundamentals
book

PowerShell Fundamentals

by Chris Dent
September 2026
Beginner
318 pages
6h 10m
English
Packt Publishing

Overview

Build a strong PowerShell foundation by learning command discovery, modules, variables, objects, pipelines, operators, conditional statements, and loops, with clear examples that prepare you to start scripting and automating everyday tasks

Key Features

  • Build a solid PowerShell foundation through commands, modules, variables, objects, and operators
  • Learn to work effectively with the PowerShell pipeline and object-based output
  • Write practical logic using comparisons, conditions, switch statements, and loops

Book Description

PowerShell Fundamentals provides a clear, structured introduction to the core concepts you need to start using PowerShell confidently. Designed for readers with little or no PowerShell experience, the book begins with the command line, editors, the help system, command discovery, parameters, providers, profiles, and other essential features.

You will then learn how to discover, install, and use modules and repositories before working with variables, arrays, hashtables, and ordered collections. The book explains PowerShell's object-based approach and shows how to use pipelines, inspect object members, filter and enumerate data, select and sort results, group and measure information, compare objects, and import, export, convert, and format data.

The final chapters build your scripting foundation with PowerShell operators, conditional statements, switch statements, and loops. By the end, you will understand the fundamental language constructs and data-handling techniques needed to read commands, combine them effectively, and begin creating useful PowerShell scripts and automation workflows.

What you will learn

  • Navigate PowerShell and use its help and command-discovery features
  • Find, install, and use PowerShell modules
  • Create and manage variables, arrays, and hashtables
  • Work with objects, pipelines, filtering, sorting, and formatting
  • Use arithmetic, comparison, logical, assignment, and other operators
  • Build decision-making logic with if, elseif, else, and switch
  • Automate repetitive logic using PowerShell loops
  • Use break and continue to control script execution

Who this book is for

This book is for aspiring system administrators, IT professionals, developers, students, and complete beginners who want to learn PowerShell from the ground up. It introduces the PowerShell command line and help system before progressing through modules, variables, arrays, hashtables, objects, operators, conditional statements, and loops. Basic familiarity with operating systems is helpful, but no prior PowerShell experience is required.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Practical Automation with PowerShell

Practical Automation with PowerShell

Matthew Dowst

Publisher Resources

ISBN: 9781808761393