AZ-040 Automating Administration with PowerShell

AZ-040 Automating Administration with PowerShell

Course overview

The course provides you with basic knowledge and skills in using PowerShell to administer and automate Windows servers.

You learn to identify and build the commands you need for a specific task and to write scripts for more advanced tasks, such as automating recurring tasks and generating reports.

The knowledge is useful for a wide range of Microsoft products, including Windows Server, Windows clients, Microsoft Azure, and Microsoft 365. The course does not focus on any single product, but Windows Server is used as an example for the technologies taught.

Course Objective

After the course, you can:

  • Describe the functionality of Windows PowerShell and use it to run and find basic commands
  • Identify and run on-premises system administration cmdlets
  • Working with the Windows PowerShell pipeline
  • Using PSProviders and PSDrives to work with other storage formats
  • Search for system information using WMI and CIM
  • Working with variables, arrays, and hash tables
  • Create basic scripts in Windows PowerShell
  • Administering Remote Computers Using Windows PowerShell
  • Manage Azure resources with PowerShell
  • Manage Microsoft 365 services with PowerShell
  • Using background jobs and scheduled jobs

Target Group

The course is aimed at those who:

  • Works in IT and has experience administering Windows Server, Windows clients, Azure, or Microsoft 365
  • Have experience in server administration, such as Exchange Server, SharePoint Server, or SQL Server
  • Want to learn how to use PowerShell for administration

No prior experience with PowerShell or any other scripting language is required.

Prerequisites

  • Experience in network engineering and implementation of Windows
  • Experience in administration, maintenance and troubleshooting of Windows Server

Certification

This course has no certification.

Trainer

The course is conducted in collaboration with one of Informator’s partners.

More about the course

Course content

Module 1: Getting started with Windows PowerShell

This module provides an introduction to Windows PowerShell and an overview of the product’s features. This 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 learned:

  • Overview of Windows PowerShell
  • Syntax of Windows PowerShell commands
  • Find commands and get help in Windows PowerShell

Lab: Configure Windows PowerShell and find and run commands

  • Configuring the Windows PowerShell console program
  • Configuring the Windows PowerShell ISE program
  • Find and run Windows PowerShell commands
  • Using About files

After the module, you can:

  • Describe key features of Windows PowerShell, and open and configure it
  • Find, learn, and run Windows PowerShell commands
  • Find Windows PowerShell commands to perform specific tasks

Module 2: Windows PowerShell for local system administration

This module introduces you to the different types of cmdlets commonly used for system administration. You can search for cmdlets whenever you need to perform a task, but it is more effective to have at least a basic understanding of these cmdlets. This module also explains how to manage Windows 10 using PowerShell.

Lessons learned:

  • Cmdlets for Active Directory Domain Services administration
  • Cmdlets for network configuration
  • Cmdlets for server administration
  • Windows PowerShell in Windows 10

Lab: Perform local system administration with PowerShell

  • Create and manage Active Directory objects
  • Configuring network settings on Windows Server
  • Create a website

After the module, you can:

  • Identify and use CMDLETS for AD DS administration
  • Identify and use network configuration cmdlets
  • Identify and use cmdlets for server administrative tasks
  • Managing Windows 10 using PowerShell

Module 3: Working with the Windows PowerShell pipeline

This module introduces the pipeline feature in 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 features compared to other shells. This module gives you skills and knowledge that help you use Windows PowerShell more efficiently and effectively.

Lessons learned:

  • Understanding the pipeline
  • Selecting, sorting and measuring objects
  • Filter out items from the pipeline
  • Enumerate items in the pipeline
  • Send and forward pipeline data as output

Lab: Using the PowerShell pipeline

  • Selecting, sorting and viewing data
  • Filtering of objects
  • Enumeration of objects
  • Convert objects

After the module, you can:

  • Describe the purpose of the Windows PowerShell pipeline
  • Select, sort, and measure objects in the pipeline
  • Filter out items from the pipeline
  • Enumerate items in the pipeline
  • Send output made up of pipeline data

Module 4: Using PSProviders and PSDrives

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

Lessons learned:

  • Using PSP providers
  • Using PSDrives

Lab: Using PSProviders and PSDrives with PowerShell

  • Create files and folders on a remote computer
  • Create a registry key for your future scripts
  • Create a new Active Directory group

After the module, you can:

  • Using PSP providers
  • Using PSDrives

Module 5: Querying management information using CIM and WMI

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

Lessons learned:

  • Understanding CIM and WMI
  • Query data using CIM and WMI
  • Make changes using CIM and WMI

