Commands › Exchange Online
Set-RMSTemplate
> [!NOTE] > This cmdlet is deprecated. If you use AD RMS with Exchange Online, you need to migrate to Azure Information Protection before you can use message encryption. For more information, see Verify that Azure Rights Management is active. Use the Set-RMSTemplate cmdlet to modify the properties of an existing Active Directory Rights Management Services (AD RMS) template in your organization.
Quick start script
# Set-RMSTemplate — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org
# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-RMSTemplate
$before | Format-List
# 3. Make the change (dry run first)
Set-RMSTemplate -Identity <RmsTemplateIdParameter> -Type <RmsTemplateType> -WhatIf
Set-RMSTemplate -Identity <RmsTemplateIdParameter> -Type <RmsTemplateType>
# 4. Verify and diff
$after = Get-RMSTemplate
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Set-RMSTemplate [-Identity] <RmsTemplateIdParameter> -Type <RmsTemplateType>
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Parameters (4)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.