The new PowerShell Entra ID Module is a powerful tool designed to streamline the management and automation of Microsoft Entra resources. This module is part of the Microsoft Graph PowerShell SDK and offers a range of functionalities to enhance administrative tasks.
One of the key benefits of the Microsoft Entra PowerShell module is its focus on usability. Unlike MS Graph, the module is more user-friendly to operate. Let’s dive in.
Installing the Microsoft Entra PowerShell Module
To install the module run
Install-Module -Name Microsoft.Entra -Repository PSGallery -Scope CurrentUser -Force -AllowClobber

Connect to Microsoft Entra
Next, connect to your tenant. If you need to confirm something, then do it.
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned -Force
Connect-Entra

Retrieving all Entra ID Users
Run the following command to retrieve all cloud users.
Get-EntraUser

For retrieving all Entra ID user commands run Get-Command.
Get-Command -Module Microsoft.Entra.Users

More about the PowerShell Entra ID see here: https://learn.microsoft.com/en-us/powershell/entra-powershell/installation?view=entra-powershell&tabs=powershell%2Cv1&pivots=windows
Categories: Microsoft 365, PowerShell




2 replies »