Saturday, October 13, 2012

Offline Domain Join (Djoin):

                  Offline domain join is a new process that computers that run Windows 7 or Windows Server 2008 R2 can use to join a domain without contacting a domain controller. This makes it possible to join computers to a domain in locations where there is no connectivity to a corporate network.
       
                 A domain join establishes a trust relationship between a computer running a Windows operating system and an Active Directory domain. This operation requires state changes to Active Directory Domain Services (AD DS) and state changes on the computer that is joining the domain. To complete a domain join in the past using previous Windows operating systems, the computer that joined the domain had to be running and it had to have network connectivity to contact a domain controller.

Offline domain join provides the following advantages over the previous requirements:

  • The Active Directory state changes are completed without any network traffic to the computer. 
  • The computer state changes are completed without any network traffic to a domain controller. 
  • Each set of changes can be completed at a different time.

First the computer account is created or provisioned on the domain controller and the resulting information is stored in the metadata, and then this information is transferred to the joining computer. The workstation then performs the joining part without having the connectivity with the domain controller.

We need to use Djoin.exe on the domain controller to accomplish above.

 Example : Djoin.exe /provision /domain Name_Of_the_Domain_To_Be_Joined /machine Client_Computer_Name /savefile File_Name.txt

 We have to execute the above command in Server 2008 R2.










                                                       
              This will create a computer named Client01.                

























                         
                                  We have to copy the Client01.txt  file from server  to any portable media (eg: Pen drive) or copy  the Clent01.txt  file to the workstation which we want  add to domain, 

   Windows 7 machine current not connected to any network.







                                   
                                                                                                                                                                                                                                                                                              
 
 We have to execute  RequestODJ command in Windows 7 Client PC.  Command is 

Djoin /RequestODJ /Loadfile /e:\Client01.txt {file_Path} /WindowsPath %windir% /LocalOS











                               After the completion of the command, We have to reboot  the windows 7 client machine.











































2 comments: