Domain Join Command
On the computer to join the domain open a powershell command prompt and enter the following command.
Domain join command. On the computer name domain changes click domain. On linux or unix computers the location of the domain join command line utility is opt pbis bin domainjoin cli. Netdom exe join computername domain domainname userd domainname username passwordd password.
When you join a domain by using the command line utility ad bridge enterprise uses the hostname of the computer to derive a fully qualified domain name fqdn and then automatically sets the fqdn in the etc hosts file. Specifies the name of the computer that you want to join to the domain. Run this command to join a computer to the domain and specify the ou path.
Add computer domainname domain lan credential account user domain domainname. Specifies the domain that you want to join the computer to. Then enter the name of the domain to join the computer and click ok.
To join a domain you must first ensure you have the following information and resources. The user should have privileges to join a computer to the domain. There are two ways to join or leave a domain.
Add computer domainname domain02 oupath ou testou dc domain dc domain dc com in the following example i ll be adding computers to the domain that go to the sales department. Here username and password should be of a the domain specified in domain switch. To configure offline domain join we need to run a djoin command on the domain controllers and it would create a text file.
If you are logged on at the machine you want to join. The netdom command or the powershell command lets add computer and remove computer. If you do not specify this parameter then netdom join uses the domain to which the current computer belongs.