Joining a server to a domain
-
Created: Wednesday, 05 February 2014 23:42
Joining a server to a domain is similar to joining a workstation to a domain. Only the last step is necessary to join any system to the domain, joining a server that will have any roles will need the the other steps performed.
The steps below will configure the following:
- a static IP address
- a subnet mask
- a default gateway
- primary DNS
- secondary DNS
- joining the domain
To assing a static IP address from the command line, type the following in the prompt with elevated privileges: netsh interface ip set address "local area connection" {enter IP address here} {enter subnet mask here} {enter default gateway here}
Assign a static primary dns address from the command line, type: netsh interface ip set dns "local area connection" static {enter IP address here}
Assign a static secondary dns address from the command line, type: netsh interface ip set dns "local area connection" static {enter IP address here} index=2
At this point, it is easiest to switch to powershell. To switch to powershell, simply type powershell.exe in the command prompt.
Now, to join the domain, type the following: add-computer -domain:(domainname) -cred:(domain)\(username)