Announcement: Need a free practice exam or an interactive mocks material for a Microsoft certification? Click here to use the MS Forms I've created previously.

Enable OMEv2 (AIP) using PowerShell Script

November 3, 2018 | by iaur | posted as Exchange Online, Protection

Did you know that you can configure Office Message Encryption(via Azure Information Protection) easily like a Sunday morning? 😊

 Here’s a run through.

Scenarios you’re possibly in:

  • You want to encrypt messages from O365
  • You want to enable Protect button in OWA
  • You want to use IRM templates for emails
  • Unable to open encrypted messages in EXO


First time connecting to Office 365 PowerShell? Perform the ff. first.

  • Open PowerShell and execute the ff. cmdlets.
    • Install-Module MSOnline
    • Install-Module -Name AADRM
    • Update-Module -Name AADRM

How to use the PowerShell script?

Example: Enabling OME V2

Update: TechNet Gallery was down since the start of 2021. However, I manage to find the script from this GitHub repository. Just copy the whole thing and save it as .ps1 file.

  • Run with PowerShell the ps1 file.
  • Press Enter to load the main menu and accept the disclaimer.
  • Enter 1 and follow the prompts to connect to the needed online services using PowerShell
  • Go back to the main menu and enter 2 to automatically configure OMEv2
  • Check OWA if you have the Protect button


  • You can use the tool for the ff.
    • View the current configuration
    • enable/disable OME versions
    • view and export templates/labels details
    • check known issues
    • export and check logs
    • open or refresh cache IRM folder or registry
  • Protect button (IRM templates) will take time to appear on your Outlook Office 365 ProPlus
  • Encrypt Button is available Outlook Office 365 Business (Monthly Channel)


Feedback or Help?

Should you have one, click here

Feeling grateful?

Boring Ads. Pardon me :)