Book Image

Mastering PowerShell Scripting - Fourth Edition

By : Chris Dent
5 (1)
Book Image

Mastering PowerShell Scripting - Fourth Edition

5 (1)
By: Chris Dent

Overview of this book

PowerShell scripts offer a convenient way to automate various tasks, but working with them can be daunting. Mastering PowerShell Scripting takes away the fear and helps you navigate through PowerShell's capabilities.This extensively revised edition includes new chapters on debugging and troubleshooting and creating GUIs (online chapter). Learn the new features of PowerShell 7.1 by working with parameters, objects, and .NET classes from within PowerShell 7.1. This comprehensive guide starts with the basics before moving on to advanced topics, including asynchronous processing, desired state configuration, using more complex scripts and filters, debugging issues, and error-handling techniques. Explore how to efficiently manage substantial amounts of data and interact with other services using PowerShell 7.1. This book will help you to make the most of PowerShell's automation features, using different methods to parse data, manipulate regular expressions, and work with Windows Management Instrumentation (WMI).
Table of Contents (26 chapters)
24
Other Books You May Enjoy
25
Index

To get the most out of this book

  • Some familiarity with operating systems would be beneficial
  • Visual Studio Code (https://code.visualstudio.com/) is used a few times in the book and is a useful tool to have available throughout

Download the example code files

The code bundle for the book is hosted on GitHub at https://github.com/PacktPublishing/Mastering-Windows-PowerShell-Scripting-Fourth-Edition. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Download the color images

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://static.packt-cdn.com/downloads/9781800206540_ColorImages.pdf.

Conventions used

There are several text conventions used throughout this book.

CodeInText: Indicates code words in the text, type names, property names, property values, variable names, folder names, and file names. For example: "By default, Save-Help (and Update-Help) will not download help content more often than once every 24 hours."

A block of code is set as follows:

Get-Process |
    Select-Object Name, ID -First 1

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are highlighted:

Get-Process |
    Select-Object Name, ID

Any command-line input or output is written as follows:

PS> Get-Process |
>>     Select-Object Name, ID -First 1
Name      Id
----      --
Pwsh    5068

Bold: Indicates a new term, an important word, or words that you see on the screen, for example, in menus or dialog boxes, also appear in the text like this. For example: "Extensible Markup Language (XML) is a plain text format that is used to store structured data."

Warnings or important notes appear like this.