Skip to main content
Jorge Bernhardt Jorge Bernhardt
  1. Posts/

Implement Offline Domain Join

·233 words·2 mins· 100 views · 5 likes ·
djoin.exe Microsoft Microsoft Windows Windows

Today, in this mini-post, I want to show you how to perform an offline domain join. During this process, a computer is configured to join a domain without network access to the active directory. The offline domain join procedure requires you to run the djoin.exe command twice, once on a computer with access to a domain controller, and then again on the computer to be joined.

djoin.exe

Requirements>

Requirements #

  • You can run Djoin.exe only on computers that run Windows 7, Windows Server 2008 R2 or newer.
  • You must have the rights that are necessary to join workstations in the domain.
Provision of a computer account in a domain>

Provision of a computer account in a domain #

1. On a domain controller, open an elevated command prompt, and then type:

djoin.exe /Provision /Domain <DomainName> /Machine <MachineName> /SaveFile <filepath>

djoin.exe
2. Copy the generated file to the target computer.

Request an offline domain join>

Request an offline domain join #

3. On the target computer, open an elevated command prompt, and then type:

djoin.exe /requestodj /loadfile <filepath> /windowspath %systemroot% /localos

offline domain join
4. Restart the target computer.

shutdown /r /t 0

Once the machine has been restarted. You will see that the computer is now a member of your domain.

Thanks for reading my post. I hope you find it useful.

If you want to know more about the Djoin command line utility, check out this link.