Exchange ServerTroubleshooting

Exchange Server IRM with the RMS connector: fixing Test-IRMConfiguration failures

Test-IRMConfiguration failing on Exchange Server with the Microsoft RMS connector? Find the failing step, then fix authorization, registry settings, IRM switches or the DRM cache.

With the Microsoft Rights Management (RMS) connector, Exchange Server can use the cloud Azure Rights Management service for IRM: opening protected mail in Outlook on the web, decrypting journal reports and running transport protection rules. When that breaks, Test-IRMConfiguration shows which step fails. Here's how the pieces connect, how to read the output and how to fix each failing step.

Errors this guide fixes

  • Failed to acquire a use licenseTest-IRMConfiguration
  • The attempt to discover the location of the administration service and organization failed.RMS connector setup wizard
How this guide is organised: Symptoms → Why it happens → How to fix it → Verify the fix → Key takeawaysFlow diagram of the article's sections in reading order: 1. Symptoms. 2. Why it happens. 3. How to fix it (6 steps: Confirm the tenant side; Check the connector and its authorization list; Rewrite the registry settings; Switch IRM on; Check the templates transport rules use; Reset the cache when the use license fails). 4. Verify the fix. 5. Key takeaways. Toolbox: Test-IRMConfiguration, Get-RMSTemplate, Get-AipService, ClientAccessServerEnabled, GenConnectorConfig.ps1.1Symptoms2Why it happens3How to fix it4Verify the fix5Key takeaways1Confirm thetenant side2Check theconnector an…3Rewrite theregistry setti…4Switch IRM on5Check thetemplates tra…6Reset thecache when t…TOOLBOXTest-IRMConfigurationGet-RMSTemplateGet-AipServiceClientAccessServerEnabledGenConnectorConfig.ps1How this guide is organised: Symptoms → Why it happens → How to fix it → Verify the fix → Key takeawaysFlow diagram of the article's sections in reading order: 1. Symptoms. 2. Why it happens. 3. How to fix it (6 steps: Confirm the tenant side; Check the connector and its authorization list; Rewrite the registry settings; Switch IRM on; Check the templates transport rules use; Reset the cache when the use license fails). 4. Verify the fix. 5. Key takeaways. Toolbox: Test-IRMConfiguration, Get-RMSTemplate, Get-AipService, ClientAccessServerEnabled, GenConnectorConfig.ps1.1Symptoms2Why it happens3How to fix it1Confirm the tenant side2Check the connector and its authorization list3Rewrite the registry settings4Switch IRM on5Check the templates transport rules use6Reset the cache when the use license fails4Verify the fix5Key takeawaysTOOLBOXTest-IRMConfigurationGet-RMSTemplateGet-AipServiceClientAccessServerEnabledGenConnectorConfig.ps1
At a glance: how this guide is organised · 6 fix steps · 5 key tools

Symptoms#

  • Users can encrypt mail with sensitivity labels in Outlook, but Outlook on the web and mobile users with on-premises mailboxes can't open protected messages, journal reports stay encrypted, or transport protection rules don't apply.
  • Test-IRMConfiguration -Sender user@contoso.com reports FAIL on one of its steps. This is the run Microsoft's KB 2805976 shows, every step passing until the use license (its example uses AD RMS host names; you'll see your own):
