How to install Azure AD preview module with PowerShell?

How to install Azure AD preview  module with PowerShell?

In order to use new functionality within Microsoft 365, Teams or Azure it is sometimes necessary to log in with PowerShell log in. In this practical guide you can get started with installing the necessary Azure AD Preview module. Some example scripts are described in the article.

Also readHow to start using Powershellfor managing Microsoft 365?

Open Powershell as administrator

1

Install the PowerShell module from Azure AD

Run the following line in PowerShell:

install-package -Name AzureAD

Connect to AzureAD

Connect-AzureAD
1
1

Changing a UPN via PowerShell

Set-MsolUserPrincipalName -UserPrincipalName info@edu365tips.onmicrosoft.com -NewUserPrincipalName info@edu.365tips.be

If your script does not work, install the MSOnline module

Install-Module -Name MSOnline
1

Connect to Azure AD

Connect-msolservice
1

Exchange PowerShell Need a connection?

Use this blog to install the new version of the Exchange PowerShell module with the possibility of modern authentication so MFA.

Jasper

Jasper

Welcome to 365tips.be. On this website you can read articles and experiences about Office 365 with focus on Microsoft Teams. Feel free to ask me a question and I will answer it in a blog post. Help others by giving feedback at the bottom of the articles. This blog is made in Dutch. The multilingual website is offered with best-effort machine translation.
0 0 votes
Product review
Subscribe
Please let us know if there are
guest
0 Reactions
Inline feedbacks
See all comments
0
Would love to know your thoughts, please leave a comment.x
()
x