Learn PowerShell Scripting in a Month of Lunches
- 5h 11m
- Don Jones, Jeffery Hicks
- Manning Publications
- 2018
Summary
Discover how scripting is different from command-line PowerShell, as you explore concrete hands-on examples in this handy guide. The book includes and expands on many of the techniques presented in Learn PowerShell Toolmaking in a Month of Lunches.
About the Technology
Automate it! With Microsoft's PowerShell language, you can write scripts to control nearly every aspect of Windows. Just master a few straightforward scripting skills, and you'll be able to eliminate repetitive manual tasks, create custom reusable tools, and build effective pipelines and workflows. Once you start scripting in PowerShell, you'll be amazed at how many opportunities you'll find to save time and effort.
About the Book
Learn PowerShell Scripting in a Month of Lunches teaches you how to expand your command-line PowerShell skills into effective scripts and tools. In 27 bite-size lessons, you'll discover instantly useful techniques for writing efficient code, finding and squashing bugs, organizing your scripts into libraries, and much more. Advanced scripters will even learn to access the .NET Framework, store data long term, and create nice user interfaces.
What's Inside
- Designing functions and scripts
- Effective pipeline usage
- Dealing with errors and bugs
- Professional-grade scripting practices
About the Reader
Written for devs and IT pros comfortable with PowerShell and Windows.
About the Authors
Don Jones is a PowerShell MVP, speaker, and trainer who has written dozens of books on information technology topics. Jeffery Hicks is a PowerShell MVP and an independent consultant, trainer, and author. Don and Jeff coauthored Manning's Learn Windows PowerShell in a Month of Lunches, Learn PowerShell Toolmaking in a Month of Lunches, and PowerShell in Depth.
In this Book
-
About This Book
-
Before You Begin
-
Setting up Your Scripting Environment
-
WWPD—What Would PowerShell Do?
-
Review—Parameter Binding and the PowerShell Pipeline
-
Scripting Language Crash Course
-
The Many Forms of Scripting (and Which to Use)
-
Scripts and Security
-
Always Design First
-
Avoiding Bugs—Start with a Command
-
Building a basic Function and Script Module
-
Going Advanced with Your Function
-
Objects—The Best Kind of Output
-
Using all the Pipelines
-
Simple Help—Making a Comment
-
Dealing with Errors
-
Filling Out a Manifest
-
Changing Your Brain When it Comes to Scripting
-
Professional-Grade Scripting
-
An Introduction to Source Control with Git
-
Pestering Your Script
-
Signing Your Script
-
Publishing Your Script
-
Squashing Bugs
-
Making Script Output Prettier
-
Wrapping up the .NET Framework
-
Storing Data—not in Excel!
-
Never the End