Text
Results : Checking Exchange Server ...
              - PASS: Exchange Server is running in Enterprise.
          Loading IRM configuration ...
              - PASS: IRM configuration loaded successfully.
          Retrieving RMS Certification Uri ...
              - PASS: RMS Certification Uri: https://rms.contoso.com/_wmcs/certification.
          Verifying RMS version for https://rms.contoso.com/_wmcs/certification ...
              - PASS: RMS Version verified successfully.
          Retrieving RMS Publishing Uri ...
              - PASS: RMS Publishing Uri: https://rms.contoso.com/_wmcs/licensing.
          Acquiring Rights Account Certificate (RAC) and Client Licensor Certificate (CLC) ...
              - PASS: RAC and CLC acquired.
          Acquiring RMS Templates ...
              - PASS: RMS Templates acquired.
          Retrieving RMS Licensing Uri ...
              - PASS: RMS Licensing Uri: https://rms.contoso.com/_wmcs/licensing.
          Verifying RMS version for https://rms.contoso.com/_wmcs/licensing ...
              - PASS: RMS Version verified successfully.
          Creating Publishing License ...
              - PASS: Publishing License created.
          Acquiring Prelicense for 'user@contoso.com' from RMS Licensing Uri (https://rms.contoso.com/_wmcs/licensing)...
              - PASS: Prelicense acquired.
          Acquiring Use License from RMS Licensing Uri (https://rms.contoso.com/_wmcs/licensing)...
              - FAIL: Failed to acquire a use license. This failure may cause features such as Transport Decryption,
                Journal Report Decryption, IRM in OWA, IRM in EAS and IRM Search to not work.
  • In the KB, the FAIL text continues with AD RMS-specific advice about super user rights for the FederatedEmail arbitration account; the cause Microsoft found behind Failed to acquire a use license was stale cached data (step 6).
  • Installing the connector can stop with: The attempt to discover the location of the administration service and organization failed. Make sure Microsoft Rights Management service is enabled for your organization.

Why it happens#

The chain has four links, and the first FAIL tells you which one is broken:

  1. Tenant: the Azure Rights Management service must be activated, and your Active Directory users and groups must be synchronized to Microsoft Entra ID. Microsoft is explicit that the connector needs synchronized accounts; manually created cloud accounts aren't enough.
  2. Connector: at least two connector servers behind one load-balanced name, with your Exchange servers authorized in the RMS connector administration tool. If onboarding controls limit the protection service to a group, the account you enter in the connector setup wizard must be a member, or you get the "attempt to discover the location" error.
  3. Exchange servers: registry settings written by the server configuration tool, GenConnectorConfig.ps1, redirect Exchange's RMS client to the connector. Microsoft's page covers the Mailbox servers of Exchange 2016 and 2019 (Exchange 2013 needs CU3 or later) and an RMS client that supports Cryptographic Mode 2, which Windows Server 2012 and later include.
  4. Exchange organization: IRM is switched on with InternalLicensingEnabled and ClientAccessServerEnabled.
First failing stepUsual causeGo to
Retrieving or verifying a Certification, Publishing or Licensing Uri; acquiring the RAC and CLCExchange can't reach the connector or isn't authorized: registry not written, one connector server's name instead of the load-balanced name, DNS, firewall or HTTPS trust, leftover AD RMS settingsSteps 2 and 3
Acquiring RMS Templates, or a template missing from Get-RMSTemplateConnectivity as above, or template scope: departmental templates used by transport rules need the application compatibility optionSteps 2 and 5
Prelicense or use licenseStale cached identity or licensing data on the Exchange server, or a test sender that isn't a synchronized userStep 6

How to fix it#

1. Confirm the tenant side#

PowerShell
Connect-AipService
Get-AipService
Get-AipServiceConfiguration | Format-List LicensingIntranetDistributionPointUrl

Get-AipService should return Enabled. Strip /_wmcs/licensing from the LicensingIntranetDistributionPointUrl value and you have your tenant's Azure Rights Management URL, the address the registry redirection maps to the connector.

Note: Microsoft's connector configuration page was last updated in 2022 and lists Exchange 2013 CU3, 2016 and 2019. It doesn't mention Exchange Server SE (KB 2805976, by contrast, now lists SE), so confirm Microsoft's support position before you rely on the connector for SE servers.

2. Check the connector and its authorization list#

  • Open the RMS connector administration tool on a connector server and confirm that every Exchange Mailbox server, or the group that contains them, is allowed to use the connector.
  • From each Exchange server, test the load-balanced name, not a single connector server:
PowerShell
Resolve-DnsName rmsconnector.contoso.com
Test-NetConnection rmsconnector.contoso.com -Port 443

If the connector uses HTTPS, the Exchange servers must trust the certificate presented on that name.

3. Rewrite the registry settings#

Run the server configuration tool on each Exchange Mailbox server, never on the connector servers, with the load-balanced URL. Microsoft's example for Exchange 2016 and 2013:

PowerShell
Get-Help .\GenConnectorConfig.ps1 -Detailed
.\GenConnectorConfig.ps1 -ConnectorUri https://rmsconnector.contoso.com -SetExchange2013

Use Get-Help to confirm which switch your copy of the script expects for Exchange 2019. To check values by hand, use Microsoft's "Registry settings for the Rights Management connector" page; on Exchange 2016 and 2019 these two keys carry the redirection:

PowerShell
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\IRM\LicenseServerRedirection'
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\IRM\CertificationServerRedirection'

Each should hold a value named after your tenant's Azure Rights Management URL whose data is the connector's load-balanced URL. Restart the server only if it was previously configured for AD RMS.

4. Switch IRM on#

PowerShell
Set-IRMConfiguration -InternalLicensingEnabled $true -ClientAccessServerEnabled $true
Get-IRMConfiguration | Format-List InternalLicensingEnabled,ClientAccessServerEnabled,JournalReportDecryptionEnabled,TransportDecryptionSetting,SearchEnabled

ClientAccessServerEnabled lets Exchange open protected mail for Outlook on the web and Exchange ActiveSync clients. Without it, those clients can't display protected messages even when Outlook can.

5. Check the templates transport rules use#

PowerShell
Get-RMSTemplate | Format-Table Name

If a template that a transport protection rule needs is missing, check its scope: Microsoft notes that departmental templates used with Exchange transport rules need Show this template to all users when the applications do not support user identity selected.

6. Reset the cache when the use license fails#

KB 2805976 traces "Failed to acquire a use license" to Exchange using cached identity and licensing data from a deleted and recreated FederatedEmail arbitration mailbox (see recreating arbitration mailboxes). Microsoft's resolution:

PowerShell
Set-IRMConfiguration -InternalLicensingEnabled $false
# Back up, then delete the folders in C:\ProgramData\Microsoft\DRM\Server (hidden system folder)
# Restart the Exchange server, then:
Set-IRMConfiguration -InternalLicensingEnabled $true
Test-IRMConfiguration -Sender user@contoso.com

The KB describes AD RMS deployments. The cache lives on the Exchange server, so the same reset is a reasonable step after a move from AD RMS to the connector, alongside the restart that move needs.

Verify the fix#

  • Run Test-IRMConfiguration -Sender user@contoso.com again. Good looks like PASS on every step and an overall pass.
  • Open a protected message in Outlook on the web from a normal workstation. Don't test with Outlook on an Exchange server: Microsoft warns that client applications on servers configured for the connector might not work with RMS.
  • If you journal and JournalReportDecryptionEnabled is True, new journal reports should carry a decrypted copy of protected messages.
  • Check the Application log on the connector servers for warnings when Exchange servers connect.

Key takeaways#

  • Fix the first FAIL first; later steps depend on the earlier ones.
  • Use the connector's load-balanced name, and keep the authorization list in step with your Mailbox servers.
  • Re-run the test after each cumulative update and any arbitration mailbox change.
  • For what IRM adds on top of Purview labels, see Purview DLP and sensitivity labels with Exchange Server.

References#

Revision history: Oct 2026 — re-checked against Microsoft Learn and the vendors' documentation: 1 correction; 1 detail reworded or labelled as reported by admins.

Written and checked against current Microsoft Learn documentation and the vendor documentation linked in the references. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

Written by

Omer Eltayeb

Intune Subject Matter Expert in Cairo, Egypt, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Configuration Manager, Microsoft Entra ID, Microsoft Defender, Exchange and Microsoft 365 with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)