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.


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 `
-SendInvitationMessage $True `
-InviteRedirectUrl ""

Invitation successful.

Leave a Reply

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

You are commenting using your 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.