Office 365 Send As

We've been using Microsoft Exchange 2007 and 2010 for many years now and I've always used the add-receipientpermission command to give the users the SendAs permission.

Today I had to do it for a company that is using Office 365.

After a google search I found out that I could load a session and connect to the server that's hosting the mailboxes:

First of all you have to create a variable for the credentials that you're going to use with the following command:
    $cred = get-credential

Then you have to create a session object for Microsoft Exchange using the following command:
    $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $cred -Authentication Basic -AllowRedirection

And import it using:
    Import-PSSession $Session

After that you're ready to configure the appropriate permissions:
    Add-RecipientPermission -Identity -Trustee -AccessRights SendAs
(add the SendAs permission for user on

To verify that the permissions were set use:
    Get-RecipientPermission -Identity | Select Trustee, AccessControlType, AccessRights

Popular posts from this blog

Domain Controller Machine Password Reset

Configuring a Certificate on Exchange Receive Connector

Running Multiple NGINX Ingress Controllers in AKS