This command works 100% for all Server Core version of the Windows Server Operating Systems.
Am going to show you the initial configuration code to build you Domain Controller in Server Core.
Step 1 - Change Computer Namenetdom renamecomputer %computername% /newname: [type your prefered computer name]
and hit
EnterNote: You need to restart your computer. Type -->
shutdown -r -t and hit
EnterStep 2 - Insert IP AddressBefore you insert you IP Address, you need to know the network card interface name. Type the command below to see it.
netsh interface IPv4 show interfacesNow lets give it a IP Address
netsh interface IPv4 set address name=[type your interface name here]
source=static address=192.168.0.1 mask=255.255.255.0Note: You can give your preferred IP Address
Now that's it, if you need to make it a stand alone computer. If you need to make it a
Domain Controller continue below;
Step 3 - Make Server Core A Domain ControllerMaking a Domain Controller in Server Core, we would use an Unattended Installation. In that case, we would create a unattended installation file with the content below in a notepad document and save it inside our C:\ drive with the .txt format and name it. for example --->
dctest.txtNote: You can change the domain name i used to your preferred domain name.
[DCINSTALL]ReplicaOrNewDomain=DomainNewDomain=ForestNewDomainDNSName=MASSWAVE.NETForestLevel=3DomainNetbiosName=MASSWAVEDomainLevel=3InstallDNS=YesConfirmGc=YesDNSDelegation=NODatabasePath=C:\Windows\NTDSLogPath=C:\Windows\NTDSSYSVOLPath=C:\Windows\SYSVOLSafeModeAdminPassword=password@1TransferIMRoleIfNecessary=NONow that's the command that your unattended file should contain.
After saving it in the C:\ drive type the command below.
Step 4 - Run the dcpromo.exe Commanddcpromo.exe /answer:c:\test.txtand hit
Enter.
Note:
test.txt is the Unattended file we created in step 3 and saved in the C:\ drive.
If you get a Delegation error, just go to your unattended file and clear the
DNSDelegation=NO command, save and run again
Step 5 - Insert DNS IP AddressSince we made a Domain Controller we need to give and IP Address to our DNS that would be installed.
netsh interface IPv4 add dnsserver name=[type your interface name here]
address=192.168.0.1 index=1and hit
Entercheck the step 2 to see how you get your interface name and
index=1 positions the DNS server as primary DNS server, while
index=2 positions the DNS server as an alternate DNS server.
Step 6 - Join Computer To A Domain In case of a stand alone computer where you need to join to the domain after configuration. Use the following commands below with a administrative credentials
netdom join <ComputerName> /domain:<DomainName> /userd:<UserName> /password:∗∗∗∗∗∗Where;
<ComputerName> represents the hostname of the computer you are joining to the Domain, <DomainName> is the name of the domain to join, and <UserName> is a user account that has permission to join the domain. e.g Administrator and password for the account. e.g password@1
Now thats what i have for now. If this helped you, please comment below and share.
You can ask you questions and i would ma
Thanks.