Installing Active Directory on Windows Server Core

Installing Active Directory on Server Core can be intimidating as it’s PowerShell/command prompt only.

Installing Active Directory on Server 2016 Core

  1. Rename server
  2. Set static IP address on the DC
  3. Set DNS on the DC and the client
  4. Install tools
  5. Create new forest (domain)
  6. Add computer
  7. Install tool for remote management


Rename-Computer DC01-2016
$ipaddress = ""
$dnsaddress = "" #localhost
$ethernet = Get-NetAdapter
Get-DnsClientServerAddress #type those below

New-NetIPAddress -InterfaceAlias $ -IPAddress $ipaddress -AddressFamily IPv4 -PrefixLength 24
Set-DnsClientServerAddress -InterfaceAlias $ -ServerAddresses ("$dnsaddress","","")

#Install AD Domain Services and DNS

Install-WindowsFeature ad-domain-services -IncludeManagementTools

#Create domain

Install-ADDSForest -DomainName -InstallDNS -DomainNetbiosName "TESTLAB"

#set recovery password - make sure you save it and keep it safe!

#answer A to allow auto reboot



$dnsserver = ""
$ethernet = Get-NetAdapter
#Get-DnsClientServerAddress #type those below

Set-DnsClientServerAddress -InterfaceAlias $ -ServerAddresses ("$dnsserver","","")

Rename-Computer WIN10-01

shutdown -r -t 0

#ADD computer to the domain

Add-Computer -DomainName "" -Restart

Login to the domain on the client PC

Download admin tools

Connect to the remote PowerShell

Enter-PSSession -ComputerName DC01-2016
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *