Skip to content

SPAuthenticationRealm

Yorick Kuijs edited this page Feb 19, 2019 · 7 revisions

SPAuthenticationRealm

Parameters

Parameter Attribute DataType Description Allowed Values
IsSingleInstance Key String Specifies the resource is a single instance, the value must be 'Yes' Yes
AuthenticationRealm Required String The authentication realm to be set
InstallAccount Write PSCredential POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5

Description

Type: Distributed Requires CredSSP: No

This resource is used to set the authentication realm for a farm. By default the authentication realm for a new farm installation is the same as the farm id.

Note:

SharePoint automatically converts the realm to lower case ASCII printable characters. The specified authentication realm must therefore conform to this for the test method to be able to detect a correct configuration.

Examples

Example 1

This example sets the farm atuhentication realm.

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

        node localhost {
            SPAuthenticationRealm AuthenticationRealm
            {
                IsSingleInstance     = "Yes"
                AuthenticationRealm  = "14757a87-4d74-4323-83b9-fb1e77e8f22f"
                PsDscRunAsCredential = $SetupAccount
            }
        }
    }
Clone this wiki locally