0%

Designed for busy IT professionals, this innovative guide will take you from the basics to PowerShell proficiency through 25 tutorials you can do in your lunch break.

In Learn PowerShell in a Month of Lunches, Fourth Edition you will learn:

  • Discoverability with the Help system
  • Background jobs and automation techniques
  • Simple scripting to automate repetitive tasks
  • Managing cloud services from major cloud providers
  • Extending PowerShell with commands
  • Common syntax and commands cheat sheet

Learn PowerShell in a Month of Lunches, Fourth Edition is a task-focused guide for administering your systems using PowerShell. It covers core language features and admin tasks, with each chapter a mini-tutorial you can easily complete in under an hour. Discover how PowerShell works on different operating systems, and start automating tasks so they take just a few seconds to complete. No previous scripting experience required.

The book is based on the bestselling Learn Windows PowerShell in a Month of Lunches by community legends Don Jones and Jeffery Hicks. PowerShell team members Travis Plunk and Tyler Leonhardt and Microsoft MVP James Petty have updated this edition to the latest version of PowerShell, including its multi-platform expansion into Linux and macOS.

About the Technology
PowerShell gives you complete command line control over admin tasks like adding users, exporting data, and file management. Whether you’re writing one-liners or building complex scripts to manage cloud resources and CI/CD pipelines, PowerShell can handle the task. And now that PowerShell is truly cross-platform, you don’t have to switch scripting languages when you move between Windows, Linux, and macOS.

About the Book
Learn PowerShell in a Month of Lunches, Fourth Edition is a new edition of the bestseller that introduced PowerShell to over 100,000 readers. With bite-sized lessons and hands-on exercises, this amazing book guides you from your first command to writing and debugging reusable scripts for Windows, Linux, and macOS. Set aside just an hour a day and you’ll soon be tackling increasingly complex automation tasks with PowerShell.

What's Inside
  • Discoverability with the Help system
  • PowerShell on macOS and Linux
  • Background jobs and automation techniques
  • Managing cloud services from major cloud providers
  • Common syntax and commands cheat sheet


About the Reader
No previous experience with PowerShell or Bash required.

About the Authors
James Petty is CEO of PowerShell.org and The DevOps Collective, and a Microsoft MVP. Travis Plunk is an engineer on the PowerShell team. Tyler Leonhardt is an engineer on Visual Studio Code. Don Jones and Jeffery Hicks are the original authors of Learn Windows PowerShell in a Month of Lunches.

Quotes
This book breaks out of the Windows operating system and treats PowerShell as a true global citizen: you’ll find examples applicable whether you’re running PowerShell on Windows, Linux, or macOS.
- From the Foreword by Don Jones

A detailed and systematic approach for anyone wanting to learn PowerShell quickly.
- Rick Michaels, L3Harris

Real-world examples in a fun and easily digested format. Great way to spend a lunch hour and learn something in the process!
- Bruce Bergman, Lytx

Really helpful book for understanding PowerShell, which is a must-have skillset for anyone working in DevOps.
- Jean-Sebastien Gervais, École de technologie supérieure

Table of Contents

  1. Learn PowerShell in a Month of Lunches
  2. Copyright
  3. brief contents
  4. contents
  5. Front matter
  6. 1 Before you begin
  7. 2 Meet PowerShell
  8. 3 Using the help system
  9. 4 Running commands
  10. 5 Working with providers
  11. 6 The pipeline: Connecting commands
  12. 7 Adding commands
  13. 8 Objects: Data by another name
  14. 9 A practical interlude
  15. 10 The pipeline, deeper
  16. 11 Formatting: And why it’s done on the right
  17. 12 Filtering and comparisons
  18. 13 Remote control: One-to-one and one-to-many
  19. 14 Multitasking with background jobs
  20. 15 Working with many objects, one at a time
  21. 16 Variables: A place to store your stuff
  22. 17 Input and output
  23. 18 Sessions: Remote control with less work
  24. 19 You call this scripting?
  25. 20 Improving your parameterized script
  26. 21 Using regular expressions to parse text files
  27. 22 Using someone else’s script
  28. 23 Adding logic and loops
  29. 24 Handling errors
  30. 25 Debugging techniques
  31. 26 Tips, tricks, and techniques
  32. 27 Never the end
  33. Appendix. PowerShell cheat sheet
  34. index
3.17.74.227