03-02-install the second domain controller and DNS server on Win 2019 Core
"actual combat training for system engineers"
-03-deploy domain controllers and domain name servers
-02-install the second domain controller and DNS server
On Win 2019 Core
Author: endless learning
QQ communication group: 454544014
# #
# install the second domain controller and DNS server
# #
Cmd
PowerShell
C:\ Users\ Administrator > PowerShell
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\ Users\ Administrator > HostName
012-DC02
PS C:\ Users\ Administrator > IPConfig / ALL
Windows IP configuration
Hostname. . . . . . . . . . . . . : 012-DC02
Main DNS suffix. . . . . . . . . . . :
Node type. . . . . . . . . . . . : mixed
IP routing is enabled. . . . . . . . . . : no
The WINS agent is enabled. . . . . . . . . : no
Ethernet Adapter Ethernet0:
Connect a specific DNS suffix. . . . . . . :
Description. . . . . . . . . . . . . . . Intel (R) 82574L Gigabit Network Connection
Physical address. . . . . . . . . . . . . : 00-0C-29-C5-61-56
DHCP is enabled. . . . . . . . . . . : no
Automatic configuration is enabled. . . . . . . . . . : yes
Local link IPv6 address. . . . . . . . : fe80::859e:c113:d75b:9e80%4 (preferred)
IPv4 address. . . . . . . . . . . . : 10.1.1.12 (preferred)
Subnet mask. . . . . . . . . . . . : 255.255.255.0
Default gateway. . . . . . . . . . . . . : 10.1.1.254
DHCPv6 IAID. . . . . . . . . . . : 100666409
DHCPv6 client DUID. . . . . . . : 00-01-00-01-23-9D-90-DD-00-0C-29-C5-61-56
DNS server. . . . . . . . . . . : 10.1.1.11
10.1.1.12
NetBIOS on TCPIP. . . . . . . : enabled
PS C:\ Users\ Administrator >
# Step 1
Rename-Computer-NewName 012-DC02 Restart-Computer-Force
# Step 2
New-NetIPAddress-InterfaceIndex 12-IPAddress 10.1.1.12-PrefixLength 24 Set-DNSClientServerAddress-InterfaceIndex 12-ServerAddresses 10.1.1.11
# Step 3
Install-WindowsFeature-Name AD-Domain-Services
# Step 4
# Import PowerShell command module of active directory
Import-Module ADDSDeployment
# install ADDS and DNS
Install-ADDSDomainController-InstallDns:$True-Credential (Get-Credential "i-x-Cloud\ Administrator")-DomainName "i-x-Cloud"-DatabasePath "D:\ Windows\ NTDS"-LogPath "D:\ Windows\ NTDS"-SysvolPath "D:\ Windows\ SYSVOL"-NoRebootOnCompletion:$True-Force:$True
# Step 5
Restart-Computer-Force
C:\ Users\ Administrator.i-x-Cloud > dcdiag
Directory server diagnostics
Performing initialization settings:
Trying to find the primary server.
Primary server = 012-DC02
* identified AD forest.
Finished collecting initialization information.
The required initialization tests are in progress
Testing server: Default-First-Site-Name\ 012-DC02
Start testing: Connectivity
. 012-DC02 has passed the test Connectivity
Performing major tests
Testing server: Default-First-Site-Name\ 012-DC02
Start testing: Advertising
. 012-DC02 has passed the test Advertising
Start testing: FrsEvent
. 012-DC02 has passed the test FrsEvent
Start testing: DFSREvent
. 012-DC02 has passed the test DFSREvent
Start testing: SysVolCheck
. 012-DC02 has passed the test SysVolCheck
Start testing: KccEvent
. 012-DC02 has passed the test KccEvent
Start testing: KnowsOfRoleHolders
. 012-DC02 has passed the test KnowsOfRoleHolders
Start testing: MachineAccount
. 012-DC02 has passed the test MachineAccount
Start testing: NCSecDesc
. 012-DC02 has passed the test NCSecDesc
Start testing: NetLogons
. 012-DC02 has passed the test NetLogons
Start testing: ObjectsReplicated
. 012-DC02 has passed the test ObjectsReplicated
Start testing: Replications
. 012-DC02 has passed the test Replications
Start testing: RidManager
. 012-DC02 has passed the test RidManager
Start testing: Services
. 012-DC02 has passed the test Services
Start testing: SystemLog
. 012-DC02 has passed the test SystemLog
Start testing: VerifyReferences
. 012-DC02 has passed the test VerifyReferences
ForestDnsZones
Run partition tests on the
Start testing: CheckSDRefDom
. ForestDnsZones has passed the test CheckSDRefDom
Start testing: Cro***efValidation
. ForestDnsZones has passed the test Cro***efValidation
DomainDnsZones
Run partition tests on the
Start testing: CheckSDRefDom
. DomainDnsZones has passed the test CheckSDRefDom
Start testing: Cro***efValidation
. DomainDnsZones has passed the test Cro***efValidation
Schema
Run partition tests on the
Start testing: CheckSDRefDom
. Schema has passed the test CheckSDRefDom
Start testing: Cro***efValidation
. Schema has passed the test Cro***efValidation
Configuration
Run partition tests on the
Start testing: CheckSDRefDom
. Configuration has passed the test CheckSDRefDom
Start testing: Cro***efValidation
. Configuration has passed the test Cro***efValidation
I-x-Cloud
Run partition tests on the
Start testing: CheckSDRefDom
. I-x-Cloud has passed the test CheckSDRefDom
Start testing: Cro***efValidation
. I-x-Cloud has passed the test Cro***efValidation
I-x-Cloud.com
Run enterprise tests on the
Start testing: LocatorCheck
. I-x-Cloud.com has passed the test LocatorCheck
Start testing: Intersite
. I-x-Cloud.com has passed the test Intersite
C:\ Users\ Administrator.i-x-Cloud >
This article has been completed!