Microsoft Entra – PowerShell module now generally available – Exploring Microsoft Entra PowerShell – 1

Installing MS Entra PowerShell module
Installing MS Entra PowerShell module

Hi All,

Greetings for the day!!!

In last week, Microsoft announced general availability (GA) of the Microsoft Entra PowerShell module.

On Knowledge-Junction, I will start sharing articles on Microsoft Entra PowerShell module.

What is Microsoft Entra PowerShell module?

  • Microsoft Entra PowerShell module is PowerShell module designed to streamline and automation for Microsoft Entra.
  • The Microsoft Entra PowerShell module is a command-line tool. Allows administrators and developers to manage and automate Microsoft Entra resources programmatically.
  • Microsoft Entra PowerShell module includes
    • Managing users
    • Groups
    • Applications
    • Service Principals
    • Policies and more
  • Microsoft Entra PowerShell module is developed upon Microsoft Graph PowerShell SDK.
  • Microsoft Entra PowerShell works with Windows PowerShell 5.1 and PowerShell 7+.

How to install Microsoft Entra PowerShell module ?

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

Installing MS Entra PowerShell module
fig 1 : Installing MS Entra PowerShell module
  • We check installation of “Microsoft.Entra” PowerShell module is installed using “Get-Module“.

Get-Module -Name Microsoft.Entra

MS Entra PowerShell module
fig 2 : MS Entra PowerShell module

View all Microsoft Entra PowerShell CMDLETS

  • We will use “Get-Command” PowerShell CMDLET to view all Microsoft Entra PowerShell CMDLET

Get-Command -Module Microsoft.Entra*

Microsoft Entra PowerShell CMDLETs
fig 3 : Microsoft Entra PowerShell CMDLETs

Demo – Executing Microsoft Entra PowerShell CMDLET – “Get-EntraUser”

Connect to Microsoft Entra

  • We will use “Connect-Entra” PowerShell CMDLET to connect Microsoft Entra

Connect-Entra

Connecting to Microsoft Entra - Connect-Entra
fig 4 : Connecting to Microsoft Entra – Connect-Entra
  • Once we connected to Microsoft Entra, we are ready to execute Microsoft Entra PowerShell CMDLETs
  • Lets get all the users in our tenant
  • We will use “Get-EntraUser” PowerShell CMDLET to get all users.

Get-EntraUser

Executing "Get-EntraUser" Microsoft Entra PowerShell CMDLET
fig : 5 – Executing “Get-EntraUser” Microsoft Entra PowerShell CMDLET

REFERENCES

Thanks for reading!!!

HAVE A FANTASTIC TIME AHEAD !!! LIFE IS BEAUTIFUL 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL. ENJOY THE WHOLE JOURNEY :) Founder of Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

Leave a Reply

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

Discover more from Microsoft 365

Subscribe now to keep reading and get access to the full archive.

Continue reading