Introduction

Completed

Efficient troubleshooting makes your script development faster. Understanding error messages is the foundation of that troubleshooting. For difficult problems, you can use breakpoints to pause a running script and inspect variable values.

Learning objectives

After completing this module, you'll be able to:

  • Describe how error messages are stored.
  • Explain how to add more troubleshooting information to scripts.
  • Describe how to configure breakpoints for troubleshooting.
  • Describe error actions in Windows PowerShell.

Prerequisites

Familiarity with:

  • Windows networking technologies and implementation
  • Windows Server administration, maintenance, and troubleshooting
  • Windows PowerShell and its commands to perform specific tasks
  • PowerShell cmdlets used for system administration tasks related to Active Directory, network configuration, server administration, and Windows client device administration (Windows 10 and Windows 11)
  • Windows PowerShell pipeline, PowerShell providers, and PowerShell drives
  • CIM and WMI technologies
  • The use of variables, arrays, and hash tables in Windows PowerShell