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
Categories: Microsoft 365, PowerShell



