The PowerShell Scripting and Toolmaking Book

The PowerShell Scripting and Toolmaking Book

Don Jones and Jeff Hicks
This is a sample of the book's content.Buy on Leanpub

Table of Contents

The PowerShell Scripting and Toolmaking Book

  • About This Book
  • Dedication
    • Acknowledgments
  • About the Authors
    • Additional Credits
  • Foreword
  • Introduction
    • Pre-Requisites
    • Versioning
    • The Journey
    • Following Along
    • Providing Feedback
  • Part 1: Review PowerShell Toolmaking
  • Functions, the Right Way
    • Tool Design
    • Start with a Command
    • Build a Basic Function and Module
    • Adding CmdletBinding and Parameterizing
    • Emitting Objects as Output
    • Using Verbose, Warning, and Informational Output
    • Comment-Based Help
    • Handling Errors
    • Are You Ready
  • Part 2: Professional-Grade Toolmaking
  • Publishing Your Tools
    • Begin with a Manifest
    • Publishing to PowerShell Gallery
    • Publishing to Private Repositories or Galleries
    • Your Turn
    • Let’s Review
  • Part 3: Controller Scripts and Visual Scripting
  • Proxy Functions
    • For Example
    • Creating the Proxy Base
    • Modifying the Proxy
    • Adding or Removing Parameters
    • Your Turn
    • Let’s Review
  • Part 4: The Data Connection
  • Working with SQL Server Data
    • SQL Server Terminology and Facts
    • Connecting to the Server and Database
    • Writing a Query
    • Running a Query
    • Invoke-SqlCmd
    • Thinking About Tool Design Patterns
    • Let’s Review
    • Review Answers
  • Part 5: Seriously Advanced Toolmaking
  • Measuring Tool Performance
    • Is Performance Important
    • Measure What’s Important
    • Factors Affecting Performance
    • Key Take-Away
  • Part 6: Pester
  • Why Pester Matters
  • Part 7: PowerShell 7 Scripting
  • Cross Platform Scripting
    • Know Your OS
    • State Your Requirements
    • Testing Variables
    • Environment Variables
    • Paths
    • Watch Your Aliases
    • Using Culture
    • Leverage Remoting
    • Custom Module Manifests
The PowerShell Scripting and Toolmaking Book/overview

The PowerShell Scripting and Toolmaking Book

course_overview

Learn the patterns, practices, and details of PowerShell Scripting and Toolmaking from the industry's two most recognized experts on the subject.

count_chapters
begin_reading
download
p_implied_book_part_name

The PowerShell Scripting and Toolmaking Book19 chapters

Begin ›
  1. About This Book

  2. Dedication

  3. About the Authors

  4. Foreword

  5. Introduction

  6. Part 1: Review PowerShell Toolmaking

  7. Functions, the Right Way

  8. Part 2: Professional-Grade Toolmaking

  9. Publishing Your Tools

  10. Part 3: Controller Scripts and Visual Scripting

  11. Proxy Functions

  12. Part 4: The Data Connection

  13. Working with SQL Server Data

  14. Part 5: Seriously Advanced Toolmaking

  15. Measuring Tool Performance

  16. Part 6: Pester

  17. Why Pester Matters

  18. Part 7: PowerShell 7 Scripting

  19. Cross Platform Scripting