Created
April 14, 2018 03:56
-
-
Save jermdw/c13da64ef8fdf61ea8b843aeaa7cd910 to your computer and use it in GitHub Desktop.
Create Domain Controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create Windows Server 2016 Domain Controller | |
# with a little help from: https://j3rm.io/2EKvjXY | |
# rename computer | |
Rename-computer -newname 2016-DC01 | |
# setup ip configuration | |
$ipaddress = "10.0.0.2" | |
$dnsaddress = "127.0.0.1" | |
New-NetIPAddress -InterfaceAlias Ethernet -IPAddress $ipaddress -AddressFamily IPv4 -PrefixLength 24 | |
# update DNS server | |
Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses $dnsaddress | |
# install features | |
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools | |
# incomplete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment