Skip to content

OfflineDomainJoin

Daniel Scott-Raynsford edited this page Aug 23, 2018 · 7 revisions

OfflineDomainJoin

Parameters

Parameter Attribute DataType Description Allowed Values
IsSingleInstance Key String Specifies the resource is a single instance, the value must be 'Yes'. Yes
RequestFile Required String The full path to the Offline Domain Join Request file to use.

Description

The resource allows you to join computers to an Active Directory domain using an Offline Domain Join request file.

Examples

Example 1

This example will join the computer to a domain using the ODJ request file C:\ODJ\ODJRequest.txt.

Configuration Example
{
    param
    (
        [Parameter()]
        [System.String[]]
        $NodeName = 'localhost'
    )

    Import-DscResource -ModuleName ComputerManagementDsc

    Node $NodeName
    {
        OfflineDomainJoin ODJ
        {
          IsSingleInstance = 'Yes'
          RequestFile      = 'C:\ODJ\ODJBlob.txt'
        }
    }
}