Exchange PowerShell Commands

This section describes commands that are required or recommended to set service account rights in Microsoft Exchange.

Exchange rolesPowerShell commands

To run these commands, you must log on to the Exchange server and open the Exchange Management Shell in PowerShell.

The commands below all contain the text [Domain\User] as part of the command. Replace this with your domain and the name of the service account when you run the commands.

Give rights to a specific user: The following command can be used to assign extended rights to an Exchange account. See the previous chapter for information on how to configure the ELOxc service account.

Get-Mailbox | Add-ADPermission -User "[Domain\User]" -Extendedrights "[name of right]"

Replace [name of right] in the example above with the specific right, such as Send As.

Information: Send As and Receive As are no longer required for ELOxc EWS to work properly. Send As is recommended because it allows Exchange to send an e-mail with an error message if problems occur.

User impersonation: Required to retrieve messages from the groups and users specified in an action tree. [RoleName] below can be replaced with any name you wish to assign to the role.

New-ManagementRoleAssignment -Name:"[RoleName]" -Role:ApplicationImpersonation -User:"[Domain\User]"

Information: See http://msdn.microsoft.com/en-us/library/bb204095.aspx for more details on application impersonation.

Full access: This right can be useful in some scenarios, but is not required to use ELOxc EWS.

Get-Mailbox | Add-MailboxPermission -User "[Domain\User]" -AccessRights FullAccess

Read access: This right can be useful in some scenarios, but is not required to use ELOxc EWS.

Get-Mailbox | Add-MailboxPermission -User "[Domain\User]" -AccessRights ReadPermission

Was this information helpful?

  • Yes
  • No


The captcha is not correct. Please check the code.

*Mandatory fields

  We do not reply to support requests sent through this form.
If you require assistance, contact your ELO partner or ELO Support.