Setting up offline domain join

If you want your Windows endpoints to join an Active Directory (AD) domain, you can use Tanium Provision to set up an ODJ process instead of updating unattend.xml answer files with clear text passwords that contain the domain join credentials. Provision uses TaniumODJService, a small HTTP service that uses the Microsoft djoin command, to create a computer account in the OU specified in the operating system bundle.

Note: Add newly provisioned endpoints to an organizational unit where they can be vetted before users sign in to those endpoints. For more information, see Delegate control to create computer accounts by the ODJ service.

Before you begin

Make sure that you create a firewall rule to allow inbound connections to the port that is specified in Configure PXE settings.

(Optional) Configure ODJ settings

  1. From the Main menu, go to Modules > Provision > Overview, click Settings cog and then click Configuration if needed.
  2. In the Offline Domain Join (ODJ) section, configure the ODJ options.
    1. Enter a Client Port. The default value is 8100.
    2. (Optional) Specify the Duration in hours or days to set the maximum amount of time that the ODJ process can run. The default is 750 hours.
    3. (Optional) Specify the Max Computer Account Blobs to set the maximum number of times the ODJ process can be called. The default is 1000 blobs.
  3. Click Save.

Create an ODJ endpoint

You must enable the ODJ service on at least one Provision endpoint. The endpoint does not have to run the Tanium PXE service. The endpoint must have reliable access to Active Directory.

  1. From the Main menu, go to Modules > Provision > Provision Endpoints and then click Create Provision Endpoint.
    Tip: You can also click Create Provision Endpoint from the Quick Links section of the Provision Overview page.
  2. In the Satellite Endpoints section, select one or more satellites or click Create Satellite to create one in Direct Connect. For more information, see Create satellites.
    Note: Offline Domain Join is available only for Windows satellites. The Windows satellite must be joined to the Active Directory domain to which you will join endpoints.
  3. In the Features section, select Offline Domain Join (ODJ) and then click Save and Deploy Now.

(Optional) Reuse a computer name

You can reuse a computer name as part of the ODJ process. You might reuse a name to simplify the domain join or to comply with organizational naming standards. You identify a name for reuse by adding it to the Allowed Computer Names table.

CAUTION: Carefully consider the names that you add to the Allowed Computer Names table. Anyone with network access to Provision endpoints can access the computer accounts associated with the names in the table. With this access, a malicious user could disable existing servers or Active Directory and possibly compromise computer-specific certificates or keys stored in Active Directory as part of the computer object.
  1. Add the computer name to the Allowed Computer Names table.
    1. From the Main menu, go to Modules > Provision > Offline Domain Join.
    2. Click Add Computer Name for Reuse.
    3. Add one computer name on each line, up to 10 lines.
    4. Add the number of days (1-7) that the computer name is available for reuse and click Save.
  2. Add the name as a ComputerName key value pair in an OS bundle for the endpoint. For more information, see Create a Windows OS bundle.

View computer names available for reuse

You can view the computer names that are available for reuse during the ODJ process in the Allowed Computer Names table. Provision automatically removes a name from the table after the specified number of days has lapsed.

  1. From the Main menu, go to Modules > Provision > Offline Domain Join.
  2. Go to the Allowed Computer Names table.
  3. View the available names for reuse. The table contains the following columns:
    • Name: Computer name allowed for reuse
    • Expiration Time: The date and time on which the name will no longer be allowed for reuse
    • Created: The date and time when the name was initially added to the Allowed Computer Names table
    • Created By: The user who added the name to the Allowed Computer Names table
    • Last Modified: The date and time when the name or its expiration time was most recently modified
    • Last Modified By: The user who most recently modified the name or its expiration time

View computer name reuse status

You can view the computer names that were requested for reuse during the ODJ process. Periodically review this list to consider adding or removing names in the Allowed Computer Names table.

  1. From the Main menu, go to Modules > Provision > Offline Domain Join.
  2. Go to the Computer Name Requests table.
  3. View the computer names that were requested for reuse during the ODJ process. The table contains the following columns:
    • Name: The value included in the ComputerName key value pair in the OS bundle

    • OS Bundle Name: The name of the OS bundle that includes the computer name

    • Status: Status of the reuse: Allowed circle-check or Blocked state-critical

      Allowed indicates that the name is in the Allowed Computer Names table and was reused during the ODJ process. Blocked means that the name was not in the Allowed Computer Names table during the ODJ process, so the name was not reused.

    • Provision Endpoint: Name of the Provision endpoint that handled the ODJ request

    • Created: Date and time when the reuse request was received

Manage computer names for reuse

You can edit or delete computer names or the expiration time.

  1. From the Main menu, go to Modules > Provision select the name in the Allowed Computer Names table.
  2. Click editEdit or deleteDelete Selected and save the necessary changes.

Delegate control to create computer accounts by the ODJ service

Because the ODJ service can create computer accounts in AD, it is important to limit the scope where the service can make changes to AD. It is highly recommended to limit the ODJ service to create only computer accounts in a single AD OU.

Note: Before you delegate control to create computer accounts, prevent unprivileged users from joining computers to the domain by setting the ms-DS-MachineAccountQuota attribute to 0. For more information, see Microsoft Documentation: Default limit to number of workstations a user can join to the domain.
  1. Open Active Directory Users and Computers and connect to the domain where you want the computer accounts created.
  2. Right-click the domain, select New > Organizational Unit, enter a name for the OU, and then click OK.
  3. Right-click the OU, click Delegate Control..., click Next, and then click Add....
    1. For Select this object type:, click Object Types..., select Computers, and then click OK.
    2. For Enter the object names to select (examples):, provide the name of the computer that is running the ODJ process, click Check Names, click OK, and then click Next.
    3. Select Create a custom task to delegate and then click Next.
    4. Select the following options and then click Next.
      • Only the following objects in the folder:

      • Computer objects

      • Create selected objects in the folder

      • Delete selected objects in this folder

    5. Select the following permissions, click Next, and then click Finish.
      • Read All Properties

      • Write All Properties

      • Change Password

      • Reset Password

      • Read and write account restrictions

      • Validated write to DNS host name

      • Validated write to service principal name

(Optional) Add certificates and group policy templates

ODJ blobs can optionally contain additional certificates and group policy templates by manually adding them as key value pairs in an OS bundle.

Note: You cannot override the Offline Domain Join: CertTemplate and Offline Domain Join: PolicyNames values with settings from an external web service. For more information about web services, see Get settings from an external web service.
  1. From the Main menu, go to Modules > Provision > OS Bundles.
  2. In a new or existing OS bundle, in the Key Value Entries section, click Add Key Value Pair.
  3. Specify the boolean value to include root certificates in AD in the generated ODJ blob.
    1. For the Key field, select Offline Domain Join: IncludeRootCerts.
    2. For the Value field, enter 1.
  4. Specify the name of the certificate template to use when generating a new certificate in the ODJ blob for the computer.
    1. For the Key field, select Offline Domain Join: CertTemplate.
    2. For the Value field, enter the certificate template name.
  5. Specify the group policy objects to include in the ODJ blob for the computer.
    1. For the Key field, select Offline Domain Join: PolicyNames.
    2. For the Value field, enter a comma-separated list of names. For example, DirectAccess Client Settings or Autoenroll Machine Certificates,Default Domain Policy.

Define ODJService and DomainName key value pairs

Create an OS bundle that includes the ODJService and DomainName key value pairs. For more information, see Create a Windows OS bundle.