Skip to main content

Instructor-led training

AZ-040: AUTOMATING ADMINISTRATION WITH POWERSHELL Training in Spring Valley, New York

Private .NET training for organizations from Hartmann Software Group, delivered onsite in Spring Valley, New York or live online.

What you'll learn

This course provides students with the fundamental knowledge and skills to use PowerShell for administering and automating administration of Windows servers. 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 Azure, and Microsoft 365. 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.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Spring Valley, New York or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

Before attending this course, students must have: Experience with Windows networking technologies and implementation. Experience with Windows Server administration, maintenance, and troubleshooting.

Course Outline

Description

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
  • Understan Windows PowerShell command syntax
  • Find commands and get help in Windows PowerShell

Lab : Configuring Windows PowerShell, and finding and running commands

 

  • Configuring the Windows PowerShell console application
  • Configuring the Windows PowerShell ISE application
  • Finding and running Windows PowerShell commands
  • Using About files

After completing this module, students will be able to:

  • Describe key features of Windows PowerShell, and open and configure it.
  • Discover, learn, and run Windows PowerShell commands.
  • Find Windows PowerShell commands for performing specific tasks.

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 manage Windows 10 by using PowerShell..

Lessons

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

Lab : Performing local system administration with PowerShell

 

  • Creating and managing Active Directory objects
  • Configuring network settings on Windows Server
  • Creating a website

After completing this module, students will be able to:

  • Identify and use cmdlets for AD DS administration.
  • Identify and use cmdlets for network configuration.
  • Identify and use cmdlets for server administration tasks.
  • Manage Windows 10 using PowerShell

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

Lab : Using PowerShell pipeline

 

  • Selecting, sorting, and displaying data
  • Filtering objects
  • Enumerating objects
  • Converting objects

After completing this module, students will be able to:

  • Describe the purpose of the Windows PowerShell pipeline.
  • Select, sort, and measure objects in the pipeline.
  • Filter objects out of the pipeline.
  • Enumerate objects in the pipeline.
  • Send output consisting of pipeline data.

Module 4: Using PSProviders and PSDrives

This module introduces the PSProviders and PSDrives adapters. A PSProvider is basically a Windows PowerShell adapter 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 technologies 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

Lab : Using PSProviders and PSDrives with PowerShell

 

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

After completing this module, students will be able to:

  • Use PSProviders.
  • Use 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

Lab : Querying information by using WMI and CIM

 

  • Querying information by using WMI
  • Querying information by using CIM
  • Invoking methods

After completing this module, students will be able to:

  • Differentiate between CIM and WMI.
  • Query management information by using CIM and WMI.
  • Invoke methods by using CIM and WMI.

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

Variables are an essential component of scripts. You can use variables to accomplish complex tasks that you can’t complete by using 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

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

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

 

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

After completing this module, students will be able to:

  • Assign a value to variables.
  • Describe how to manipulate variables.
  • Describe how to 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

Lab : Using scripts with PowerShell

 

  • Signing a script
  • Processing an array with a ForEach loop
  • Processing items by using If statements
  • Creating users based on a CSV file
  • Querying disk information from remote computers
  • Updating the script to use alternate credentials

After completing this module, students will be able to:

  • Run a Windows PowerShell script.
  • Use Windows PowerShell scripting 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 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

Lab : Performing remote administration with PowerShell

 

  • Enabling remoting on the local computer
  • Performing one-to-one remoting
  • Performing one-to-many remoting
  • Using implicit remoting

After completing this module, students will be able to:

  • Describe remoting architecture and security.
  • Use advanced Windows PowerShell remoting techniques.
  • Create and manage persistent remoting sessions.

Module 9: Managing Azure resources with PowerShell

This module provides information about installing the necessary modules for cloud services 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. This 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

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

Lab : Azure resource management with PowerShell

 

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

After completing this module, students will be able to:

  • Describe, install, and use the Azure PowerShell environment
  • Describe and use Azure Cloud Shell.
  • Manage 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 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

Lab : Managing Microsoft 365 with PowerShell

 

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

After completing this module, students will be able to:

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

Lessons

  • Use background jobs
  • Use scheduled jobs

Lab : Jobs management with PowerShell

 

  • Starting and managing jobs
  • Creating a scheduled job

After completing this module, students will be able to:

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

What makes PowerShell automation hard to master

