Joining a server to a domain

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:

  1. a static IP address
  2. a subnet mask
  3. a default gateway
  4. primary DNS
  5. secondary DNS
  6. 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)




 

Follow Us

Copyright © 2007 - 2024. All Praise Media LLP. All Rights Reserved.