Skip to content

SPAuthenticationRealm

dscbot edited this page Mar 17, 2023 · 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

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