Microsoft 365

PowerShell: How to install the new Microsoft Entra ID Module

In this post, I’m going to walk you through installing the new Entra ID module so you can manage your Microsoft 365 cloud with PowerShell. It only takes a few commands—super simple. Let’s dive in!

Step 1

Install the Microsoft Entra Module.

Install-Module -Name Microsoft.Entra -Repository PSGallery -Scope CurrentUser -Force -AllowClobber

Step 2

Change the Execution Policy, if needed.

Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned -Force

Step 3

Connect to Entra.

Connect-Entra

Step 4 (recommended)

Run a few commands to make sure everything is fine.

Get-EntraUser
Get-Command -Module Microsoft.Entra.Users

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.