The syntax is small. The difficulty is a change in mindset: PowerShell commands pass objects, not text, and most of the course builds on that idea.

  • Pipeline thinking. Module 3 covers selecting, sorting and measuring objects, filtering them out of the pipeline, enumerating them, and sending pipeline data as output. Administrators used to parsing text output often filter too late or format too early. Formatting for display can destroy the objects a later command needs.
  • Finding the command yourself. Module 1 teaches command syntax, the built-in Help system and About files. Learners who skip this lean on copied snippets and stall when a task differs slightly.
  • Uniform access to different stores. PSProviders and PSDrives (Module 4) let the same commands work on the file system, the registry and other storage. The abstraction feels odd until you create a registry key the way you would create a folder.
  • CIM versus WMI. Module 5 asks you to differentiate the two, query management data, and invoke methods. Both reach the same kind of repository, so it is easy to use one without knowing why.
  • From one-liners to scripts. Modules 6 and 7 move from variables, arrays and hash tables to loops, conditionals, CSV import, user input, error handling, functions and modules, and script signing. Error handling is where scripts that work on one machine fail across a fleet.
  • Scale and trust. Remoting (Module 8) covers one-to-one, one-to-many and implicit remoting, persistent PSSessions, and remoting architecture and security. Jobs (Module 11) cover background and scheduled work.

Modules 9 and 10 apply the same skills to Azure resources and Microsoft 365 services. Those modules rely on the pipeline, variable and scripting habits from earlier modules.

Who it suits and what to take around it

This is a general-level, four-day course for Windows administrators who want to automate their work. The stated prerequisites are experience with Windows networking and with Windows Server administration, maintenance and troubleshooting. Prior scripting experience is not listed. Module 1 starts with opening and configuring the console and ISE.

The course deliberately avoids focusing on one product. Windows Server is the example platform, and the skills carry to Windows Client, Azure and Microsoft 365. It suits system administrators, support engineers and training managers who want a common automation baseline for a mixed team.

After this course:

Illustrative applications

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

  • Bulk onboarding. For example, an IT team might read a CSV file, create Active Directory users in a loop, add error handling for bad rows, and run the script with alternate credentials. This draws on Modules 2, 6 and 7.
  • Fleet inventory report. A team might query disk and hardware data from many servers through CIM, filter and sort the results in the pipeline, and run the collection over one-to-many remoting. It could then be set up as a scheduled job. This combines Modules 3, 5, 8 and 11.
  • Hybrid administration. An administrator might use the Az module to manage Azure virtual machines and storage accounts, then use Microsoft 365 commands to adjust licenses and groups, Exchange Online mailboxes or Teams settings. Modules 9 and 10 cover those areas.

AI coding assistants and PowerShell automation

AI coding assistants can draft pipelines, loops, CSV-import scripts and remoting boilerplate quickly. That is useful once you can read what they produce. Typical failures for this material:

  • Invented or mismatched commands. Assistants may produce cmdlets or parameters that do not exist, or that belong to a different module than the one you installed. This is a risk in the Azure and Microsoft 365 modules, where command sets differ by module and change over time.
  • Text-style solutions. Output may parse strings where the pipeline offers objects, or format data before filtering it.
  • Weak error handling. Generated scripts often assume every item succeeds. They may skip the troubleshooting and error-handling constructs from Module 7.
  • Risky defaults. Scripts that create or modify directory objects, change network settings or open remoting can be unsafe if you do not understand their scope and credentials.

How to verify: check each command with the Help system and About files from Module 1, and inspect the objects a command emits before you filter on their properties. Run changes first against a test account, group or server. Confirm that remoting, credentials and any script signing match your organization's policy before anything goes near production.

Frequently asked questions

What level is this course?

It is a general-level, four-day course. It starts from opening and configuring PowerShell and builds up to scripting, remoting, Azure, Microsoft 365 and jobs.

What should I know before attending?

The stated prerequisites are experience with Windows networking technologies and implementation, and experience with Windows Server administration, maintenance and troubleshooting.

What does the course cover?

It covers finding commands and using Help, cmdlets for AD DS, networking and server administration, the pipeline, PSProviders and PSDrives, CIM and WMI, variables and hash tables, scripting, remoting, Azure PowerShell and Cloud Shell, Microsoft 365 services, and background and scheduled jobs.

Can this course be delivered privately for our team, onsite or online?

Yes. HSG delivers private training for organizations either onsite or live online.

Can the content be customized?

Private training can be tailored, including to the technology versions your organization uses. You can describe your environment and goals through the training proposal request.

Training locations

AZ-040: AUTOMATING ADMINISTRATION WITH POWERSHELL training across the U.S. and beyond.

We provide private AZ-040: AUTOMATING ADMINISTRATION WITH POWERSHELL training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all AZ-040: AUTOMATING ADMINISTRATION WITH POWERSHELL training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.