Overview

1 Before you begin

This opening chapter reframes how to learn PowerShell and explains why it has become essential for modern administration. The authors describe the shift from teaching scripters to teaching admins who may have no programming background, emphasizing that PowerShell is first a command-line shell that can be used productively without writing scripts. They contrast the discovery-friendly but inefficient GUI with automation’s compounding returns, note the “last mile” limitations of prior tools like VBScript, and show how Microsoft’s products now expose full administrative coverage through PowerShell—often with GUIs merely calling PowerShell behind the scenes. With broad adoption across Microsoft and beyond, PowerShell has become a foundational skill that distinguishes efficient, automation-minded administrators.

The chapter also sets expectations for cross-platform use. Since PowerShell was open-sourced, it runs on Windows, Linux, and macOS with the same object-centric model, though not all commands exist on non-Windows systems and some content remains Windows-specific. The book primarily serves administrators who run and combine commands, while still benefiting those who want to script, package tools, or develop modules. You’ll learn effective day-to-day command usage first, then progress to automating multi-step tasks, working with remoting, CIM, regular expressions, and other integrations—enough to be productive in production environments, with pointers to deeper resources when you’re ready.

Finally, the chapter explains how to use the book and get set up. Plan on one chapter per day across a month of focused, hands-on practice, with short labs and answers to reinforce skills, plus brief “Above and beyond” sidebars for curious readers. Build a safe lab environment rather than practicing in production; Windows with PowerShell 7 alongside Windows PowerShell 5.1 is recommended, and the authors suggest using a modern editor with the PowerShell extension. Non-Windows installations are supported, but certain examples rely on Windows-only features, and behavior can differ across operating systems. With a single machine (or a small set of test machines) you can complete the exercises, customize your console for readability, and verify your version before diving in.

 Being immediately effective with PowerShell

Immediately effective is a phrase we’ve made our primary goal for this entire book. As much as possible, each chapter focuses on something that you could use in a real production environment, right away. That means we sometimes gloss over some details in the beginning, but when necessary we promise to circle back and cover those details at the right time. In many cases, we had to choose between hitting you with 20 pages of theory first, or diving right in and accomplishing something without explaining all the nuances, caveats, and details. When those choices came along, we almost always chose to dive right in, with the goal of making you immediately effective. But all of those important details and nuances are still explained later in the book.

OK, that’s enough background. It’s time to start being immediately effective. Your first lunch lesson awaits.

FAQ

Do I need prior scripting or VBScript experience to learn from this book?No. The book is designed for administrators without a scripting background. Prior experience can help, but it isn’t required.
Is PowerShell primarily a scripting language or a shell?It’s a command-line shell first. PowerShell has scripting capabilities, but you don’t need to use them to get started.
Why can’t I afford to ignore PowerShell anymore?Microsoft products increasingly expose all administrative functionality through PowerShell, and many GUIs run PowerShell behind the scenes. PowerShell enables fast, consistent automation—skills that are highly valued for modern IT operations.
What did VBScript lack, and how does PowerShell address it?VBScript often failed in “the last mile” because not everything was exposed to it. PowerShell was built to provide complete, consistent administrative coverage, and it’s widely adopted across Microsoft and third-party ecosystems.
Which platforms are supported, and are there differences on non-Windows systems?PowerShell 6+ (open source) runs on Windows, macOS, and many Linux distributions. As of the book’s writing, macOS/Linux had just over 200 available commands and some Windows-specific examples won’t work there. Chapters 19 and 20 are Windows-only.
Who is the intended audience for this book?Primarily administrators who run commands and use tools written by others. It’s also useful for admins who combine commands into processes and for developers who want to understand how PowerShell is used.
How should I use the book and how is it structured?Read one chapter per day. Chapters 2–26 provide the core “month of lunches,” with short labs (answers at each chapter’s end). “Above and beyond” sections offer optional depth. Chapter 27 suggests next steps, and there’s a PowerShell Cheat Sheet appendix.
What lab environment do I need?A Windows 10 or later (or Windows Server 2016 or later) machine with PowerShell 7.1+ is sufficient; Windows includes Windows PowerShell 5.1, and PowerShell 7 installs side by side. Use VS Code with the PowerShell extension. One computer is enough, though multiple domain-joined machines can make some scenarios more interesting. On macOS/Linux, install from http://github.com/PowerShell/PowerShell, noting some functionality is Windows-specific.
How do I check my PowerShell version and install the latest?Check your version by running: $PSVersionTable. Download and installation guidance: https://docs.microsoft.com/en-us/powershell. PowerShell 7 installs separately and runs side by side with Windows PowerShell 5.1: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows
Where can I find supplementary materials and community help?See Tyler Leonhardt’s “How to Navigate the Help System in PowerShell”: https://livevideo.manning.com/module/378_1_1/how-to-navigate-help-system-powershell/author-talk/author-talk. Explore PowerShell.org and its YouTube channel (http://YouTube.com/powershellorg) for free videos, webinars, and more. You can reach the authors on Twitter: @TravisPlunk, @TylerLeonhardt, @PsJameP.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Learn PowerShell in a Month of Lunches, Fourth Edition ebook for free
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Learn PowerShell in a Month of Lunches, Fourth Edition ebook for free
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Learn PowerShell in a Month of Lunches, Fourth Edition ebook for free