← cd ~/licences
// licences · sku
EXCHANGEARCHIVEExchange Online Archiving for Exchange Server
EXCHANGEARCHIVE is the SKU part number Microsoft uses for Exchange Online Archiving for Exchange Server. You'll see it in Graph, PowerShell, licence reports and group-based licensing errors.
| Product name | Exchange Online Archiving for Exchange Server |
|---|---|
| String ID (SkuPartNumber) | EXCHANGEARCHIVE |
| GUID (SkuId) | 90b5e015-709a-4b8b-b08e-3200f994494c |
| Service plans | 1 |
Service plans included (1)
| Service plan | Name | ID |
|---|---|---|
EXCHANGE_S_ARCHIVE | EXCHANGE ONLINE ARCHIVING FOR EXCHANGE SERVER | da040e0a-b393-4bea-bb76-928b3fa1cf5a |
Is it in your tenant?
Connect-MgGraph -Scopes "Organization.Read.All"
Get-MgSubscribedSku | Where-Object SkuPartNumber -eq "EXCHANGEARCHIVE" |
Select-Object SkuPartNumber, ConsumedUnits, @{ n = "Purchased"; e = { $_.PrepaidUnits.Enabled } }Assign it to a user
For more than a handful of people, use group-based licensing instead. The user needs a usage location set first.
Connect-MgGraph -Scopes "User.ReadWrite.All"
Set-MgUserLicense -UserId "jane.doe@contoso.com" `
-AddLicenses @{ SkuId = "90b5e015-709a-4b8b-b08e-3200f994494c" } -RemoveLicenses @()Who has it?
Connect-MgGraph -Scopes "User.Read.All"
Get-MgUser -Filter "assignedLicenses/any(x:x/skuId eq 90b5e015-709a-4b8b-b08e-3200f994494c)" `
-ConsistencyLevel eventual -CountVariable n -All |
Select-Object DisplayName, UserPrincipalName