
Installing Active Directory on Windows Server Core
Installing Active Directory on Server Core can be intimidating as it's PowerShell/command prompt only.
These are the commands I used. For better experience, visit my blog
www.allsecureit.com.au/blog/installing-active-dire…
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
DOMAIN CONTROLLER
Rename-Computer DC01-2016
$ipaddress = "192.168.1.70"
$dnsaddress = "127.0.0.1" #localhost
$ethernet = Get-NetAdapter
Get-DnsClientServerAddress #type those below
New-NetIPAddress -InterfaceAlias $ethernet.name -IPAddress $ipaddress -AddressFamily IPv4 -PrefixLength 24
Set-DnsClientServerAddress -InterfaceAlias $ethernet.name -ServerAddresses ("$dnsaddress","192.168.1.252","192.168.1.1")
#Install AD Domain Services and DNS
Install-WindowsFeature ad-domain-services -IncludeManagementTools
#Create domain
Install-ADDSForest -DomainName testlab.com -InstallDNS -DomainNetbiosName "TESTLAB"
#set recovery password - make sure you save it and keep it safe!
#answer A to allow auto reboot
#reboot
CLIENT
$dnsserver = "192.168.1.70"
$ethernet = Get-NetAdapter
#Get-DnsClientServerAddress #type those below
Set-DnsClientServerAddress -InterfaceAlias $ethernet.name -ServerAddresses ("$dnsserver","192.168.1.252","192.168.1.1")
Rename-Computer WIN10-01
#restart
shutdown -r -t 0
#ADD computer to the domain
Add-Computer -DomainName "testlab.com" -Restart
Login to the domain on the client PC
Download admin tools
www.microsoft.com/en-au/download/details.aspx?id=4…
Connect to the remote PowerShell
Enter-PSSession -ComputerName DC01-2016
www.allsecureit.com.au/
コメント