This book is dedicated to all of the tech professionals out there that have been intrigued by PowerShell and have taken the time to dig in, learn, and better themselves with knowledge.
This book was created out of necessity. There are many books out there on how to learn PowerShell. You’ll also find thousands of articles and blog posts on PowerShell best practices. But there wasn’t an entire collection of PowerShell learning and best practices brought together before.
Each chapter in this book is broken down by chapter with multiple “tips” inside. Each chapter is a bucket for the kinds of tips you can expect to read about. Each tip is a best practice. Tips are short, actionable steps you can take today to help you improve your PowerShell scripts.
Tips do not go into major detail. There are other resources out there for that. The tips in this book are not meant to be exhaustive how-tos but to rather act as a checklist for actions to take. With each tip, you will typically find an example to solidify your understanding of the tip.
All tips within this book should be treated as universal across all PowerShell versions and platforms from Windows PowerShell 5.1 and later including all PowerShell Core versions. If you see an example using code, assume that it will work in your PowerShell version of choice. All examples were written to be as generic as possible.
All tips in this book were written by me, but many were contributed by the PowerShell community. If a tip did come from the community, the community member will be referenced.
This book is for anyone wanting to learn how to write better PowerShell code. The book’s examples are primarily targeted to the IT professional, although anyone writing PowerShell for any purpose can get a lot from this book.
This book is not meant to be “training,” per se. It’s not specifically targeted at any level of PowerShell expertise. You will find tips in this book ranging from the basic level all the way up to the advanced level. It’s up to you to skip those tips that don’t apply to you and soak up the ones that do.
Read over this book periodically throughout your career. You’ll find that each tip will vary based on specific contexts, use cases, and expertise levels. Once you find yourself at that level, you’ll be able to understand and get more out of those tips.
You will find all code referenced in this book in the (a) GitHub repository called PowerShellTipsToWriteBy.
This book, along with all of my other career projects, could not have been possible without my wife, Miranda. She’s the rock of our household and has allowed me to pursue projects regardless of how crazy they have been and has supported me for nearly 20 years now.
I also want to acknowledge all of those that have reached out and let me know how much my work means to you. It may mean a lot to you, but trust me, it means more to me to hear stories of how I’ve helped throughout your career.
is a 22-year veteran of IT and experienced online business professional. He’s an entrepreneur, Microsoft MVP, blogger at adamtheautomator.com, trainer, and writer for multiple technology companies. Catch up on Adam’s articles at adamtheautomator.com, connect on linkedin.com/in/AdamBertram/, or follow him on twitter.com/adbertram.
He has been awarded five times with Microsoft Most Valuable Professional title (thrice in Cloud and Datacenter management (PowerShell) and twice in the Office 365 category).
With his experience on messaging and collaboration technologies, he has assisted clients in migrating from one messaging platform to another.
He has utilized PowerShell for automation of various monotonous tasks as well as created self-service solutions for users.
He has been recognized many times by clients for automations that resulted in direct/indirect cost avoidance.
He is playing key roles with various large clients in the implementation and adoption of Office 365.
He is the owner and author of the http://TechWizard.cloud ,http://SysCloudPro.comblog site.
He is also the owner and author of the https://www.facebook.com/TechWizard.cloud Facebook page.
18.119.160.154