Skip to main content

How to configure offline Domain Join (djoin command)

How to configure offline Domain Join (djoin command)

In this post, we’ll learn the steps to configure offline domain join using djoin command in Windows Server 2012 R2. It can be used to add a Server or workstation in a domain even if we don’t have network connectivity between them.

Why do we need Offline Domain Join (djoin command)?

Offline Domain Join is required in a scenario in which either organization is facing an issue with network between the Domain Controller and the remote site or bulk domain Join is required.
How to use djoin command?
To configure offline domain join we need to run a djoin  command on the Domain Controllers and it would create a text file. This text file has all the information about the new member server or workstation that we wanted to add in the Domain. This command will also create a Computer object in Active Directory with the name that we’ll pass in the command prompt.
Once the text file is created successfully, we need to copy the text file to the Server or Workstation which we need to add in the Domain. It’s better to create a share folder on the Domain Controller or any other Member server in the Domain and copy files on them else it can be copied using external drives.

Steps to configure offline Domain Join using DJoin command

We need two servers for this scenario. First is the Domain Controller i.e. SK01 on which we’ll run the DJoin command and another is a member server i.e. SK04, the server or workstation that we wanted to add to the Domain.
Step 1:
On the Domain Controller i.e. SK01 we can see two computer accounts created i.e. SK02 and SK03. As of now we only have these two Servers in our Domain.


Step 2:
In this practical, we’ll add SK04 to saikrishna.com domain, currently this server is part of Workgroup

Step 3:
To configure offline Domain Join for SK04, go to Domain Controller i.e. SK01 and run the following DJoin Command.
DJoin /Provision /Domain saikrishna.com /Machine SK04 /SaveFile C:\SK04.txt
This command would create new computer account named as SK04 in the default Computers OU in domain saikrishna.com. Provisioning data would be encrypted and saved in the file c:\SK04.txt.
This information will be encrypted and saved in SK04.txt file

Step 4:
Once the command is completed successfully move the file C:\SK04.txt to SK04 Server. We have already moved the file to C: drive of SK04.
On SK04 run the following command.
DJoin /RequestODJ /LoadFile C:\SK04.txt /WindowsPath %windir% /LocalOS

This command would load the provisioning data from the file that we already copied to this server and perform offline domain join.
Please ensure that you reboot the Server for changes to be applied.
Step 5:
After reboot is completed, we tried to login with the domain user and it worked successfully.
Moreover we checked the system settings and it shows that SK04 is successfully joined domain saikrishna.com

Hope you understood the steps to configure offline Domain join using djoin. Please feel free to leave your comments and suggestions in the comment section
-SAI KRISHNA KALYANAPU


Comments

Popular posts from this blog

How To Upgrade Windows Server 2008 R2 To Windows Server 2012

In this post we will see how to upgrade Windows Server 2008 R2 to Windows Server 2012. It’s been an year that Microsoft has released Windows Server 2012, when Windows Sever 2012 was released the IT professionals were eager to know what’s new in Windows Server 2012 and i was one of them. Microsoft releases all of its operating systems in multiple editions, which provides consumers with varying price points and feature sets. While choosing the edition make sure you choose the edition that suits your requirements. Before we go ahead and deploy Server 2012, let’s take a look at editions of Windows Server 2012. 1)  Windows Server 2012 Datacenter Edition  – The Datacenter edition is designed for large and powerful servers with up to 64 processors and fault-tolerance features such as hot add processor support. This edition is available only through the Microsoft volume licensing program and from original equipment manufacturers bundled with a server. 2)  Windows Server 2012 Standard Ed

Installing the Fuzzy Lookup Excel Add-In

    1.       Navigate to the Microsoft website and download the Fuzzy Lookup installation ZIP file.  Save the ZIP file in a new directory on your desktop called ‘FuzzyLookup’ and then extract the files to that same directory.   2.       Make sure all applications are closed on your computer. 3.       Run the ‘setup.exe’ file. Press ‘Run’.   4.       Next the setup process will ask you if you accept two separate License Agreements.  Press ‘Accept’ to both. 5.       Next you will see the application start downloading and installing files.  This will take several minutes. 6.       Next the Setup Wizard will appear.  Press ‘Next.’ 7.       Another License Agreement screen will appear.  Choose ‘I Agree’ and then ‘Next’.   8.       Do not change the default installation folder.  Press ‘Next’. 9.       The setup application will next ask you to confirm installation instructions.  Press ‘Next’ to confirm the installation choices and the i