Автор: James Petty
Издательство: Manning Publications
Год: 2023
Страниц: 366
Язык: английский
Формат: pdf, epub
Размер: 12.2 MB
Automate complex tasks and processes with PowerShell scripts. This amazing book teaches you how to write, test, and organize high-quality, reusable scripts for Windows, Linux, and cloud-based systems.
In Learn PowerShell Scripting in a Month of Lunches, Second Edition you’ll learn
Setting up a reliable scripting environment
Designing functions and scripts
Effective pipeline usage
Scripting and security
Dealing with errors and bugs
Source control with git
Sharing and publishing scripts
Professional-grade scripting practices
Learn PowerShell Scripting in a Month of Lunches, Second Edition takes you beyond command-line PowerShell and opens up the amazing world of scripting and automation. In just 27 bite-sized lessons, you’ll learn to write scripts that can eliminate repetitive manual tasks, create custom reusable tools, and build effective pipelines and workflows. This revised second edition is fully updated to PowerShell’s latest version, including hands-on examples that perfectly demonstrate modern PowerShell’s cross-platform applications.
about the technology
Microsoft's PowerShell language lets you write scripts to control nearly every aspect of Windows. Just master a few straightforward scripting skills, and you'll save yourself from hours of tedious tasks. The lunch hours you spend learning PowerShell scripting will quickly pay you back with days of saved time!
We see a lot of people jump into PowerShell scripting much the same way they'd jump into batch files, VBScript, Python, and so on. Nothing wrong with that. PowerShell is able to accommodate a lot of different styles and approaches. But you end up working harder than you need to unless you take a minute to understand how PowerShell really wants to work. We believe that toolmaking is the real way to use PowerShell. PowerShell has a strong ability to create highly reusable, context-independent tools, which it refers to as commands. Commands typically do one small thing, and they do it very well. A command might not be terribly useful by itself, but PowerShell is designed to make it easy to "snap" commands together. A single LEGO brick might not be much fun (if you've ever stepped on one in bare feet, you know what we mean), but a box of those bricks, when snapped together, can be amazing (hello, Death Star!). That's the approach we take to scripting, and it's why we use the word toolmaking to describe that approach. We believe that your effort is best spent making small, self-contained tools that can "snap on" to other tools. This approach makes your code usable across more situations, which saves you work. This approach also reduces debugging and maintenance overhead, which saves your sanity. And it's the approach we'll teach you in this book.
about the book
Learn PowerShell Scripting in a Month of Lunches teaches you to create effective automation scripts and tools with PowerShell. Its 27 bite-size lessons cover instantly useful techniques for writing efficient code, finding and squashing bugs, organizing your scripts into libraries, and much more. This revised second edition of the bestselling original has been fully upgraded to the latest version of PowerShell. It’s full of exciting new examples that go beyond Windows scripting and show you how you can use PowerShell to automate Linux, and macOS environments.
Скачать Learn PowerShell Scripting in a Month of Lunches, Second Edition (MEAP V09)