Microsoft 365

Microsoft 365: Invite Guest Users with PowerShell

Guests can attend meetings, view documents and chat in Teams they’re invited to. In this blog post I am going to show you a One-Liner for inviting guests to your Microsoft 365 tenant. Let’s dive in.

Connect to Azure AD

First of all we need to connect to Azure AD.

Connect-AzureAD

If this command fails, you may need to install the module if you haven’t already.

Install-Module AzureAD -AllowClobber -Force

Invite Guests

Now we are ready for the action. The command below invites a user and redirects this user to an URL.

New-AzureADMSInvitation `
-InvitedUserEmailAddress f.huber@sid-500.com `
-SendInvitationMessage $True `
-InviteRedirectUrl "http://myapps.microsoft.com"

Invitation successful.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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