Windows Powershell Scripting and Toolmaking
Version du programme : 1
Type de formation
PrésentielDurée de formation
40 heures (5 jours)Windows Powershell Scripting and Toolmaking
Build the tools that will allow you to better administer your Windows server and client products. In this course, you will learn to build reusable tools by using Windows PowerShell 5.0/5.1. This course focuses on the Windows PowerShell scripting language and on the concepts and techniques needed to design tools, including output requirements and functional requirements. You will learn functions to deal with anticipated errors using standard PowerShell patterns and practices. By course completion, you will be armed with the knowledge and skills to better 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.
Objectifs de la formation
- 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
Profil des bénéficiaires
- 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. 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.
- Experience at basic Windows administration
- Experience using Windows PowerShell to query and modify system information
- Experience using Windows PowerShell to discover commands and their usage
- Experience using WMI and/or CIM to query system information
Contenu de la formation
Preparing for Scripting
- Securing the Scripting Environment
- Understanding Variables and Operators
- Understanding Scripting Constructs and Scope
Parameterizing a Command
- Designing Parameters
- Implementing Parameters
Creating a Script Module
- Designing Script Modules
- Implementing Script Modules
Handling Errors
- Designing Error Handling
- Implementing Error Handling
Writing Commands that Use Pipeline Input and Output
- Understanding Pipeline Parameter Binding
- Implementing Pipeline Parameter Input
- Implementing Pipeline Parameter Input
Creating Hierarchical Command Output
- Designing Complex Command Output
- Implementing Complex Command Output
- Using Object Hierarchies
Debugging Scripts
- Designing Scripts for Debugging
- Implementing Script Debugging
Customizing Default Formatting
- Designing Formatting
- Implementing Custom Formatting
Adding Advanced Parameter Attributes and Command Documentation
- Implementing Advanced Parameter Attributes
- Implementing Help Documentation
Creating Controller Scripts
- Designing Script Execution
- Implementing a Controller Script
Creating HTML-Based Reports
- Creating Basic HTML Reports
- Creating Enhanced HTML Reports
Creating Basic Workflows
- Understanding Workflows
- Implementing Workflows
Working with XML Data
- Understanding XML
- Implementing XML Manipulation
Using Advanced Scripting Techniques
- Using External Functionality
- Adding Graphical User Interface Elements
Creating Proxy Functions
- Designing Proxy Functions
- Implementing Proxy Functions
Building Tools in Windows PowerShell
- Designing the Tool
- Implementing the Tool
- Testing the Tool