> For the complete documentation index, see [llms.txt](https://enterprise.hideez.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enterprise.hideez.com/hideez-server-integration/ws-federation-integration/configure-exchange-outlook-web-application-and-exchange-admin-center.md).

# Configure Exchange Outlook Web Application and Exchange Admin Center

Hideez Enterprise Server –  Integration of Hideez Server with Exchange OWA and Exchange AC via WS Federation

{% hint style="info" %}
This integration is designed to enable authentication for the Exchange Outlook Web Application (OWA) and Exchange Admin Center acting as a Service Providers (SP) via the Hideez Server as the Identity Provider (IdP).
{% endhint %}

<figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FCGZfV0uk22rVDbb4hbVf%2Fimage.png?alt=media&amp;token=17d2a031-ea4e-4352-b4f2-e7444fc00823" alt=""><figcaption></figcaption></figure>

## **Step 1: Configure integration for Exchange OWA in Hideez Server**

1. **Login to Hideez Server as Administrator.**
2. **Navigate to WS Federation Settings**:
   * Go to **Settings → Parameters → WS Federation section**.
3. **Add Exchange OWA as a Service Provider**:

* Click **Add Service Provider**.
* Fill in the following details:
  * **Name**: OWA
  * **WT-Realm**: `https://{owa-url}` (e.g., `https://mail.example.com/owa/`)
  * **Reply URL**: `https://{owa-url}` (e.g., `https://mail.example.com/owa/`)
    * In our case `https://exch.lab.hideez.com/owa/`
* Click **Add**.

<div><figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FUzFKoPmzKlfsGc0urs43%2Fimage.png?alt=media&amp;token=54129a52-2113-42b1-a9ed-60b854cc3ca5" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2Fmc4wI9ZKvX64Ty6plQvK%2Fimage.png?alt=media&amp;token=745921e5-bb98-4c53-a579-5ae58778cf5f" alt=""><figcaption></figcaption></figure></div>

4. **Obtain IdP Details**:

* Click on **Details** for the newly added service provider.
* Download the **IdP signing certificate**.
* Copy the **IdP WS Federation URL**.

<figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FhKlGXIAZEwirijOaDisg%2Fimage.png?alt=media&amp;token=8f3b3913-f8cd-4dad-ab5f-ee1e3fc52b45" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
Keep the tab **WS Federation** with values IdP WS Federation URL and the certificate ready for the next step.
{% endhint %}

## **Step 2: Configure integration for** Exchange admin center (EAC) in **Hideez Server**&#x20;

1. **Add an Exchange admin center (EAC) as a Service Provider:**&#x20;

* Click **Add Service Provider**.
* Fill in the following details:
  * **Name**: ECP
  * **WT-Realm**: `https://{ecp-url}` (e.g., `https://mail.example.com/ecp/`)
  * **Reply URL**: `https://{ecp-url}` (e.g., `https://mail.example.com/ecp/`)
    * In our case `https://exch.lab.hideez.com/ecp/`
* Click **Add**.

<div><figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FUzFKoPmzKlfsGc0urs43%2Fimage.png?alt=media&amp;token=54129a52-2113-42b1-a9ed-60b854cc3ca5" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FCLQRDHVvqy5HsCXkKn28%2Fimage.png?alt=media&amp;token=519349d6-803b-4026-b6ba-ef7669b0c7a0" alt=""><figcaption></figcaption></figure></div>

2. **Obtain IdP Details**:

* Click on **Details** for the newly added service provider.
* Download the **IdP signing certificate**.
* Copy the **IdP WS Federation URL**.

<figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FZy3kYRh1qhxsGEAtROtp%2Fimage.png?alt=media&amp;token=804002b0-d00a-4c32-92c2-3f4cc284a4ae" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
Keep the tab **WS Federation** with values IdP WS Federation URL and the certificate ready for the next step.
{% endhint %}

## **Step 3: Configure Exchange Server** Sign-On via Hideez Server

### **1. Install the Certificate on the Exchange Server for Exchange OWA**:

* **Open the MMC Console on the Exchange Server:**

1. Press **Win + R**, type `mmc`, and press **Enter**.
2. In the MMC console, go to **File** → **Add/Remove Snap-in**.
3. Select **Certificates** from the list, then click **Add**.
4. Choose **Computer account** and click **Next** → Select **Local Computer** → Click **Finish** → **OK**.

<div><figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2F6CycYYZ8s4VErtpntkWZ%2FScreenshot_6.png?alt=media&amp;token=6827fbbd-2390-42c5-80d1-c60a1b409e0e" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FDWU7QuSvZezv3UbRURIq%2FScreenshot_7.png?alt=media&amp;token=eef0f88b-110c-406c-add7-425fd8816de8" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FgtwW6NiN85TQinfDPnRF%2FScreenshot_8.png?alt=media&amp;token=3894188c-5763-4639-a34c-550f7e0b6db9" alt=""><figcaption></figcaption></figure></div>

* **Import the Certificate**

1. In the MMC console, navigate to:
   * **Certificates (Local Computer)** → **Trusted Root Certification Authorities** → **Certificates**.
2. Right-click on **Certificates** → **All Tasks** → **Import**.
3. Follow the **Certificate Import Wizard**:
   * Click **Next** and browse to the location of the `ws-fed-signing-owa.cer`
   * Select the certificate and click **Next**.
   * Ensure the certificate is placed in the **Trusted Root Certification Authorities** store.
   * Click **Next** → **Finish**.

<div><figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2F8Y2tENVwYVf3T3lPxFvj%2FScreenshot_21.png?alt=media&amp;token=9d70e926-32e5-41fc-8f76-48a62fb61fbb" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FMf5CnYc78TyxYyJ4E27q%2FScreenshot_13.png?alt=media&amp;token=3f726456-2130-47ef-b418-80022d4e1a5f" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FQFf3vItTuqbsHZuZnp3W%2FScreenshot_15.png?alt=media&amp;token=004cea45-66e8-481c-bfbc-3b94218ed7ba" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FQcypZZS1UL4qOyCZhMax%2FScreenshot_16.png?alt=media&amp;token=b3f471df-e5cf-43c7-9351-f9a7c0a442fd" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2F2Cp1Rk70HG819jOMkRiL%2FScreenshot_17.png?alt=media&amp;token=4f3a94e1-40c4-4933-9d3f-3d1a55b1e69b" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2Ffv6tX2TBRqE9F5pKUobY%2FScreenshot_18.png?alt=media&amp;token=f3c9f3fc-78eb-41f4-84fc-dcf04a854fbb" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FDXI9iZV4atPHM3tFD8Se%2FScreenshot_19.png?alt=media&amp;token=04e42cdd-ad32-47af-a042-b38f0eec3cfb" alt=""><figcaption></figcaption></figure></div>

### **2. Execute Commands in Exchange Management Shell for** Exchange OWA:

* Open the **Exchange Management Shell** and execute the following commands:

{% code overflow="wrap" %}

```
Set-OrganizationConfig -AdfsIssuer "{Hideez WS Fed URL}" -AdfsAudienceUris "{OWA Base URL}" -AdfsSignCertificateThumbprint {Hideez Cert Thumbprint}
```

{% endcode %}

**In the above command:**

* `{OWA Base URL}` is the Exchange OWA host,
* `{Hideez WS Fed URL}` is the Idp WS Federation URL.
* `{Hideez Cert Thumbprint}` is the thumbprint of the certificate you downloaded and installed.&#x20;

**Example**:

{% code overflow="wrap" %}

```powershell
Set-OrganizationConfig -AdfsIssuer "https://dev.hideez.com/wsfed" -AdfsAudienceUris "https://exch.lab.hideez.com/owa/" -AdfsSignCertificateThumbprint d80e7aa3d27ac800fb2d5fa7c08748a73d924cd2
```

{% endcode %}

## **Step 4: Configure** Sign-On to Exchange admin center (EAC) via Hideez Server

### **1. Install the Certificate on the Exchange Server for Exchange OWA**:

* **Open the MMC Console on the Exchange Server:**

1. Press **Win + R**, type `mmc`, and press **Enter**.
2. In the MMC console, go to **File** → **Add/Remove Snap-in**.
3. Select **Certificates** from the list, then click **Add**.
4. Choose **Computer account** and click **Next** → Select **Local Computer** → Click **Finish** → **OK**.

<div><figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2F6CycYYZ8s4VErtpntkWZ%2FScreenshot_6.png?alt=media&amp;token=6827fbbd-2390-42c5-80d1-c60a1b409e0e" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FDWU7QuSvZezv3UbRURIq%2FScreenshot_7.png?alt=media&amp;token=eef0f88b-110c-406c-add7-425fd8816de8" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FgtwW6NiN85TQinfDPnRF%2FScreenshot_8.png?alt=media&amp;token=3894188c-5763-4639-a34c-550f7e0b6db9" alt=""><figcaption></figcaption></figure></div>

* **Import the Certificate**

1. In the MMC console, navigate to:
   * **Certificates (Local Computer)** → **Trusted Root Certification Authorities** → **Certificates**.
2. Right-click on **Certificates** → **All Tasks** → **Import**.
3. Follow the **Certificate Import Wizard**:
   * Click **Next** and browse to the location of the `ws-fed-signing-ecp.cer`
   * Select the certificate and click **Next**.
   * Ensure the certificate is placed in the **Trusted Root Certification Authorities** store.
   * Click **Next** → **Finish**.

<div><figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FuQrD9GSc7CXipYWlB6qZ%2FScreenshot_21.png?alt=media&amp;token=5c332b0c-6427-42dd-be0f-96f2a4c61d70" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FYRy3lCncBsXYAF14IiL1%2FScreenshot_13.png?alt=media&amp;token=07c30ac7-7d3f-4233-9530-ce7a179395db" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FaY9abh59bCfT96K59OrC%2FScreenshot_15.png?alt=media&amp;token=f2eadeec-18f3-4b09-963e-6f19ebfbd7e0" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2F5ImZvbzdycL32MiUntjZ%2FScreenshot_23.png?alt=media&amp;token=42ba2937-e65e-46c8-b32d-8cce171c6bdc" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FBL3Y2yNgMXsfQaDQdRBW%2FScreenshot_24.png?alt=media&amp;token=fcc0b677-0d28-4630-b7a7-47f4e1fe8d88" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2Fr4f7PtF9d1xJdbswjEdf%2FScreenshot_25.png?alt=media&amp;token=9beaffa3-026f-4502-a26a-9e0308d3c9c6" alt=""><figcaption></figcaption></figure> <figure><img src="https://1669663611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdTysrljwe610dPFG7tE%2Fuploads%2FLDSKgDsVF2rPT7fTcdXU%2FScreenshot_26.png?alt=media&amp;token=4d1cefd9-365c-494a-8c90-33fe7baa5391" alt=""><figcaption></figcaption></figure></div>

### **2. Execute Commands in Exchange Management Shell for** Exchange admin center (EAC):

* Open the **Exchange Management Shell** and execute the following commands:

{% code overflow="wrap" %}

```powershell
Set-OrganizationConfig -AdfsIssuer "{Hideez WS Fed URL}" -AdfsAudienceUris "{ECP Base URL}" -AdfsSignCertificateThumbprint {Hideez Cert Thumbprint}
```

{% endcode %}

**In the above command:**

* `{ECP Base URL}` is the Exchange Admin Center (EAC) host,
* `{Hideez WS Fed URL}` is the Idp WS Federation URL.
* `{Hideez Cert Thumbprint}` is the thumbprint of the certificate you downloaded and installed.

**Example**:

{% code overflow="wrap" %}

```powershell
Set-OrganizationConfig -AdfsIssuer "https://dev.hideez.com/wsfed" -AdfsAudienceUris "https://exch.lab.hideez.com/ecp/" -AdfsSignCertificateThumbprint 3e04c68e71a591de637d0d21dcfd8e6f4b843684
```

{% endcode %}

{% hint style="info" %}
If you need to configure both **Outlook Web Application (OWA)** and **Exchange Admin Center (EAC)** simultaneously, you can use the following command:

{% code overflow="wrap" %}

```powershell
Set-OrganizationConfig -AdfsIssuer "{Hideez WS Fed URL}" -AdfsAudienceUris "{OWA Base URL}","{ECP Base URL}" -AdfsSignCertificateThumbprint {Hideez Cert Thumbprint}
```

{% endcode %}

#### Command Parameters Explained:

* **`{Hideez WS Fed URL}`**: The URL of the Hideez WS Federation endpoint, acting as the Identity Provider (IdP) for authentication.
* **`{OWA Base URL}`**: The base URL of the Outlook Web Application Service Provider (SP), such as `https://mail.example.com/owa/`.
* **`{ECP Base URL}`**: The base URL of the Exchange Admin Center (EAC)  Service Provider (SP), such as `https://mail.example.com/ecp/`.
* **`{Hideez Cert Thumbprint}`**: The thumbprint of the Hideez signing certificate installed on the Exchange server, used to establish a trust relationship.

**Example:**

{% code overflow="wrap" %}

```
Set-OrganizationConfig -AdfsIssuer "https://dev.hideez.com/wsfed" -AdfsAudienceUris "https://exch.lab.hideez.com/owa/","https://exch.lab.hideez.com/ecp/" -AdfsSignCertificateThumbprint d80e7aa3d27ac800fb2d5fa7c08748a73d924cd2, 3e04c68e71a591de637d0d21dcfd8e6f4b843684
```

{% endcode %}
{% endhint %}

## **Step 5: Configure Virtual Directories**:

### 1. Configure virtual directories for AD FS authentication for OWA:

{% code overflow="wrap" %}

```powershell
Get-OwaVirtualDirectory | Set-OwaVirtualDirectory -AdfsAuthentication $true -BasicAuthentication $false -DigestAuthentication $false -FormsAuthentication $false -WindowsAuthentication $false
```

{% endcode %}

### 2. Configure virtual directories for AD FS authentication for Exchange admin center (EAC):

{% code overflow="wrap" %}

```powershell
Get-EcpVirtualDirectory | Set-EcpVirtualDirectory -AdfsAuthentication $true -BasicAuthentication $false -DigestAuthentication $false -FormsAuthentication $false -WindowsAuthentication $false
```

{% endcode %}

## **Step 6: Restart Internet Information Services (IIS)**

Restart IIS to apply the changes:

```powershell
net stop was /y
net start w3svc
```
