Chat with us, powered by LiveChat

Enter your keyword


55039 Windows PowerShell Scripting and Toolmaking

National Business Training - Computer Training

Course Summary

This five-day instructor-led course is intended for IT Professionals who have a working knowledge of Windows PowerShell 3.0 techniques and technologies, and who want to build reusable tools by using Windows PowerShell 3.0. This course focuses on the Windows PowerShell scripting language, and on the concepts and techniques needed to produce reusable, professional tools.

Course Schedule

    • This course is not currently scheduled. Call 919-595-8200 or email for dates or private training.
  • S - ScheduledGTR - Guaranteed to Run

Course Outline

1 – Preparing for Scripting

  • Securing the Scripting Environment
  • Understanding Variables and Operators
  • Understanding Scripting Constructs and Scope

2 – Parameterizing a Command

  • Designing Parameters
  • Implementing Parameters
  • Lab : Parameterizing a Command
  • Identify changeable values
  • Declare parameters
  • Use parameters in place of changeable values
  • Test the script

3 – Creating a Script Module

  • Designing Script Modules
  • Implementing Script Modules
  • Lab : Creating a Script Module
  • Creating a Script Module
  • Saving the script module
  • Adding a module-level variable
  • Controlling module member visibility
  • Testing the script module

4 – Handling Errors

  • Designing Error Handling
  • Implementing Error Handling
  • Lab : Handling Errors
  • Using the Try…Catch Construct
  • Handling Command Errors
  • Handling Non-Command Errors
  • Logging Errors to a File
  • Displaying Warning Messages

5 – Writing Commands that Use Pipeline Input and Output

  • Understanding Pipeline Parameter Binding
  • Implementing Pipeline Parameter Input
  • Implementing Pipeline Parameter Input
  • Lab : Writing Commands that Use Pipeline Inout and Output
  • Adding Pipeline Input Capability to Parameters
  • Working with Pipeline Input
  • Creating Custom Output Objects
  • Outputting Objects to the Pipeline

6 – Creating Hierarchical Command Output

  • Designing Complex Command Output
  • Implementing Complex Command Output
  • Using Object Hierarchies
  • Lab : Creating Hierarchical Command Output
  • Retrieving and Enumerating Data
  • Creating Child Objects
  • Creating the Parent Object
  • Displaying and Object Hierarchy
  • Persisting an Object Hierarchy

7 – Debugging Scripts

  • Designing Scripts for Debugging
  • Implementing Script Debugging
  • Lab : Debugging Scripts
  • Using Write-Debug
  • Using PSBreakpoints

8 – Customizing Default Formatting

  • Designing Formatting
  • Implementing Custom Formatting
  • Lab : Customizing Default Formatting
  • Adding a Custom Type Name to an Object
  • Creating a DefaultDisplayPropertySet Type Extension
  • Creating a Custom View
  • Adding Type Extensions and Views to Modules and Creating a Module Manifest

9 – Adding Advanced Parameter Attributes and Command Documentation

  • Implementing Advanced Parameter Attribtues
  • Implementing Help Documentation
  • Lab : Adding Advanced Parameter Attributes and Command Documentation
  • Defining Aliases and Help Messages
  • Defining Parameter Validation
  • Adding Comment-Based Help
  • Writing a Command that Uses –Confirm and -WhatIf

10 – Creating Controller Scripts

  • Designing Script Execution
  • Implementing a Controller Script
  • Lab : Creating Controller Scripts
  • Creating a Controller Script
  • Parameterizing a Controller Script
  • Testing a Controller Script
  • Debugging a Controller Script

11 – Creating HTML-Based Reports

  • Creating Basic HTML Reports
  • Creating Enhanced HTML Reports
  • Lab : Creating Reports by using HTML
  • Creating Reports by using HTML
  • Converting Objects into HTML Fragments
  • Combining HTML Fragments
  • Adding Basic Formatting
  • Creating Enhanced HTML Fragments
  • Applying Conditional Formatting

12 – Creating Basic Workflows

  • Understanding Workflows
  • Implementing Workflows
  • Lab : Creating Basic Workflows
  • Importing the PSWorkflow Module
  • Converting a Function to a Basic Worklfow
  • Parallelizing Commands

13 – Working with XML Data

  • Understanding XML
  • Implementing XML Manipulation
  • Lab : Working with XML Data
  • Loading XML
  • Manipulating XML as an Object Hierarchy
  • Selecting XML Elements by using XPath
  • Modifying XML
  • Saving XML

14 – Using Advanced Scripting Techniques

  • Using External Functionality
  • Adding Graphical User Interface Elements

15 – Creating Proxy Functions

  • Designing Proxy Functions
  • Implementing Proxy Functions
  • Lab : Creating Proxy Functions
  • Generating a Proxy Function Template
  • Modifying the Template
  • Using the Proxy Function
  • Bypassing a Proxy Function

16 – Building Tools in Windows PowerShell

  • Designing the Tool
  • Implementing the Tool
  • Testing the Tool
  • Lab : Building Tools in Windows PowerShell
  • Designing the Tool
  • Implementing the Tool
  • Testing the Tool

Course Objectives

Design tools, including input requirements, output requirements, and functional requirements. Write tools, including scripting, parameterizing commands, and providing verbose output. Debug tools and provide error handling within tools. Combine tools into script and manifest modules. Create custom formatting views. Create tools that are consistent in naming and operation with native Windows PowerShell tools


Target Audience

Students should have taken the following course, or at least posses the equivalent knowledge: 10961 Automating Administration with Windows PowerShell 3.0. Students should be skilled and confident IT administrators, as this class will not teach those skills. Students should also have a strong background as a Windows PowerShell tool user, including running commands in the console. Additionally, a background in a scripting or programming language is recommended.


This product is currently out of stock and unavailable.

Share our course