Lab: Query information using WMI and CIM

  • Query for information using WMI
  • Searching for information using CIM
  • Calling methods

After the module, you can:

  • Distinguishing between CIM and WMI
  • Query for management information using CIM and WMI
  • Call methods by using CIM and WMI

Module 6: Working with variables, arrays and hash tables

Variables are an important component of scripting. You can use variables to perform complex tasks that you cannot complete with a single command. This module explains how to work with variables, arrays, and hash tables as steps in learning how to create Windows PowerShell scripts.

Lessons learned:

  • Use variables
  • Manipulating variables
  • Manipulating arrays and hash tables

Lab: Using variables, arrays, and hash tables in PowerShell

  • Working with variable types
  • Using matrices
  • Using hash tables

After the module, you can:

  • Assign a value to variables
  • Describe how to manipulate variables
  • Describe how to manipulate arrays and hash tables

Module 7: Scripting with Windows PowerShell

This module describes how to package a Windows PowerShell command into a script. With scripts, you can perform repetitive tasks and more complex tasks that cannot be done with a single command.

Lessons learned:

  • Introduction to scripting with Windows PowerShell
  • Script constructs
  • Importing data from files
  • Accept user input
  • Troubleshooting and fault management
  • Features and modules

Lab: Using scripts with PowerShell

  • Signing a script
  • Processing an array with a ForEach loop
  • Processing objects using If statements
  • Create users based on a CSV file
  • Query disk information from remote computers
  • Updating the script to use alternative credentials

After the module, you can:

  • Run a Windows PowerShell script
  • Using Windows PowerShell script constructs
  • Import data from a file
  • Accept user input for a script
  • Implement error handling for a script
  • Explain functions and modules

Module 8: Administering remote computers with Windows PowerShell

This module introduces you to the Windows PowerShell remote control technology that allows you to connect to one or more remote computers and instruct them to run commands for you.

Lessons learned:

  • Using basic Windows PowerShell remote control
  • Using advanced Windows PowerShell techniques for remote control
  • Use PSSessions

Lab: Performing remote administration with PowerShell

  • Activate remote control on the local computer
  • Performing one-to-one relocation
  • Performing one-to-many remote control
  • Using implicit remote control

After the module, you can:

  • Describe architecture and security for remoting
  • Using advanced Windows PowerShell techniques for remote control
  • Create and manage persistent remoting sessions

Module 9: Managing Azure resources with PowerShell

This module contains information on how to install the modules needed for cloud service management. It explains how to use PowerShell commands to perform some simple administrative tasks on cloud resources such as Azure virtual machines (VMs), Azure storage accounts, and Azure subscriptions. The module also describes how to use the Azure Cloud Shell environment to perform PowerShell-based or Bash-based administration directly from the Azure portal.

Lessons learned:

  • Azure PowerShell
  • Introducing the Azure Cloud Shell
  • Managing Azure VMs with PowerShell
  • Managing storage and subscriptions

Lab: Managing Azure resources with PowerShell

  • Activating the Azure subscription and installing the PowerShell Az module
  • Using the Azure Cloud Shell
  • Manage Azure resources with Azure PowerShell

After the module, you can:

  • Describe, install and use the Azure PowerShell environment
  • Describe and use Azure Cloud Shell
  • Managing Azure VMs with PowerShell
  • Manage Azure storage accounts and subscriptions with Azure PowerShell

Module 10: Managing Microsoft 365 services with PowerShell

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

Lessons learned:

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

Lab: Manage Microsoft 365 with PowerShell

  • Manage users and groups in Azure AD
  • Managing Exchange Online
  • Management of SharePoint
  • Managing Microsoft Teams

After the module, you can:

  • Using PowerShell to manage users, groups and licenses in Azure AD
  • Managing Exchange Online with PowerShell
  • Managing 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 scheduled jobs and retrieve job results.

Lessons learned:

  • Use background jobs
  • Use scheduled jobs

Lab: Managing jobs with PowerShell

  • Starting and managing jobs
  • Create a scheduled job

After the module, you can:

  • Create and manage background jobs
  • Create and manage scheduled jobs

Course overview

34500 kr

5 days

Advanced

Can’t find a (suitable) date, but are interested in the course? Send in an expression of interest and we will do what we can to get an opportunity that suits.

För samtliga utbildningar gäller våra
Allmänna Villkor.

Company-adapted course

The course can be adapted from several perspectives:
  • Content and focus area
  • Scope of application
  • Structure

In collaboration with the course leader, we make sure that the course meets your wishes

Expression of interest