Description
This training will allow you to deepen your knowledge of PowerShell V5 and V4. You will learn how to create Windows 10 / 2012 R2-style forms, integrate C# code, HTML, XML code into a PowerShell script as well as manage jobs. You will also learn how to create DSC scripts and workflows.
Who is this training for ?
For whom ?Systems and network technicians, administrators and engineers.
Prerequisites
Training objectives
Training program
- Reminder on syntax
- Variables, operators and control structures.
- Pipelines: flow behavior and configuration.
- Code simplification, the PipelineVariable.
- where-objects filters, foreach loops.
- Variables, types of operators.
- Practical work Use of the first commands, different cmdlets, the pipe, of the PipelineVariable and filters.
- Les classes in powershell 5
- Creating classes.
- Inheritance.
- Creating properties and methods.
- The Enum function.
- Practical work Creation of an Audit_test class, use of ENUM, implementation of inheritance.
- XAML forms
- Basic principle and creation of the XAML model.
- Using WPF.
- Coding in ISE.
- Practical work Creation of an IT asset management XAML form.
- Using .NET
- Using object libraries to manipulate system components.
- Loading classes.
- Net.
- Available classes, properties and methods.
- Adding C# code, HTML, CSS sheets to a PowerShell script.
- Practical work Creation of a simple class in C#, integration into a PS1 script , creating a script to list the available classes.
- Workflow, DSC
- Definition of DSC, workflow.
- Simple operation of DSC, workflow.
- Practical work Install a DSC application and a DHCP role.
- Create a DSC script to copy folders/files to servers and create a workflow to massively ping IP addresses in parallel.
- Module creation, manifest creation
- Function of a PowerShell module.
- Creation of a module, integration into the workstation.
- Addition of script, parameters, customization.
- Added detailed help.
- Practical work Creation of a fleet management module, a ping module allowing you to choose network identifiers, IP addresses to ping or a list computers.
- Gestion des jobs, remoting
- Introduction, function of WinRM.
- What is a job? The different cmdlets to manage jobs (get-job, receive-job, wiat- job, start-job.
- ).
- The different states of a job.
- Practical work Creation of a script using jobs and Winrm to manage a set of servers.
- Overview of DSC (Desired State Configuration)
- DSC fundamentals.
- Push mode, Pull mode.