hands-on lab

Managing Microsoft 365 Groups Using Microsoft Graph PowerShell

Difficulty: Beginner
Duration: Up to 45 minutes
Students: 60
Rating: 3.5/5

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.

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 can use Microsoft 365 groups to manage a collection of users, grouped by a common property. Microsoft Graph PowerShell gives you the ability to easily and quickly manage groups in Microsoft 365:

  • Creating and removing groups
  • Amending group memberships

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

Note: Due to this lab requiring the use of a Microsoft 365 organization with an Admin Center, if you don't already have access to 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 a Microsoft 365 group using Microsoft Graph PowerShell
  • Add and remove users from a Microsoft 365 group

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

October 24th, 2022 - Resolved Microsoft Graph login issue

Covered topics

Lab steps

Setting Up A Microsoft 365 Developer Account
Creating a Microsoft 365 PowerShell Session (via Microsoft Graph)
Managing Microsoft 365 Groups with PowerShell