What is Offline Domain Join & How to Setup
Offline Domain Join is a procedure where Windows 7 & Windows 10 client PC can join to domain without having a network connection to a domain controller. Let’s say you have been assigned a task to prepare 500 PCs in regional site while the network connectivity between Domain Controller (HQ) and regional site is not ready yet. In this scenario you can use can offline domain join feature to join all 500 PCs to a domain controller.
Note: However, PCs will be joined to Domain but users will not be able to logon until there is connectivity between client PCs and Domain controller.
Djoin.exe is a new tool which is part of Windows 2012/2016/2019 and used to perform Offline Domain Join
Here we will provide step by step procedure of Offline Domain Join for single PC which can be replicated to multiple PCs.
LAB Setup for Offline Domain Join
Domain Controller Name: AD2019
Domain Name: AD19
Version: Active Directory 2019
IP: 192.168.16.132
Client PC: WIN10
Version: Windows 10
IP: 192.168.16.131
Let’s Start,
In the first step, we will check the connectivity between the Client PC and Domain Controller.
Ping from Win10 (Client PC) to AD2019 (Domain Controller)
Ping from AD2019 (Domain Controller) to Win10 (Client PC)
The second step, we will run a command using djoin.exe tool on the domain controller. Once the command completed successfully, you will see a computer object will be created in default computer OU.
djoin /provision /domain “domainname” /machine “clientpc” /savefile offline.txt
In our environment, we will run the following command on a domain controller, first create a folder “Djoin”on C: drive so offline.txt file can be saved there.
djoin /provision /domain “AD19” /machine “WIN10” /savefile offline.txt
Let’s verify, the command executed successfully
Offline.txt created in folder C:\Djoin
Computer object created in Computers OU in Active Directory
Third Step, we need to copy offline.txt file from Domain controller to client pc, It’s better to create a folder named “offline” and copy the file there C:\offline
4th Step, we need to run the following command on client PC, Open CMD with administrator
djoin /requestodj /loadfile C:\offline\offline.txt /windowspath c:\windows /localos
You must restart the PC, before verifying from My Computer properties.
The above process simply allows you to join a single pc to domain but what if you want to join multiple PC. This is where you can get it done with “ jaspher ” PowerShell script for provisioning of multiple computers using Djoin. Here is link to his blog for further information.
http://www.jaspher.com/blog/provision-multiple-computers-using-djoin-powershell
Let me know your thoughts or if you are facing any issues.