Learn PowerShell Scripting in a Month of Lunches, Second Edition (MEAP v5)

Автор: literator от 28-01-2023, 18:30, Коментариев: 0

Категория: КНИГИ » ПРОГРАММИРОВАНИЕ

Learn PowerShell Scripting in a Month of Lunches, Second Edition (MEAP v5)Название: Learn PowerShell Scripting in a Month of Lunches, Second Edition (MEAP v5)
Автор: James Petty
Издательство: Manning Publications
Год: 2023
Язык: английский
Формат: pdf, epub, mobi
Размер: 10.1 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!

Most of the preliminary information you need is covered in chapter 1, but here are a few things we should mention up front. First and foremost, we strongly suggest that you follow along with the examples in the book. In order to follow along, you’ll need PowerShell installed. This book was written based on PowerShell 7.2, but honestly, 99% of the book also applies to earlier versions of Windows PowerShell.

You’ll also need to install a script editor. Though Windows PowerShell's Integrated Script Editor (ISE) is included on client versions of Windows, we recommend removing it, since the PowerShell team has not put any maintenance or support into it since Windows 7 was released. Microsoft recommends Visual Studio Code (VS Code), which is free and cross-platform. Download that, and in chapter 2 we'll show you how to set it up. Finally, you need to be able to run the PowerShell console, and your editor, "as Administrator" on your computer, mainly so that the administrative examples we're sharing with you will work.

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 V05)








Нашел ошибку? Есть жалоба? Жми!
Пожаловаться администрации
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.