To join a domain there are 2 paths, the first is to just add the computer to the domain and create the computer account simultaneously which is OK if you are logged on as a domain administrator, if you are not a domain administrator the account needs to be added in advance and then you join the domain.
I lost my domain controller machine, and then add new domain controller but with a new domain. How do I remove network machines from old domain using command line and add to new domain? Machines using Windows Server 2008 Core (command line only)
works only on domain controller.
When I try to exit from old domain, console requests username and password for exit. I type it, and then get error 'Could not connect to domain' (old domain controller not exists)
What to do?
Evl-ntntEvl-ntnt
1 Answer
Try
netdom remove computername /Domain:domain /UserD:user /PasswordD:* /Force
Type
netdom remove /?
for the full command usage. The /Force option is what you're looking for. Per the help:Forces the unjoin of the machine from the domain even if the domain is not found or does not contain the matching computer object.
To join the members to the new domain:
netdom join computername /Domain:domain /UserD:user /PasswordD:*
Again type
netdom join /?
for help with the command usage.mweiselmweisel