NETDOM Join (Windows Server 2003/2008/R2/2012 + Windows 7/8)

Join a workstation or member server to the domain.

Syntax
      NETDOM JOIN machine /Domain:domain [/OU:ou_path]
         [/UserD:user] [/PasswordD:[password | *]]
            [/UserO:user] [/PasswordO:[password | *]]
               [/PasswordM:[password | *]]
                  [/ReadOnly] [/REBoot[:Time_in_seconds]]
                     [/SecurePasswordPrompt]

Key:

   machine     The name of the workstation or member server to be joined

   /Domain     The domain which the machine should join.
               Specify a particular domain controller by entering
                /Domain:domain\dc. When /ReadOnly option is used, you 
                must specify a domain controller. 

   /UserD      User account used to make the connection with the Domain of
               the machine to be managed

   /PasswordD  Password of the user account specified By /UserD.
               Specifying a * will prompt for the password.

   /UserO      User account used to make the connection with the Machine to be
               managed

   /PasswordO  Password of the user account specified By /UserO.
               Specifying a * will prompt for the password.

   /OU         Organizational unit under which to create the machine account.
               This must be a fully qualified RFC 1779 DN for the OU.
               If not specified, the account will be created under the default
               organization unit for machine objects for that domain.

   /PasswordM	Password of the pre-created computer account, whose name is 
               specified by the machine parameter.
               Specifying a * will prompt for the password.
               This option must be used with /ReadOnly option.

   /ReadOnly   Perform a domain join using a pre-created computer account and 
               without performing any writes to a domain controller. This 
               option therefore, does not require a writable domain controller.
               You must specify the domain controller (using /Domain option) 
               and computer account password (using /PasswordM option) 
               when the option is used.
               This option cannot be used with the /OU option. 
			
   /REBoot     Shutdown and automatically reboot the machine after the Join
               has completed.  The number of seconds before automatic shutdown
               can also be provided.  Default = 30 seconds

   /SecurePasswordPrompt 
               Use secure credentials popup to specify credentials. This
               option should be used when smartcard credentials need to be
               specified. This option is only in effect when the password 
               value is supplied as *

Windows Professional machines with the ForceGuest setting enabled (which is the default for machines not joined to a domain during setup) cannot be remotely administered. Thus the join operation must be run directly on the machine when the ForceGuest setting is enabled.

Joining a machine to the domain will create an AD domain account for the machine if one does not already exist.

Netdom options can be abbreviated to just the UPPER case letters, e.g. /PasswordD can be supplied as just /PD

“You may say I'm a dreamer, but I'm not the only one. I hope someday you'll join us, and the world will be as one” ~ John Lennon

Related:

NETDOM ADD - Add a workstation or server account to the domain
PowerShell: Add-Computer - Add a computer to the domain


© Copyright SS64.com 1999-2014
Some rights reserved