Commands › Exchange Online

Set-RMSTemplate

Exchange Online ExchangeOnlineManagement Set-*

> [!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)

ParameterTypeRequiredWhat it controls
-Identity RmsTemplateIdParameter yes The Identity parameter specifies the RMS template. You can use any value that uniquely identifies the RMS template, for example:
-Type RmsTemplateType yes The Type parameter specifies the type of RMS template. You can specify one of the following values:
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.