PowerShell by Mistake
PowerShell by Mistake
Minimum price
Suggested price
PowerShell by Mistake

Last updated on 2018-09-20

About the Book

Human brains are funny things. At the end of the day, our brains are still wired the same way they were when we were cavemen trying to survive in the wild. Anything relevant to our immediate survival tended to "stick" in our brains, and anything not relevant tends to slip past. Tell a child, "don't touch that hot pot on the stove!" all you want to, they're still likely to touch it—once. 

This book is the hot pot on the stove. It's a collection of mistakes, and an opportunity to solve them, albeit without burning your fingers.

In this book, I've collected edited versions of PowerShell questions and "broken" code, and in each chapter I'll present a one. You'll take the time to read the code, figure out the problem, and try to solve it. Then, I'll present a solution, along with a detailed explanation of not only what was wrong, but why

This book is not a how-to, and I presume that you already have a decent amount of basic PowerShell education under your belt. This book is not about how to make Active Directory work, or Exchange Server, or SharePoint Server, or anything else; this is about PowerShell. So you're going to see problems that relate to the core of how PowerShell works. Many of these problems spring from "gotchas" in PowerShell, while others have their origin in very common misunderstandings about how the shell works.

If you feel that you learn best by getting your hands dirty, making mistakes, and figuring them out, then this book is for you.

And if you've ever wondered, "do I really know what PowerShell is all about?" then you can consider this book to be an ongoing quiz of sorts. Each chapter offers a new opportunity to test your PowerShell mojo, validate what you know, and perhaps pick up a new trick or two along the way.

NOTE: This is a "continually published" book. You purchase it once, but I'll be regularly adding new chapters. If you buy the book, you can permit Leanpub to notify you each time a new chapter is ready, giving you an ongoing series of challenges well into the future. My goal is to publish at least 12 chapters per year, or at least one chapter per 25 Leanpub readers the book has, whichever is greater.

About the Author

Don Jones
Don Jones

Don Jones has been in the IT industry since the mid 1990s, and has been a recipient of Microsoft's "Most Valuable Professional" Award since 2003. He's a co-founder of PowerShell.org and The DevOps Collective, and a Curriculum Director for online video training company Pluralsight. Don authored some of the first books ever published for Windows PowerShell, and is the co-author of Learn Windows PowerShell in a Month of Lunches, the bestselling entry-level book for PowerShell. Don's a sought-after speaker at technology conferences like Microsoft Ignite, TechMentor, and many more. You can find him on Twitter @concentratedDon, or on his website, DonJones.com. 

Bundles that include this book

The DSC Book
The PowerShell Scripting and Toolmaking Book
Become Hardcore Extreme Black Belt PowerShell Ninja Rockstar
Be the Master
How to Find a Wolf in Siberia
11 Books
Suggested Price
Bundle Price

Table of Contents

  • About This Book
  • Introduction
  • How to Use This Book
  • A Note on Code Samples
  • Contacting Me
  • Problem 1: On Apples and Apples
    • Spoiler!!
  • Problem 2: On Alternate Credentials
    • Spoiler!!
  • Problem 3: On Strings ByValue
    • Spoiler!!
  • Problem 4: On Magic Quote Timing
    • Spoiler!!
  • Problem 5: On Patterns and Suppression
    • Spoiler!!
  • Problem 6: On Formatting Numbers in Strings
    • Spoiler!!
  • Problem 7: On Parsing Strings
    • Spoiler!!
  • Problem 8: Mix ‘n’ Match
    • Spoiler!!
  • Problem 9: The Return of…
    • Spolier!!
  • Problem 10: True Equality
    • Spoiler!!
  • Problem 11: Argumentative
    • Spoiler!
  • Problem 12: Assignment and Output
    • Spoiler!
  • Problem 13: Tricky Parameter Sets
    • Spoiler!!
  • Problem 14: The Business Case
    • Spoiler!!

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub