Learn PowerShell Scripting in a Month of Lunches, Second Edition
eBook - ePub

Learn PowerShell Scripting in a Month of Lunches, Second Edition

Write and organize scripts and tools

  1. 336 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Learn PowerShell Scripting in a Month of Lunches, Second Edition

Write and organize scripts and tools

About this book

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. 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. 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


The 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. 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 You can write PowerShell scripts to automate nearly any admin task on Windows, Linux, and macOS. This book shows you how! In just 27 short lessons you can complete on your lunch break, you'll learn to create, organize, test, and share scripts and tools that will save you hours of time in your daily work. About the book Learn PowerShell Scripting in a Month of Lunches, Second Edition is a hands-on introduction to PowerShell automation and toolbuilding. Updated for the latest version of PowerShell, this thoroughly revised bestseller teaches you how to write efficient scripts, find and squash bugs, and organize your tools into libraries. Along the way, you'll even pick up tips for securing and managing Linux and macOS systems. What's inside

  • Setting up a reliable scripting environment
  • Designing functions and scripts
  • Effective pipeline usage
  • Sharing and publishing scripts


About the reader Beginning to intermediate knowledge of PowerShell required. About the author James Petty is CEO of PowerShell.org and The DevOps Collective and a Microsoft MVP. Don Jones and Jeffery Hicks are the authors of the first edition of Learn PowerShell Scripting in a Month of Lunches. Table of Contents PART 1
1 Before you begin
2 Setting up your scripting environment
3 WWPD: What would PowerShell do?
4 Review: Parameter binding and the PowerShell pipeline
5 Scripting language: A crash course
6 The many forms of scripting (and which to choose)
7 Scripts and security
PART 2
8 Always design first
9 Avoiding bugs: Start with a command
10 Building a basic function and script module
11 Getting started with advanced functions
12 Objects: The best kind of output
13 Using all the streams
14 Simple help: Making a comment
15 Errors and how to deal with them
16 Filling out a manifest
PART 3
17 Changing your brain when it comes to scripting
18 Professional-grade scripting
19 An introduction to source control with Git
20 Pestering your script
21 Signing your script
22 Publishing your script
PART 4
23 Squashing bugs
24 Enhancing script output presentation
25 Wrapping up the.NET Framework
26 Storing data—not in Excel!
27 Never the end

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Learn PowerShell Scripting in a Month of Lunches, Second Edition by James Petty,Don Jones,Jeffery Hicks in PDF and/or ePUB format, as well as other popular books in Computer Science & System Administration. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. inside front cover
  2. Praise for the First Edition
  3. Learn PowerShell Scripting in a Month of Lunches
  4. Copyright
  5. dedication
  6. contents
  7. front matter
  8. Part 1.
  9. 1 Before you begin
  10. 2 Setting up your scripting environment
  11. 3 WWPD: What would PowerShell do?
  12. 4 Review: Parameter binding and the PowerShell pipeline
  13. 5 Scripting language: A crash course
  14. 6 The many forms of scripting (and which to choose)
  15. 7 Scripts and security
  16. Part 2.
  17. 8 Always design first
  18. 9 Avoiding bugs: Start with a command
  19. 10 Building a basic function and script module
  20. 11 Getting started with advanced functions
  21. 12 Objects: The best kind of output
  22. 13 Using all the streams
  23. 14 Simple help: Making a comment
  24. 15 Errors and how to deal with them
  25. 16 Filling out a manifest
  26. Part 3.
  27. 17 Changing your brain when it comes to scripting
  28. 18 Professional-grade scripting
  29. 19 An introduction to source control with Git
  30. 20 Pestering your script
  31. 21 Signing your script
  32. 22 Publishing your script
  33. Part 4.
  34. 23 Squashing bugs
  35. 24 Enhancing script output presentation
  36. 25 Wrapping up the .NET Framework
  37. 26 Storing data—not in Excel!
  38. 27 Never the end
  39. index