Automate the administration of your Windows servers
Object-oriented, based on the .NET Framework, PowerShell (M10961) replaces (in a way) the command line. It allows you to execute scripts in batch. It is important to master the subtleties of PowerShell because it is becoming more and more important in the Windows environment, with Microsoft making it its main method of automating tasks and applications.
The Windows PowerShell course will enable you to use this task-based scripting and command line language designed specifically for system administration. You will learn the basics, followed by installation and configuration. In this course we also cover commands, objects and classes, as well as scripts and file, alias and environment providers. You will learn how to customize your user interface.
PowerShell is Microsoft's complete scripting language, powerful, versatile and easy to use, which will allow you to master variables, loops, etc.
Is it for you ?
Level 2 and 3 system administrators and support personnel with knowledge of Windows system administration and Active Directory. No previous experience with PowerShell or any other scripting language is required.
Prerequisites
Windows system administration experience (Course MS528).
What You'll Walk Away With
- ✓ Automate system administration tasks using PowerShell scripts and pipelines
- ✓ Master cmdlets, object handling, and data formatting for efficient processing
- ✓ Manage Active Directory and Windows servers using dedicated modules
- ✓ Develop secure scripts with error handling, testing, and best practices
- ✓ Perform remote administration, background jobs, and system monitoring
Training content
1 Fundamentals
- PowerShell version 5.1 and 7.x
- Configuration and environment
- Extensions (Shell is good, but with extensions it's even better)
- Console or ISE or Visual Studio Code
- Familiar commands from the command prompt
- Commands: syntax, location, aliases, help, settings
- PsProvider: how to access hierarchical information through multiple disk drives
2 Formatting
- Output display and object type
- What to display and how to display it
- Selection or formatting: the differences
3 Pipeline and CmdLets
- What is a command pipeline
- Principles and execution of commands in pipelines
- Characteristics of objects (properties and methods)
- Which command for which result (simple command vs. plural command)
- Calculated columns
- Importing and exporting objects
- Creation of our own objects
- Filtering and looping on objects
4 WMI and CIM
Two different tools for a similar use
- Windows Management Instrumentation control and monitoring of Windows systems.
- Common Information Model allows connection to non-Windows systems.
- Using PowerShell remote access with CIM
- Information requests and WQL language
- Using sessions with CIM
5 Active Directory
- Module management
- Backward compatibility
- Creating objects in the Active Directory
6 Scripts
- Variables (characteristics, scope, usage, type...)
- Security (scope and limitation)
- Saving and testing
- Limits and constraints of functions in scripts, especially at the security level
- Security and certification
- Script execution rules, saving, testing, debugging, error handling
- Documentation of scripts
- Conversion of scripts into modules
7 Remote access
- The WS-MAN protocol with WinRM is reserved for certain PowerShell commands only.
- Limitations related to identification: role and access consistency
- One-to-one or one-to-many connection
- Best practices: organize remote processing and retrieve results locally
- Session management
8 Background Tasks
- Local, Remote, WMI: different functions with different characteristics
- Specific features to launch and manage a task
- Recovery of task results
9 Windows Administration
Intensive lab to consolidate learning
- Management and installation of roles on servers with the ServerManager module
- Manage group policies with the GroupPolicy module
- Use of best practice tools with the BestPractice module
- Management of web sites with the IIS module with the WebAdministration module
📌 Practical information
Our training sessions are offered in Montreal or Quebec City, in person or in a virtual classroom. Dates and locations are specified when you select your session below. If you have any questions, check out our FAQ.