How To Update Azure Rights Management Template(s) using PowerShell

Step 1: Connect to Exchange Online using remote PowerShell –

Launch Windows PowerShell from a Windows 7, 8 or 8.1 with .NET Framework 4.5 or higher and Windows Framework 3.0 or higher

Run the following command: $UserCredential = Get-Credential

Type your Exchange Online user name and password, and then click OK

Run the following command: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic -AllowRedirection

 Run the following command: Import-PSSession $Session


Step 2: Updates Templates for Exchange Online –

Using Windows PowerShell in Exchange Online from Step 1

Run the following command: Import-RMSTrustedPublishingDomain -Name "RMS Online – 1" -RefreshTemplates –RMSOnline

To confirm that the templates have imported successfully, wait a few minutes

Run the following command: Get-RMSTemplate


Note: I used the default TPD Name "RMS Online – 1".  To verify your TPD name, you can run the following command Get-RMSTrustedPublishingDomain







Comments (0)

Skip to main content