We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda Message Archiver

Configure an Office 365 Exchange Online Service Account

  • Last updated on

This article refers to Barracuda Message Archiver Legacy Release firmware or higher.

An Office 365 Exchange online service account provides Exchange Server directory permissions to grant the Barracuda Message Archiver read access to all mailboxes.

If you encounter issues running the PowerShell scripts in this article, you can temporarily change the Windows PowerShell script execution policy to unrestricted. Important: This setting removes all restrictions which means unauthorized PowerShell scripts can run. For more information, refer to the Microsoft TechNet article Using the Set-ExecutionPolicy Cmdlet.

Requirements

  • Windows 8 or 8.1

  • Windows Server 2012 or Windows Server 2012 R2

  • Windows 7 Service Pack 1 (SP1)

  • Windows Server 2008 R2 SP1

  • Microsoft .NET Framework 4.5 or 4.5.1 and either the Windows Management Framework 3.0 or the Windows Management Framework 4.0

  • Verify the service account has a mailbox, and is not hidden in the Global Address list

Microsoft Exchange Online

Microsoft Exchange Online message throttling policies set bandwidth limits and restrict the number of processed messages. Throttling is enabled by default in Microsoft Exchange Online. Currently you cannot set policies to disable throttling in Exchange Online; for details, refer to the Microsoft Outlook dev blog. Barracuda is working on a solution to provide this option in the future.

Connect to Office 365 Exchange Online

  1. Open Windows PowerShell, enter the following command, and then press Enter:
    $UserCredential = Get-Credential
  2. In the Windows PowerShell Credential Request dialog box, enter your Exchange Online user name and password, and then click OK.
  3. Enter the following command, and then press Enter:
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

    For more information, refer to the Microsoft TechNet article Connect to Exchange Online using remote PowerShell.

  4. Enter the following command, and then press Enter:
    Import-PSSession $Session
  5. Enter the following command, and then press Enter:
    Get-Mailbox -ResultSize unlimited | Add-MailboxPermission -User ServiceAccount@domain.com -AccessRights fullaccess -InheritanceType all -Automapping $false
    Where ServiceAccount@domain.com represents your service account.

    Permissions are assigned on existing mailboxes only; if additional mailboxes are added to your organization, you must rerun this command.

Last updated on