Download PDF
of this course

MS55039 - Windows PowerShell Scripting and Toolmaking (MS55039)

  • Overview
  • Who Should Attend
  • Certifications
  • Prerequisites
  • Objectives
  • Content
  • Schedule
Course Overview

Duration : 4 Days

This four-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. Students of this course may administer a wide variety of server and client products and technologies that offer Windows PowerShell integration, including Microsoft Exchange Server, Microsoft Windows Active Directory Domain Services, Microsoft SharePoint Server, and more. This course focuses on the Windows PowerShell scripting language, and on the concepts and techniques needed to produce reusable, professional tools.

Who Should Attend

  • This course is intended for administrators that have little or no programming experience, but who have a working knowledge of Windows PowerShell and who are able to use Windows PowerShell to run complex, interactive commands.

Course Certifications

This course is part of the following Certifications:

Prerequisites

Before attending this course, students must have:

  • Experience in administering Windows server and client computers

  • Experience in running interactive Windows PowerShell commands from the command prompt

  • Course 10961 is strongly recommended as a pre-requisite to this course

 

Course Objectives

After completing this course, students will be able to:

  • 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

  •  

 

Course Content

Module 1 : Preparing for Scripting

This module explains how to prepare the environment for scripting , and provides refresher and background information for scripting .

Lessons

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

After completing this module , students will be able to :

  • Describe and set the execution policy
  • Run Windows PowerShell scripts
  • Use Variables and operators
  • Describe and use scripting constructs
  • Describe the operation of Windows PowerShell scope.

 

Module 2 : Parameterizing a Command

This module explains how to start with an existing command and parameterized it to create a reusable tool

Lessons 

  • Designing Parameters
  • Implementing Parameters

Lab : Parameterizing a Command

After completing this module , students will be able to ;

  • Evolve a command into a parameterized script 

 

Module 3 : Creating a Script Module 

This module explains how to turn a basic script into a script module that can be distributed , loaded , and unloaded in Windows PowerShell.

Lessons

  • Designing Script Module
  • Implementing Script Modules

Lab : Creating a Script Module

After completing this module , students will be able to :

  • Create a script module based upon an existing script or function

 

Module 4 : Handling Errors

This module explains how to trap and handle errors within a script module

Lessons

  • Designing Error Handling
  • Implementing Error Handling

Lab : Handling Errors

After completing this module , students will be able to :

  • Describe and use the Try....Catch construct
  • Handle command errors
  • Handle non-command errors
  • Log errors to a file
  • Display warning messages

 

Module 5 : Writing Commands that Use Pipeline Input and Output

This module explains how to write commands that integrate witht he Windows PowerShell pipeline. Students will create commands that produce pipeline output and that accepts pipeline inputs

Lessons

  • Understanding Pipeline Parameter Binding
  • Implementing Pipeline Parameter Input
  • Implementing Pipeline Parameter Input

Lab : Writing Commands that Use Pipeline Input and Output

After completing this module , students will be able to :

  • Create commands that accept pipeline input
  • Create commands that consolidates multiple data sources into Windowa PowerShell pipeline output

 

Module 6 : Creating Hierachies Command Output

This module explains how to create , and use object-oriented output that includes object hierachies.

Lessons

  • Designing Complex Command Output
  • Implementing Complex Command Output 
  • Using Object Hierachies

Lab : Creating Hierachies Command Output 

After completing this module , students will be able to :

  • Create hierachical  , object oriented command output
  • Use hierarical , object-oriented command output

 

Module 7 : Debugging Scripts

This module explains Windows PowerShell Techniques used to debug scripts , and provides students with opportunities to practice debugging skills.

Lessons 

  • Designing Scripts for Debugging 
  • Implementing Script Debugging

Lab : Debugging Scripts

After completing this module , students will be able to :

  • Debug scripts by using Write-Debug 
  • Debug scripts by using PSBreakpoints.

 

Module 8 : Customizing Default Formatting

This module explain how to create a custom formatting view that can be added to a script module .

Lessons 

  • Designing Formatting
  • Implementing Custom Formatting

Lab : Customizing Default Formatting

After completing this module , students will be able to :

  • Create custom type extensions
  • Create custom views.

 

Module 9 : Adding Advanced Parameter Attributes and Command Documentation

This module explains how to declare parameter aliases , help messages , and input validation. It also explains how to implement switch parameters, how to add support for the -WhatIf and -Confirm parameters, and how to add comment-based help to a command.

Lessons

  • Implementing Advanced Parameters aTTRIBUTES
  • Implementing Help Documentation

Lab :Adding Advanced Parameter Attributes and Command Documentation

After completing this module , students will be able to :

  • Add advanced parameter attributes , including aliases and validation
  • Create comment-based documentation for commands.
  • Write commands that use -WhatIf and -Confirm parameters.

 

Module 10 : Creating Controller Scripts

This module explains how to create scripts that implement complex business processes by running multiple tools in a specified sequence.

Lessons

  • Designing Script Execution
  • Implementing a Controller Script

Lab : Creating Controller Scripts

After completing this module , students will be able to :

  • Implement controller scripts by combining specified tools 
  • Test and debug controller scripts 

 

Module 11 : Creating HTML-Based Reports

This module explains how to cwrite controller scripts that produces HTML-based management reports

Lessons 

  • Creating Basic HTML Reports
  • Creating Enhanced HTML Reports

Lab : Creating Reports by using HTML 

After completing thsi module , students will be able to :

  • Create basic and enhaned HTML reports that inclufe specidied management information.

 

Module 12 : Creating Basic Workflows 

This module explains the key differences between Windows PowerShell functions and workflows , and shows students how to create a basic workflow

Lessons

  • Understanding Workflows
  • Implementing Workflows

Lab : Creating Basic Workflows

After completing this module , students will be able to :

  • Describe the differences between a Windows PowerShell functions and a workflow
  • Convert a function to a workflow
  • Run a workflow that includes a parallel execution.

 

Module 13 : Working with XML Data

This module explains how Windpws PowerShell Interprets , represents and manipulates XML-based data.

Lessons

  • Understanding XML
  • Implementing XML Manipulation

Lab : Working with XML Data

After completing this module , students will be able to :

  • Load , manipulate , and save data in XML formats.

 

Module 14 : Using Advanced Scripting techniques 

This module explains how to use advanced scripting techniques , including execution of eternal commands and graphical user interfaces.

Lessons

  • Using External Functionality
  • Adding Graphical User Interface Elements 

After completing this module , students will be able to :

  • Run external commands from inside Windows PowerShell
  • Describe the process required to create a graphical user interface in Windows PowerShell

 

Module 15 : Creating Porxy Functions

This module explains how to create proxy functions in Windows PowerShells

Lessons

  • Designing Proxy Functions
  • Implementing Proxy Functions

Lab : Creating Proxy Functions

After completing this module , students will be able to :

  • Create and modify proxy functions in Windows PowerShell

 

Module 16 : BuildingTools in Windows PowerShell

this module is a "final exam" for the course , and offers students the opportunity to build a complete tool , from scratch , using many of the techniques that they have learned in the preceding days.

Lessons

  • Designing the Tool
  • Implementing the Tool
  • Testing the Tool

Lab : Building Tools in Windows PowerShell

After completing this module , students will be able to :

  • Design , create , and test tools in Windows PowerShell

 

Course ID: MS55039


Show Schedule for 1 Month  3 Months  All 
Date Country Location Register