Skip to content

Setting up Regulatory Records in Azure

Regulatory Records are a feature in Microsoft Purview Records Management. This feature should be used to store document revisions safely by disabling that a user can remove a label from a SharePoint/Azure Document.

How to run a Powershell Script.

To enable the Regulatory Records feature, you need to run a PowerShell script. If you don't know how to run a script, follow these steps.

Attention

This part is only for Windows users.

1. Change the Execution Policy

It can occur that the PowerShell script cannot be run. This can be the case when the guideline to run PowerShell scripts is not enabled. To enable this Policy, do the following:

  1. Start Powershell as an Administrator
  2. Type "Get-ExecutionPolicy" and save your execution policy
  3. Type "Set-ExecutionPolicy RemoteSigned" and press enter
  4. Confirm the new Policy with the keywords below.

Info

If you want your old Execution Policy back, just redo step 2 with the saved execution policy from the first step.

2. Run the Powershell Script

To run the PowerShell script on Windows, simply do a right-click on the document and select "Run with PowerShell". In case this is the script for enabling the Regulatory Records feature, simply enter your Azure password in the Authentication window.

Powershell Script

If you don't use the Regulatory Records Wizard in DMS on the Retention Label page, the following Powershell script can also enable the Regulatory Records feature.

1
2
3
4
5
    Install-Module -Name ExchangeOnlineManagement
    Import-Module ExchangeOnlineManagement
    Connect-IPPSSession -UserPrincipalName "UserEmail"
    Set-RegulatoryComplianceUI -Enabled $true
    Disconnect-ExchangeOnline

Important

Replace "UserEmail" with your authentication email and then, the script can be run. Do this by inserting the command in the PowerShell console. The part "-Enabled $true" in step 4 can be changed to "-Enabled $false" to disable the feature.