When you install a fresh instance of Exchange Server Subscription Edition (SE), Exchange 2019, or Exchange 2016, the server installs as a fully functional Trial Edition valid for 180 days.
While the trial has no artificial feature limits, failing to license the server before day 180 causes the Exchange Admin Center (EAC) to display persistent non-compliance banners, limits administration, and risks non-compliance during software audits.
In this guide, we cover how product keys work in the modern Exchange Server Subscription Edition (SE) era, how to upgrade from Standard to Enterprise on the fly, how to obtain and license free Hybrid Edition servers, and how to license an entire Database Availability Group (DAG) with PowerShell.
Exchange Server Licensing Architecture & Key Types
Unlike Windows Server, entering a product key in Exchange does not require downloading a different ISO or reinstalling the operating system. The installed binaries for Trial, Standard, and Enterprise are identical.
- Full Enterprise functionality
- Countdown starts on install day
- Up to 5 mounted DBs (Trial limit)
- Supports up to 5 mounted databases
- Ideal for Edge Transport & small branch offices
- Can be upgraded to Enterprise anytime
- Supports up to 100 mounted databases
- Required for multi-copy DAG deployments
- Supports active Software Assurance (SA)
1. Exchange Server Subscription Edition (SE) Licensing Rules
- Reusing Exchange 2019 Keys: In Exchange Server SE RTM, organizations with active Software Assurance (SA) or cloud subscriptions (Microsoft 365 E3/E5) can activate their SE servers using their existing Exchange Server 2019 CU product keys.
- Upgrading from Standard to Enterprise: You can upgrade an active Standard Edition server to Enterprise Edition at any time simply by entering an Enterprise product key. However, you cannot downgrade from Enterprise to Standard without reinstalling the server.
2. Free Hybrid Edition Product Keys
If your on-premises Exchange servers exist solely to host recipient management tools and act as hybrid mail relays for Exchange Online (Microsoft 365) without hosting any user mailboxes:- You are eligible for a free Exchange Hybrid Server license.
- The Hybrid Configuration Wizard (HCW) detects eligible Microsoft 365 tenants and can automatically stamp the server or provide a free Hybrid product key.
Method 1: Activate Exchange Server Using PowerShell (Recommended)
PowerShell via the Exchange Management Shell (EMS) is the fastest, reboot-proof method to activate single servers or DAG members.
Step 1: Check Current Licensing Status & Remaining Days
Run the following command to inspect the current edition and trial status:
Get-ExchangeServer -Identity "EX01" | Select-Object Name, Edition, IsExchangeTrialEdition, AdminDisplayVersion
To audit all Exchange servers in your Active Directory forest:
Get-ExchangeServer | Format-Table Name, Edition, IsExchangeTrialEdition, AdminDisplayVersion -AutoSize
Step 2: Apply the Product Key
Use the Set-ExchangeServer cmdlet with your 25-character product key:
Set-ExchangeServer -Identity "EX01" -ProductKey "AAAAA-BBBBB-CCCCC-DDDDD-EEEEE"
Warning: Entering the product key writes the license to Active Directory immediately, but the server's local Microsoft Exchange Information Store service (MSExchangeIS) must be restarted for database limits (e.g., expanding from 5 to 100 databases) to take effect.
Step 3: Restart the Information Store Service
If the server is a standalone mailbox server:
Restart-Service MSExchangeIS
Best Practice for DAG Members (Zero-Downtime):
If the server belongs to a Database Availability Group (DAG), do not restartMSExchangeIS abruptly, as it will trigger an uncoordinated database failover:
# 1. Put the DAG node in maintenance mode
Set-ServerComponentState -Identity "EX01" -Component ServerWideOffline -State Inactive -Requester Maintenance
Move-ActiveMailboxDatabase -Server "EX01" -Confirm:$false
# 2. Restart the Information Store
Restart-Service MSExchangeIS
# 3. Resume the server out of maintenance
Set-ServerComponentState -Identity "EX01" -Component ServerWideOffline -State Active -Requester Maintenance
Resume-ClusterNode -Name "EX01"
Method 2: Enter Product Key via the Exchange Admin Center (EAC)
If you prefer the web graphical interface:
- Open the Exchange Admin Center (
https://<ExchangeServerName>/ecp). - In the left navigation tree, navigate to Servers > Servers.
- Select the server you want to license, and click the Edit (Pencil) icon (or click Enter Product Key in the right-hand details pane).
- In the General tab, locate the Enter a valid product key field.
- Type your 25-character product key (hyphens are added automatically) and click Save.
- A warning popup will alert you: "Exchange will restart the Information Store service to apply the product key." Acknowledge the prompt, and schedule the
MSExchangeISservice restart during your change window.
Forest-Wide Exchange Licensing & Trial Expiration Audit Script
Run this PowerShell script to generate a compliance report of all Exchange servers in your infrastructure, calculating days remaining on any trial servers:
function Get-ExchangeLicenseAudit {
[CmdletBinding()]
param ()
$servers = Get-ExchangeServer | Where-Object { $_.IsMailboxServer -or $_.IsEdgeServer }
$report = foreach ($server in $servers) {
$regPath = "HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\Setup"
$installDate = Invoke-Command -ComputerName $server.Name -ScriptBlock {
(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\Setup" -ErrorAction SilentlyContinue).InstallDate
} -ErrorAction SilentlyContinue
$daysRemaining = if ($server.IsExchangeTrialEdition) {
# Standard Exchange trial duration is 180 days
"Trial Active"
} else {
"Licensed (Permanent)"
}
[PSCustomObject]@{
ServerName = $server.Name
Edition = $server.Edition
IsTrial = $server.IsExchangeTrialEdition
BuildVersion = $server.AdminDisplayVersion
LicenseStatus = $daysRemaining
Role = $server.ServerRole
}
}
$report | Format-Table -AutoSize
return $report
}
# Example Usage:
# Get-ExchangeLicenseAudit | Export-Csv -Path .\ExchangeLicenseAudit.csv -NoTypeInformation
Frequently Asked Questions (FAQ)
What happens when the 180-day trial expires?
Exchange does not immediately shut down or dismount databases on day 181. However:- The EAC displays a continuous red banner warning of non-compliance.
- You cannot mount additional databases.
- Automated health probes generate event log warnings (
MSExchange Mid-Tier StorageEvent ID 2004). - Microsoft Premier/Unified Support will require a valid license before troubleshooting issues.
Can I upgrade an Exchange Standard license to Enterprise without rebuilding?
Yes. Simply runSet-ExchangeServer -Identity <Server> -ProductKey <EnterpriseKey> and restart MSExchangeIS. The 5-database limit will instantly expand to 100 databases.