LANTEC Logo
Lantec | Course: MS 10962 C - Advanced Automated Administration with Windows PowerShell®

MS 10962 C - Advanced Automated Administration with Windows PowerShell®

$1,695.00
3 days
Audience
Prerequisites

Description:

This course will expand and build upon the knowledge already acquired in course 10961B and focus on building more scalable and usable Windows PowerShell scripts for use in your organization by building your own Windows PowerShell tools. Learn about areas such as the creation of advanced functions, script modules, advanced parameters attributes and controller scripts. Also learn how to make your scripts more robust by learning about handling script errors and the analysis and debugging Windows PowerShell scripts. The course will also cover the use of Windows PowerShell cmdlets with .NET Framework as well as teaching how to configure your Windows Servers using Desired State Configuration and providing an understanding of Windows PowerShell workflow.

OUTLINE:

Module 1: Creating Advanced Functions

In this module, students will learn how to parameterize a command into an advanced function. It is designed to teach several key principles in a single logical sequence, by using frequent hands-on exercises to reinforce new skills.

Lessons
  • Converting a Command into an Advanced Function
  • Creating a Script Module
  • Defining Parameter Attributes and Input Validation
  • Writing Functions that use Multiple Objects
  • Writing Functions that Accept Pipeline Input
  • Producing Complex Function Output
  • Documenting Functions by using Content-Based Help
  • Supporting -Whatif and -Confirm
Labs
  • Converting a command into an advanced function
  • Creating a script module
  • Defining parameter attributes and input validation
  • Writing functions that use multiple objects
  • Writing functions that accept pipeline input
  • Producing complex function output
  • Documenting functions by using content-based help
  • Supporting -Whatif and -Confirm
After completing this Module, students will be able to:
  • Parameterize a command and create an advanced function.
  • Convert a script and function into a script module.
  • Define parameter attributes and input validation for a function.
  • Enumerate objects by using scripting constructs.
  • Modify a function to accept pipeline input.
  • Produce complex pipeline output in a function.
  • Document a function by using comment-based Help.
  • Create functions that support –WhatIf and –Confirm.

Module 2: Using CMDlets and Microsoft.Net Framework in Windows Powershell

Windows PowerShell provides commands that accomplish many of the tasks that you will need in a production environment. Sometimes, a command is not available but the .NET Framework provides an alternate means of accomplishing a task. Because Windows PowerShell is built on the .NET Framework, it is able to access those alternate means. In this module, you will learn how to discover and run Windows PowerShell commands, and how to use .NET Framework components from inside Windows PowerShell. These two techniques will provide you with the most flexibility and capability for accomplishing tasks in a production environment.

Lessons
  • Running Windows PowerShell Commands
  • Using Microsoft .NET Framework in Windows PowerShell
Labs
  • Using .Net Framework in Windows Powershell
After completing this Module, students will be able to:
  • Discover Windows PowerShell commands by using the Help system.
  • Describe and use .NET Framework classes and instances in Windows PowerShell.

Module 3: Writing Controller Scripts

In this module, students will learn how to combine tools – advanced functions that perform a specific task – and a controller script that provides a user interface or automates a business process.

Lessons
  • Understanding Controller Scripts
  • Writing Controller Scripts that Show a User Interface
  • Writing Controller Scripts That Produce Reports
Labs
  • Writing controller scripts that display user interface
  • Writing controller scripts that produce HTML reports
After completing this Module, students will be able to:
  • Describe the difference between tools and controller scripts.
  • Write controller scripts that present a user interface.
  • Write controller scripts that automate a business process.

Module 4: Handling Script Errors

In this module, students will learn how to perform basic error handling in scripts. The focus will be about how to add error handling to existing tools, primarily as a time-saving mechanism (instead of having students write new tools). A side benefit of this approach is that it will help build the skills that you must have to analyze and reuse existing code written by someone else.

Lessons
  • Understanding Error Handling
  • Handling Errors in a Script
Labs
  • Handling errors in a script
After completing this Module, students will be able to:
  • Describe the shell’s default error response mechanisms.
  • Add error handling code to existing tools.

Module 5: Using XML Data Files

In this module, students will learn how to read, manipulate, and write data in XML files. XML files provide a robust, yet straightforward way to store both flat and hierarchical data. XML files are more flexible than CSV, more accessible for small amounts of data than SQL Server, and easier to code against that Excel automation.

Lessons
  • Reading, Manipulating and Writing Data in XML
Labs
  • Reading, manipulating and writing data in XML
After completing this module, students will be able to
  • Read, manipulate, and write data in XML.

Module 6: Managing Server Configurations by Using Desired State Configuration

In this module, students will learn how to write Desired State Configuration (DSC) configuration files, deploy those files to servers, and monitor servers’ configurations.

Lessons
  • Understanding Desired State Configuration
  • Creating and Deploying a DSC Configuration
Labs
  • Creating and deploying DSC configuration
After completing this Module, students will be able to:
  • Describe the architecture and deployment models of DSC.
  • Write and deploy DSC configuration files.

Module 7: Analysing and Debugging Scripts

In this module, students will learn how to use native Windows PowerShell features to analyze and debug existing scripts. These skills are also useful when students have to debug their own scripts.

Lessons
  • Debugging in Windows PowerShell
  • Analyzing and Debugging an Existing Script
Labs
  • Analyzing and debugging an existing script
After completing this Module, students will be able to:
  • Describe the debugging features of Windows PowerShell.
  • Analyze and debug an existing script.

Module 8: Understanding Windows Powershell Workflow

In this module, students will learn about the features of the Windows PowerShell Workflow technology.

Lessons
  • Understanding Windows PowerShell Workflow
After completing this Module, students will be able to:
  • Describe the Workflow feature of Windows PowerShell.

Scheduled Courses

This course isn't currently on the schedule, but we can add it. Just let us know.

Need to Request This Course On a Different Day?

LANTEC is very responsive to local client needs and unique or custom class demands. If you require a delivery date option for a class title on our schedule, please submit your specific request for immediate consideration. We can often accommodate countless additional courses NOT available on our public schedules, please inquire for personal assistance.
Want to schedule it?


Shea Becoste

"Ms. Cheli was amazeballs! Truly a pleasure meeting her!"