Monday, March 4, 2013

How to Join Domain using djoin -Offline Mode



Join a Client PC to Domain -Offline Mode-

 how to Join Domain using djoin -Offline 

Windows Server 2008 R2 and Windows 7 introduce a new option for joining computers to a domain, called offline domain join.
 As the name of the feature suggests, offline domain join allows you to join a server or client to the domain even if the computer does not
have network connectivity or cannot currently contact a domain controller.

the syntax of djoin is

djoin.exe /provision /domain DomainDNSName /machine ComputerName /savefile Filename 

Assume my domain name is MYDOMAIN.COM and my client machine name is PC-1 planning to add to domain in offline mode using the following method
On Domain Controller open a command prompt and type the following command

djoin.exe /provision /domain MYDOMAIN.COM /machine PC-1 /savefile test.txt



copy the saved file to client machine and run the following command in client machine (open command prompt as run as administrator)

djoin.exe /requestODJ /loadfile test.txt /windowspath %SystemRoot% /localos



where:


  • /requestODJ specifies that you want to perform an offline domain join operation.
  • Filename is the path and file name of the text file that contains the account metadata
    blob. This is the file that you created by using Djoin.exe /provision.
  • %SystemRoot% is the built-in Windows variable that represents the directory in which
    Windows is installed. Alternately, you can use the variable %WinDir%.
  • /localos specifies that you are injecting the domain join information into the local
    computer.


  • No comments: