Welcome to Sign in | Join | Help
in
Home Blog

The Lazy Admin

What’s New in 2008 R2 – Offline Domain Join

Sponsor

For as long as we have had Active Directory domains, we have been required to to join client to the domain while they were online and connected to AD.  Without that the join would fail.  Now you always had the ability to join with a script using the NETDOM command but with Windows Server 2008 R2 we can now join a client to our AD domain while offline.  The real benefit hear is that there is no need to supply or enter domain admin credentials.  As you’ll see below a TXT file is created but just for fun open it up with notepad and see what you can make out :)

It is a simple three step process that requires you to run a new utility called DJOIN from an already joined Server 2008 R2 computer.

  1. Create a text file with DJOIN that contains the required information for a computer to join AD
  2. Import the text file using DJOIN on the target computer you wish to join AD
  3. Once connected to the domain, reboot the computer and it will join AD

For joining a computer to the domain using DJOIN there are some switches you need to know about first.

  • /provision – used when there is no existing AD account for the computer
  • /reuse – if you already created a computer account in AD and would like to use it
  • /domain – specifies the domain to join
  • /machine – specifies the name of the machine, if the computer has a different name it will be renamed
  • /machineou – specifies the OU to join, if you omit this it will automatically be placed in the default computers OU
  • /savefile – saves the file to be imported.

A typical command would be…

djoin.exe /provision /domain thelazyadmin.com /machine client01 /machineou Desktops /savefile client01.txt

To join client01 to the domain we would next import client01.txt with the following command run with administrative privileges…

djoin /requestODJ /loadfile client01.txt /windowspath %systemroot% /localos

Reboot once the client is connected to the domain and the join will be made.

 
Published Monday, February 09, 2009 9:00 AM by rodney.buike

Comments

No Comments
Anonymous comments are disabled


All postings are provided "AS IS" with no warranties, and confer no rights.
Microsoft product screen shot(s) reprinted with permission from Microsoft Corporation.