AZ-040: Automating Administration with PowerShell

This course provides students with the fundamental knowledge and skills to use Windows PowerShell for administering and automating administration of Windows servers.

«The instructor taught us in detail the way you need to create a script. Very impressed.» Course delegate

 

This course provides students the skills to identify and build the command they require to perform a specific task. In addition, students learn how to build scripts to accomplish advanced tasks such as automating repetitive tasks and generating reports.

This course provides prerequisite skills supporting a broad range of Microsoft products, including Windows Server, Windows Client, Microsoft Exchange Server, Microsoft SharePoint Server, Microsoft SQL Server, and Microsoft System Center. In keeping with that goal, this course will not focus on any one of those products, although Windows Server, which is the common platform for all of those products, will serve as the example for the techniques this course teaches.

Audience

This course is intended for IT Professionals who are already experienced in general Windows Server, Windows client, Azure, and Microsoft 365 administration, and who want to learn more about using Windows PowerShell for administration.

No prior experience with any version of PowerShell or any scripting language is assumed. This course is also suitable for IT Professionals already experienced in server administration, including Microsoft Exchange Server, Microsoft SharePoint Server, and Microsoft SQL Server.

Prerequisites

  • Experience with Windows networking technologies and implementation.
  • Experience with Windows Server administration, maintenance, and troubleshooting.

Course goals

After completing this course, students will be able to:

  • Describe the functionality of Windows PowerShell and use it to run and find basic commands
  • Identify and run cmdlets for local system administration
  • Work with the Windows PowerShell pipeline
  • Use PSProviders and PSDrives to work with other forms of storage
  • Query system information by using WMI and CIM
  • Work with variables, arrays, and hash tables
  • Write basic scripts in Windows PowerShell
  • Administer remote computers with Windows PowerShell
  • Manage Azure resources with PowerShell
  • Manage Microsoft 365 services with PowerShell
  • Use background jobs and scheduled jobs.

Course content

Module 1: Getting started with Windows PowerShell

This module will introduce you to Windows PowerShell and provide an overview of the product’s functionality. The module explains how to open and configure Windows PowerShell. It also explains how to run commands and use the built-in Help system in Windows PowerShell.

Lessons:

  • Windows PowerShell overview
  • Understanding Windows PowerShell command syntax
  • Find commands and getting help in Windows PowerShell

Module 2: Windows PowerShell for local systems administration

This module introduces you to the different types of cmdlets commonly used for system administration. While you can search for cmdlets each time you need to accomplish a task, it is more efficient to have at least a basic understanding of these cmdlets. This module also explains how to install and start using Windows PowerShell in Windows 10.

Lessons:

  • Active Directory Domain Services administration cmdlets
  • Network configuration cmdlets
  • Server administration cmdlets
  • Windows PowerShell in Windows 10

Module 3: Working with the Windows PowerShell pipeline

This module introduces the pipeline feature of Windows PowerShell. The pipeline feature is included in several command-line shells such as the command prompt in the Windows operating system. However, the pipeline feature in Windows PowerShell provides more complex, flexible, and capable functionalities compared to other shells. This module provides you with the skills and knowledge that will help you use Windows PowerShell more effectively and efficiently.

Lessons:

  • Understand the pipeline
  • Select, sort, and measure objects
  • Filter objects out of the pipeline
  • Enumerate objects in the pipeline
  • Send and pass pipeline data as output

Module 4: Using PSProviders and PSDrives

This module introduces the PSProviders and PSDrives adapters. A PSProvider is basically a Windows PowerShell adapter that makes some form of storage resemble a disk drive. A PSDrive is an actual connection to a form of storage. You can use these two adapters to work with various forms of storage by using the same commands and techniques that you use to manage the file system.

Lessons:

  • Using PSProviders
  • Using PSDrives

Module 5: Querying management information by using CIM and WMI

This module introduces you to two parallel technologies: Windows Management Instrumentation (WMI) and Common Information Model (CIM). Both these technologies provide local and remote access to a repository of management information including access to robust information available from the operating system, computer hardware, and installed software.

Lessons:

  • Understand CIM and WMI
  • Query data by using CIM and WMI
  • Make changes by using CIM and WMI

Module 6: Working with variables, arrays, and hash tables

This module provides you the skills and knowledge required to use variables, arrays, and hash tables in Windows PowerShell.

Lessons:

  • Use variables
  • Manipulate variables
  • Manipulate arrays and hash tables

Module 7: Windows PowerShell scripting

This module explains how to package a Windows PowerShell command in a script. Scripts allow you to perform repetitive tasks and more complex tasks than cannot be accomplished in a single command.

Lessons:

  • Introduction to scripting with Windows PowerShell
  • Script constructs
  • Import data from files
  • Accept user input
  • Troubleshooting and error handling
  • Functions and modules

Module 8: Administering remote computers with Windows PowerShell

This module introduces you to the Windows PowerShell remoting technology that enables you to connect to one or more remote computers and instruct them to run commands on your behalf.

Lessons:

  • Use basic Windows PowerShell remoting
  • Use advanced Windows PowerShell remoting techniques
  • Use PSSessions

Module 9: Managing Azure resources with PowerShell

This module provides information about Azure PowerShell. It also introduces Azure Cloud Shell. It explains how to manage Azure VMs with PowerShell. The module also describes how you can manage storage and Azure subscriptions with Azure PowerShell.

Lessons:

  • Azure PowerShell
  • Introduce Azure Cloud Shell
  • Manage Azure VMs with PowerShell
  • Manage storage and subscriptions

Module 10: Managing Microsoft 365 services with PowerShell

This module describes how to use PowerShell to manage Microsoft 365 user accounts, licenses, and groups, Exchange Online, SharePoint Online, and Microsoft Teams.

Lessons:

  • Manage Microsoft 365 user accounts, licenses, and groups with PowerShell
  • Manage Exchange Online with PowerShell
  • Manage SharePoint Online with PowerShell
  • Manage Microsoft Teams with PowerShell

Module 11: Using background jobs and scheduled jobs

This module describes how to use background jobs and scheduled jobs. It also explains how to create schedules jobs and retrieve job results.

Lessons:

  • Use background jobs
  • Use scheduled jobs

Certification

There is no certification related to this course.