In order to make use of the PowerShell commands to manage your Azure AD environment you can install the Azure AD module for PowerShell as follows.
Steps to install Azure AD for PowerShell
- Step 1: Open PowerShell, make sure you open it as an administrator.
- Step 2: To install Azure AD for the PowerShell module run the below command.
Install-Module AzureAD
- Step 3: After the module is installed, you would need to connect Azure AD by running the below command,
Connect-AzureAD
- Step 4: Once connected, you should see the Azure AD tenant name displayed in the PowerShell prompt.
Test if the connection was successful by running a command like Get-AzureADUser
Have Questions? Post them here!
- Fix PowerShell - .ps1 cannot be loaded because running scripts is disabled on this system
- How to Open PowerShell on Mac?
- Download Google Chrome setup exe file using PowerShell
- Connect Azure AD (Active Directory) for PowerShell
- How to check PowerShell version
- Update Powershell Using Command Line
- How to add sleep in Powershell Script
- How to switch to Powershell on Mac Terminal
- Know installed PowerShell Version on Mac
- How to install powershell on macOS
- PowerShell ps1 script is not digitally signed, you cannot run this script on the current system
- How to upgrade PowerShell on Mac
- How to Identify installed PowerShell version
- PowerShell on Mac: The term get-service is not recognized as a name of a cmdlet, function, script file, or executable program
- Run JumpCloud Commands in Powershell
- [Fix] Powershell - Term winget is not recognized as the name of a cmdlet function or script file
- Flash Player will no longer be supported after December 2020. Turn off [Google Chrome] - Chrome
- [fix] White Screen when open Teams on Windows - Teams
- How to create new user account in Windows bash - Bash
- Add or remove users from sudo group - Ubuntu - Ubuntu
- Send Email with attachment using SharePoint PowerShell, SMTP server - SharePoint
- Fix: Teams is in preview in Safari on Mac - Teams
- Change Line Endings (Encoding Windows/Mac/Unix CR/LF/CRLF) Sublime Text - Sublime-Text
- 100+ SEO Tips to improve your website search ranking - HowTos