Active Directory - Brandon-Duffy/SYS-265 GitHub Wiki

Setting up AD on DC1

  • On DC1
  • Open up powershell by typing “powershell” in the command line
  • Then run: Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
  • After this run Install-ADDSForest -DomainName kitten.local
  • On mgmt01 right-click on servers and select add new server and add DC1

Setting up DC2 to be a domain controller

Invoke PowerShell and install Active Directory Services Role:

image

Set DC2's DNS as DC1's IP Address.

"Set-DNSClientServerAddress -InterfaceAlias -ServerAddresses 172.16.1.12"

Once that's completed, promote the server to a domain controller in an existing domain.

"Install-ADDSDomainController -InstallDns -Credential (Get-Credential kitten.local\Administrator) -DomainName kitten.local -SafeModeAdministratorPassword (ConvertTo-SecureString -AsPlainText -Force)

image

Accept with [Y] Yes to continue

image

After restarting, run 'sconfig' and verify new DC is domain joined.

On MGMT1 Server manager and add the new DC.

⚠️ **GitHub.com Fallback** ⚠️