The PowerShell Practice Primer (The Book + Working Files)
Minimum price
Suggested price

The PowerShell Practice Primer

100 Exercises for Improving Your PowerShell Skills

About the Book

Extend Your PowerShell Learning in a Whole New Way

Microsoft MVP and veteran PowerShell teacher Jeff Hicks has created a PowerShell book unlike anything you've read before. Those books are useful and the assumption for this book is that you have read something like Learn Windows PowerShell in a Month of Lunches or have equivalent experience. You understand some PowerShell basics but need to improve your fluency and expertise. Learning PowerShell is no different than learning any foreign language. You need to practice it and use it constantly. That's where The PowerShell Practice Primer comes into the picture.

This book consists of 100 PowerShell-centric problems or exercises. The solutions should be no more than a few lines of PowerShell commands that you would run in an interactive session. This is not a PowerShell scripting book. This is a book designed to improve your proficiency in the PowerShell paradigm, language and syntax. The exercises don't require any lab environment. You should be able to answer everything with a Windows 10 desktop.

Is This All Fun and Games?

This exercises in this book are based on (mostly) real-world and practical applications. The hope is that you'll have fun figuring out a solution and that the *real* learning happens during that process. How you come up with an answer is more important to the learning process than the answer itself.

Publish on the Go

This is an Agile-published book, If updates or corrections are necessary I can easily publish a new version. I'll even email you via Leanpub (if you opt-in) when there's something new. Please note that it is highly unlikely I will produce a hard copy version to release on If you want this book, this is the place to get it.

Check Out the Free Sample

The free sample includes sample chapters, but why bother? Leanpub has a no-questions-asked refund policy, so it's completely risk-free to grab the "real" book and see what you think. By the way, the sample exercises are not repeated in the book so you might think if them a bonus content!

What Formats are Available?

All Leanpub books are offered in PDF, MOBI, and EPUB, and you get all three with your purchase. I love the "Send to Kindle" feature. Note that the PDF is probably the "highest fidelity" version, especially in terms of code listings. Although Microsoft Edge can open and display the epub version. It can even read the book aloud for you!

  • Share this book

  • Feedback

    You must own a copy of this Book to access the forums

    Email the Author(s)

About the Author

Jeff Hicks
Jeff Hicks

Jeffery Hicks is an IT veteran with almost 30 years of experience, much of it spent as an IT infrastructure consultant specializing in Microsoft server technologies with an emphasis in automation and efficiency. He is a multi-year recipient of the Microsoft MVP Award. He works today as an independent author, teacher and consultant. You can keep up with Jeff on his blog at

Table of Contents

  • About This Book
  • Dedication
  • Acknowledgements
  • Foreword
  • Preface
  • A PowerShell Refresher
  • A Note on Code Listings
  • How To Use This Book
  • Part 1 - PowerShell Principles
  • Part 1 Exercises
  • Part 1 Solutions
  • Part 2 - PowerShell Providers
  • Part 2 Exercises
  • Part 2 Solutions
  • Part 3 - PowerShell Structures
  • Part 3 Exercises
  • Part 3 Solutions
  • Part 4 - WMI and CIM
  • Part 4 Exercises
  • Part 4 Solutions
  • Afterword
  • About the Author
  • Release Notes

Authors have earned$9,690,775writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

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

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! 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