hands-on lab

Managing Microsoft 365 Users Using Microsoft Graph PowerShell

Beginner
1h
131
4/5
This lab is currently under maintenance. You can start the lab, but some instructions and screenshots may be inaccurate. We are actively working to resolve this issue and we apologize for any inconvenience.

Microsoft has currently disabled new registrations for the MS 365 Dev program. For the time being, please treat the lab as read-only or bring your own MS 365 account. Our team is currently working on an update, thank you for your understanding.

Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab description

Microsoft Graph PowerShell is a great tool to interact with your Microsoft 365 environment via a command-line interface. As a system administrator, you may be tasked with managing users in your Microsoft 365 environment. Microsoft Graph PowerShell gives you the ability to easily and quickly create users on Microsoft 365, amend their details, even remove users, and much more. 

In this lab, you will explore the Microsoft Graph PowerShell module by managing users in your Microsoft 365 environment.

Note: Due to this lab requiring the creation of a Microsoft 365 organization with an Admin Center, if you don't already have one you will need to provide a mobile phone number to pass the account creation process.

Learning Objectives

Upon completion of this lab, you will be able to:

  • Install Microsoft Graph PowerShell
  • Connect to your Microsoft 365 environment using Microsoft Graph PowerShell
  • Create, update and remove users using Microsoft Graph PowerShell

Intended Audience

  • Microsoft 365 System Administrators interested in scripting to automate and speed up the management of users in Microsoft 365
  • IT Support Analysts 

Prerequisites

Familiarity with the following is recommended:

  • Microsoft 365 Admin Center

The following content can be used to fulfill the prerequisite:

Updates

January 22nd, 2024 - Updated to latest PowerShell and Microsoft.Graph versions

About the author
Avatar
Adil Islam, opens in a new tab
Cloud Labs Developer
Students
7,751
Labs
39
Learning paths
1

Adil is a Microsoft Certified Trainer, former Azure Engineer, and loves all things Azure. He is a certified Azure Administrator and Azure DevOps Expert and has worked for some of the biggest MSPs in the world (Cognizant, New Signature, CoreAzure). He loves to combine his two passions: cloud and teaching.

Adil specializes in Azure Infrastructure services and has a curiosity for new, in-preview services from Azure, getting his hands familiar with the content before most of the world does. Outside of work, Adil helps run a growing community of IT professionals looking to break into the cloud and regularly runs workshops and webinars.

Covered topics
Lab steps
Setting Up A Microsoft 365 Developer Account
Creating a Microsoft 365 PowerShell Session (via Microsoft Graph)
Managing Microsoft 365 Users with PowerShell