---
title: "Target Exchange Servers Requirements, Permissions, and Ports"
description: "Review Access Analyzer requirements, permissions, and firewall ports for scanning target Exchange servers, including supported versions and data collectors."
sidebar_position: 20
---

# Target Exchange Servers Requirements, Permissions, and Ports

The Access Analyzer for Exchange Solution is compatible with the following Exchange Server versions
as targets:

- Exchange 2019 (Limited)
- Exchange 2016 (Limited)
- Exchange 2013
- Exchange 2010 (Limited)

See the [Exchange Support and Permissions Explained](/docs/accessanalyzer/12.0/solutions/exchange/requirements/support/support.md) topic for
details on the type of auditing supported by data collector and by job group.

**Domain Controller Requirements**

The following are requirements for the Exchange servers to be scanned:

- Enable Remote PowerShell on one Client Access Server (CAS)
- Enable Windows Authentication for the PowerShell Virtual Directory on the same CAS
- .NET Framework 4.5+ installed on all Exchange servers to be targeted
- WINRM Service installed on all Exchange servers to be targeted as a back up if there is a
  remote PowerShell failure
- Within the Access Analyzer Console, the global **Settings > Exchange** node must be configured

    :::note
    For Exchange 2013, 2016, and 2019 – If you configure the global Settings for "MAPI over HTTP,"
    you supply an actual CAS server name, and the ExchangePS Data Collector uses it. If you configure
    the global Settings for "MAPI over HTTPS," the global Settings use a web address instead of an
    actual server. In this case, each ExchangePS query requires you to set the CAS server as the
    specific server on the Category page. See the
    [ExchangePS Data Collector & Client Access Server](/docs/accessanalyzer/12.0/solutions/exchange/recommended.md)
    topic for a list of queries for which this would apply.
    :::


**Data Collectors**

This solution employs the following data collector to scan the target environment:

- [ADInventory Data Collector](/docs/accessanalyzer/12.0/admin/datacollector/adinventory/overview.md)
- [EWSMailbox Data Collector](/docs/accessanalyzer/12.0/admin/datacollector/ewsmailbox/overview.md)
- [EWSPublicFolder Data Collector](/docs/accessanalyzer/12.0/admin/datacollector/ewspublicfolder/overview.md)
- [Exchange2K Data Collector](/docs/accessanalyzer/12.0/admin/datacollector/exchange2k/overview.md)
- [ExchangeMailbox Data Collector](/docs/accessanalyzer/12.0/admin/datacollector/exchangemailbox/overview.md)
- [ExchangeMetrics Data Collector](/docs/accessanalyzer/12.0/admin/datacollector/exchangemetrics/overview.md)
- [ExchangePS Data Collector](/docs/accessanalyzer/12.0/admin/datacollector/exchangeps/overview.md)
- [ExchangePublicFolder Data Collector](/docs/accessanalyzer/12.0/admin/datacollector/exchangepublicfolder/overview.md)
- [SMARTLog Data Collector](/docs/accessanalyzer/12.0/admin/datacollector/smartlog/overview.md)

## Permissions

**For .Active Directory Inventory Prerequisite**

- Read access to directory tree
- List Contents & Read Property on the Deleted Objects Container

    :::note
    See the Microsoft
    [Searching for Deleted Objects](https://technet.microsoft.com/en-us/library/cc978013.aspx)
    article and the Microsoft
    [Dsacls](https://technet.microsoft.com/en-us/library/cc771151(v=ws.11).aspx) article for
    additional information.
    :::


For Exchange Web Services API Permissions with the EWSMailbox Data Collector

- Exchange Admin Role
- Discovery Management Role
- Application Impersonation Role
- Exchange Online License

See the [Exchange Web Services API Permissions](/docs/accessanalyzer/12.0/solutions/exchange/requirements/support/webservicesapi.md) topic for
additional information.

For Exchange Web Services API Permissions with the EWSPublicFolder Data Collector

- Exchange Admin Role
- Discovery Management Role
- Application Impersonation Role
- Exchange Online License with a mailbox

See the [Exchange Web Services API Permissions](/docs/accessanalyzer/12.0/solutions/exchange/requirements/support/webservicesapi.md) topic for
additional information.

**For Exchange2K Data Collector**

- Member of the Exchange Administrator group
- Domain Admin for AD property collection
- Public Folder Management

**For ExchangeMailbox Data Collector**

- Member of the Exchange Administrator group
- Organization Management
- Discovery Management

**For Exchange Mail Flow with ExchangeMetrics Data Collector**

- Member of the local Administrator group on the targeted Exchange servers

See the [Exchange Mail-Flow Permissions](/docs/accessanalyzer/12.0/solutions/exchange/requirements/support/mailflow.md) topic for additional
information.

**For Exchange Remote Connection with SMARTLog Data Collector**

- Member of the local Administrators group

See the [Exchange Remote Connections Permissions](/docs/accessanalyzer/12.0/solutions/exchange/requirements/support/remoteconnections.md) topic
for additional information.

**For Exchange PowerShell with ExchangePS Data Collector**

- Remote PowerShell enabled on a single Exchange server
- Windows Authentication enabled for the PowerShell Virtual Directory on the same Exchange server
  where Remote PowerShell has been enabled
- View-Only Organization Management Role Group
- Discovery Search Management Role Group
- Public Folder Management Role Group
- Mailbox Search Role

See the [Exchange PowerShell Permissions](/docs/accessanalyzer/12.0/solutions/exchange/requirements/support/powershell.md) topic for additional
information.

**For ExchangePublicFolders Data Collector**

- Member of the Exchange Administrator group
- Organization Management

## Ports

The following firewall ports are needed:

**For ADInventory Data Collector**

- TCP 389
- TCP 135-139
- Randomly allocated high TCP ports

**For EWSMailbox Data Collector**

- TCP 389
- TCP 443

**For EWSPublicFolder Data Collector**

- TCP 389
- TCP 443

**For Exchange2K Data Collector**

- TCP 135-139
- Randomly allocated high TCP ports
- TCP 389
- Optional TCP 445

**For ExchangeMailbox Data Collector**

- TCP 135
- Randomly allocated high TCP ports

**For ExchangeMetrics Data Collector**

- TCP 135
- Randomly allocated high TCP ports

**For ExchangePS Data Collector**

- TCP 135
- Randomly allocated high TCP ports

**For ExchangePublicFolder Data Collector**

- TCP 135
- Randomly allocated high TCP ports

**For SMARTLog Data Collector**

- TCP 135
- TCP 445
- Randomly allocated high TCP ports
