Skip to content

SPIrmSettings

Brian Farnhill edited this page Jul 3, 2017 · 18 revisions

Parameters

Parameter Attribute DataType Description Allowed Values
Ensure Key String Enable or Disable IRM on this farm Present, Absent
UseADRMS Write Boolean Use the RMS server published in this farm's Active Directory
RMSserver Write String Use the specified RMS server, must provide in URL format
InstallAccount Write String POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5

Description

This resource is used to manipulate the IRM settings in SharePoint, integrating it with AD RMS

The default value for the Ensure parameter is Present. When not specifying this parameter, IRM is configured.

Examples

Example 1

This example shows how to apply the RMS settings to a local farm, pointing to a specific RMS server

Configuration Example 
{
    param(
        [Parameter(Mandatory = $true)]
        [PSCredential]
        $SetupAccount
    )
    Import-DscResource -ModuleName SharePointDsc

    node localhost {
        SPIrmSettings RMSSettings
        {
            Ensure               = "Present"
            RMSserver            = "https://rms.contoso.com"
            PsDscRunAsCredential = $SetupAccount
        }
    }
}
Clone this wiki locally