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

Move a workstation or member server to a new domain.

Syntax
      NETDOM MOVE machine /Domain:domain [/OU:ou_path]
         [/UserD:user] [/PasswordD:[password | *]]
            [/UserO:user] [/PasswordO:[password | *]]
               [/UserF:user] [/PasswordF:[password | *]]
                  [/REBoot[:Time_in_seconds]]
                     [/SecurePasswordPrompt]

Key:

   machine     The name of the workstation or member server to be moved.

   /Domain     The domain which the machine should be moved.
               Specify a particular domain controller by entering
                /Domain:domain\dc.
               If a domain controller is specified, you may also
               include the user's domain. For example: /UserD:domain\user

   /UserD      User account used to make the connection with the Domain
               specified by the /Domain argument

   /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
               moved

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

   /UserF      User account used to make the connection with the machine's
               former domain (with which the machine had been a member before
               the move). Needed to disable the old machine account.

   /PasswordF  Password of the user account specified by /UserF.
               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.
		
   /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 *

When moving a machine to a new domain, the old computer account in the former domain is not deleted. If credentials are supplied for the former domain, the old computer account will be disabled.

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

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

“Anger is a great force. If you control it, it can be transmuted into a power which can move the whole world” ~ William Shenstone

Related:

NETDOM JOIN - Join a workstation or member server to the domain
PowerShell: Move-ADDirectoryServer - Move the operation master role to an AD directory server.


© Copyright SS64.com 1999-2014
Some rights reserved