Office 365 email encryption, the easy way


There’s no shortage of how-tos out there for this topic, but if you want the copy-and-paste method, this is all there is to it:

  1. Login to your Office 365 account and enable Rights Management:
  2. Open PowerShell as AdministratorAssuming you’re in North America, and you want to encrypt all messages with ‘secure’ in the subject, run:

    $UserCredential = Get-Credential
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic -AllowRedirection
    Import-PSSession $Session
    Set-IRMConfiguration -RMSOnlineKeySharingLocation “”
    Import-RMSTrustedPublishingDomain -RMSOnline -name “RMS Online”
    Set-IRMConfiguration -ClientAccessServerEnabled $false
    Set-IRMConfiguration -ClientAccessServerEnabled $false
    Set-IRMConfiguration -InternalLicensingEnabled $true
    New-TransportRule -Name ‘Encrypt on “secure” in subject’ -Comments ‘ ‘ -Mode Enforce -SubjectContainsWords ‘secure’ -ApplyOME $true

  3. Wait a few hours for Rights Management to really be enabled, then try sending test messages until they’re encrypted.