# Ensure Delicensing Resiliency is enabled

Delicensing Resiliency SHOULD be enabled to maintain access to mailboxes when licenses are removed.

Source: https://maester.dev/docs/tests/MT.1083

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/l-gosling" title="Lukas Gosling · Original author"><img src="https://github.com/l-gosling.png" alt="Lukas Gosling" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/l-gosling">Lukas Gosling</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/maester">Maester</a> · Exchange Online · Mailboxes · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId MT.1083
```

## Overview

> **Important:** This test is only available if your tenant has at least **5000 non-trial Exchange Online licenses**.

Delicensing Resiliency SHOULD be enabled to maintain access to mailboxes when licenses are removed.

#### Remediation action

Enable Delicensing Resiliency by running the following PowerShell command in Exchange Online:

```powershell
Set-OrganizationConfig -DelayedDelicensingEnabled:$true
```

##### Optional: Configure User Notifications

You can also configure notifications to inform administrators and end users about delicensing events:

```powershell
# Enable tenant admin notifications for delicensing events
Set-OrganizationConfig -TenantAdminNotificationForDelayedDelicensingEnabled:$true

# Enable end user mail notifications for delicensing events
Set-OrganizationConfig -EndUserMailNotificationForDelayedDelicensingEnabled:$true
```

**Note**: These notification settings help ensure stakeholders are informed when licensing changes occur that could affect mailbox access.

#### Related links

* [Delayed Delicensing in Exchange Online](https://learn.microsoft.com/Exchange/recipients-in-exchange-online/manage-user-mailboxes/exchange-online-delicensing-resiliency)
* [Set-OrganizationConfig](https://docs.microsoft.com/powershell/module/exchange/set-organizationconfig)

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | MT.1083 |
| Severity | Low |
| Suite | Maester |
| Product | Exchange Online |
| Feature | Mailboxes |
| Area | Infrastructure hardening |
| Resource type | Tenant |
| User impact | Low |
| Implementation cost | Low |
| MITRE ATT&CK | None |
| PowerShell test | [Test-MtExoDelicensingResiliency](https://github.com/maester365/maester/blob/main/tests/maester/exchange/Test.MT.1083.ps1) |
| Services | ExchangeOnline, Graph |

</details>

## Source

- Test: [`tests/maester/exchange/Test.MT.1083.ps1`](https://github.com/maester365/maester/blob/main/tests/maester/exchange/Test.MT.1083.ps1)
- Documentation: [`tests/maester/exchange/Test.MT.1083.md`](https://github.com/maester365/maester/blob/main/tests/maester/exchange/Test.MT.1083.md)
