Learn PowerShell Scripting in a Month of Lunches, Second Edition, Video Edition

Video description

In Video Editions the narrator reads the book while the content, figures, code listings, diagrams, and text appear on the screen. Like an audiobook that you can also watch as a video.

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

Quotes
The best! From creating pipelines to testing with Pester to even digital signing, it’s got everything!
- Chrissy LeMaire, Microsoft MVP, creator of dbatools

A wonderful guide! The updates to PowerShell 7 are greatly needed and well executed.
- Joe Houghes, Microsoft MVP Pure Storage

Each manageable lesson builds upon the previous one. I recommend this book to anyone getting started with PowerShell!
- Steven Judd, Tenstreet

The next step in your journey from PowerShell command runner to script maker!
- Glen Thompson, Mainfreight

Table of contents

  1. Part 1.
  2. Chapter 1. Before you begin
  3. Chapter 1. Is this book for you?
  4. Chapter 1. What you need for this book
  5. Chapter 1. How to use this book
  6. Chapter 1. Expectations
  7. Chapter 1. How to ask for help
  8. Chapter 1. Summary
  9. Chapter 2. Setting up your scripting environment
  10. Chapter 2. PowerShell
  11. Chapter 2. Administrative privileges and execution policy
  12. Chapter 2. Script editors
  13. Chapter 2. Our lab environment
  14. Chapter 2. Example code
  15. Chapter 2. Your turn
  16. Chapter 2. Summary
  17. Chapter 3. WWPD: What would PowerShell do?
  18. Chapter 3. Naming your tools
  19. Chapter 3. Naming parameters
  20. Chapter 3. Producing output
  21. Chapter 3. Don’t assume
  22. Chapter 3. Avoid innovation
  23. Chapter 3. Summary
  24. Chapter 4. Review: Parameter binding and the PowerShell pipeline
  25. Chapter 4. It’s all in the parameters
  26. Chapter 4. Pipeline: ByValue
  27. Chapter 4. ByPropertyName
  28. Chapter 4. Summary
  29. Chapter 5. Scripting language: A crash course
  30. Chapter 5. The If construct
  31. Chapter 5. The ForEach construct
  32. Chapter 5. The Switch construct
  33. Chapter 5. The Do/While construct
  34. Chapter 5. The For construct
  35. Chapter 5. Break
  36. Chapter 5. Summary
  37. Chapter 6. The many forms of scripting (and which to choose)
  38. Chapter 6. Thinking about tools
  39. Chapter 6. Thinking about controllers
  40. Chapter 6. Comparing tools and controllers
  41. Chapter 6. Some concrete examples
  42. Chapter 6. Control more
  43. Chapter 6. Lab
  44. Chapter 6. Summary
  45. Chapter 7. Scripts and security
  46. Chapter 7. Execution policy
  47. Chapter 7. PowerShell isn’t the default application
  48. Chapter 7. Running scripts
  49. Chapter 7. Recommendations
  50. Chapter 7. Summary
  51. Part 2.
  52. Chapter 8. Always design first
  53. Chapter 8. Tools are testable
  54. Chapter 8. Tools are flexible
  55. Chapter 8. Tools look native
  56. Chapter 8. For example
  57. Chapter 8. Your turn
  58. Chapter 8. Summary
  59. Chapter 9. Avoiding bugs: Start with a command
  60. Chapter 9. Breaking it down, and running it right
  61. Chapter 9. Running commands and digging deeper
  62. Chapter 9. Process matters
  63. Chapter 9. Know what you need
  64. Chapter 9. Your turn
  65. Chapter 9. Summary
  66. Chapter 10. Building a basic function and script module
  67. Chapter 10. Creating a script module
  68. Chapter 10. Prereq check
  69. Chapter 10. Running the command
  70. Chapter 10. Your turn
  71. Chapter 10. Summary
  72. Chapter 11. Getting started with advanced functions
  73. Chapter 11. Your turn
  74. Chapter 11. Summary
  75. Chapter 12. Objects: The best kind of output
  76. Chapter 12. Constructing and emitting output
  77. Chapter 12. A quick test
  78. Chapter 12. An object alternative
  79. Chapter 12. Enriching objects
  80. Chapter 12. Your turn
  81. Chapter 12. Summary
  82. Chapter 13. Using all the streams
  83. Chapter 13. Adding verbose and warning output
  84. Chapter 13. Doing more with -Verbose
  85. Chapter 13. Information output
  86. Chapter 13. Your turn
  87. Chapter 13. Summary
  88. Chapter 14. Simple help: Making a comment
  89. Chapter 14. Getting started
  90. Chapter 14. Going further with comment-based help
  91. Chapter 14. Broken help
  92. Chapter 14. Beyond comments
  93. Chapter 14. Your turn
  94. Chapter 14. Summary
  95. Chapter 15. Errors and how to deal with them
  96. Chapter 15. Bad handling
  97. Chapter 15. Two reasons for exception handling
  98. Chapter 15. Handling exceptions in your tool
  99. Chapter 15. Capturing the exception
  100. Chapter 15. Handling exceptions for non-commands
  101. Chapter 15. Going further with exception handling
  102. Chapter 15. Your turn
  103. Chapter 15. Summary
  104. Chapter 16. Filling out a manifest
  105. Chapter 16. Creating a new manifest
  106. Chapter 16. Examining the manifest
  107. Chapter 16. Your turn
  108. Chapter 16. Summary
  109. Part 3.
  110. Chapter 17. Changing your brain when it comes to scripting
  111. Chapter 17. Example 2
  112. Chapter 17. Your turn
  113. Chapter 17. Summary
  114. Chapter 18. Professional-grade scripting
  115. Chapter 18. Code clarity
  116. Chapter 18. Effective comments
  117. Chapter 18. Formatting your code
  118. Chapter 18. Meaningful variable names
  119. Chapter 18. Avoiding aliases
  120. Chapter 18. Logic over complexity
  121. Chapter 18. Providing help
  122. Chapter 18. Avoiding Write-Host and Read-Host
  123. Chapter 18. Sticking with single quotes
  124. Chapter 18. Not polluting the global scope
  125. Chapter 18. Being flexible
  126. Chapter 18. Prioritizing security
  127. Chapter 18. Striving for elegance
  128. Chapter 18. Summary
  129. Chapter 19. An introduction to source control with Git
  130. Chapter 19. What is Git?
  131. Chapter 19. Repository basics
  132. Chapter 19. Using Git with VS Code
  133. Chapter 19. Integrating with GitHub
  134. Chapter 19. Summary
  135. Chapter 20. Pestering your script
  136. Chapter 20. Problems with manual testing
  137. Chapter 20. Benefits of automated testing
  138. Chapter 20. Introducing Pester
  139. Chapter 20. Coding to be tested
  140. Chapter 20. What do you test?
  141. Chapter 20. Writing a basic Pester test
  142. Chapter 20. Summary
  143. Chapter 21. Signing your script
  144. Chapter 21. A word about certificates
  145. Chapter 21. Configure your script signing policy
  146. Chapter 21. Code-signing basics
  147. Chapter 21. Summary
  148. Chapter 22. Publishing your script
  149. Chapter 22. Exploring the PowerShell Gallery
  150. Chapter 22. Other publishing options
  151. Chapter 22. Before you publish
  152. Chapter 22. Ready, set, publish
  153. Chapter 22. Publishing scripts
  154. Chapter 22. Summary
  155. Part 4.
  156. Chapter 23. Squashing bugs
  157. Chapter 23. Dealing with syntax bugs
  158. Chapter 23. Dealing with results bugs
  159. Chapter 23. Dealing with logic bugs
  160. Chapter 23. Your turn
  161. Chapter 23. Summary
  162. Chapter 24. Enhancing script output presentation
  163. Chapter 24. Creating a default view
  164. Chapter 24. Your turn
  165. Chapter 24. Summary
  166. Chapter 25. Wrapping up the .NET Framework
  167. Chapter 25. Exploring a class
  168. Chapter 25. Making a wrapper
  169. Chapter 25. A more practical example
  170. Chapter 25. Your turn
  171. Chapter 25. Summary
  172. Chapter 26. Storing data—not in Excel!
  173. Chapter 26. Setting up everything
  174. Chapter 26. Using your database: Creating a table
  175. Chapter 26. Saving data to SQL Server
  176. Chapter 26. Querying data from SQL Server
  177. Chapter 26. Summary
  178. Chapter 27. Never the end
  179. Chapter 27. Taking your next step
  180. Chapter 27. What’s in your future?
  181. Chapter 27. Summary

Product information

  • Title: Learn PowerShell Scripting in a Month of Lunches, Second Edition, Video Edition
  • Author(s): Don Jones, Jeffery Hicks, James Petty
  • Release date: April 2024
  • Publisher(s): Manning Publications
  • ISBN: None