How to enable RMS in Office365

The process to enable RMS in Office 365 is simple and it can be done in just a few minutes.

Solution

The entire process is performed using PowerShell, the first step is to authenticate on the service. The first thing is to get the credentials in a variable, and we will do that using the followin cmdlet

$cred = Get-Credential

The second step is to add all parameter to connect on Office 365 on a variable, as follows:

$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.com/PowerShell-liveid/ -Credential $cred -Authentication Basic -AllowRedirection

Last but not least we need to connect and we can do that using the following cmdlet.

Import-PSSession $session

After connecting to Office 365 through PowerShell, we will list the current IRM configuration and configure it, and at the end we will list again to check the changes. In order to configure RMS the following cmdlet is required:

Set-IRMConfiguration -RMSOnlineKeySharingLocation “https://sp-rms.na.aadrm.com/TenantManagement/

Time to check the changes that we have just configured.

Our next step is to import the RMS Trusted Published Domain and define the license.

Import-RMSTrustedPublishedDomain -RMSOnline -Name “RMS Online”

Set-IRMConfiguration -InternalLicenseEnabled $True

Checking the IRM configuration.

At this point we can test the IRM Configuration by running the following cmdlet.
Test-IRMConfiguration -Sender <mailbox>

Finally, the last step is to close the current session with Office 365 to complete the process.