Welcome to another series of mastering windows active directory. In this video we will learn how to add a new child domain to a parent domain through PowerShell.
Rename-computer -newname sales-dc1
$ipaddress = "172.17.1.103"
$dnsaddress = "172.17.1.101"
New-NetIPAddress -InterfaceAlias Ethernet -IPAddress $ipaddress -AddressFamily IPv4 -PrefixLength 24
Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses $dnsaddress
Restart-computer
Set-TimeZone -Id "Mountain Standard Time”
Install-WindowsFeature AD-Domain-Services –IncludeManagementTools
Install-ADDSDomain –DomainType ChildDomain -ParentDomainName "sdn.lab" –NewDomainName “sales” -credential (get-credential)
Validating the new Domain Controller
Get-Service adws,kdc,netlogon,dns
Get-Smbshare
get-eventlog "Directory Service" | select entrytype, source, eventid, message
get-eventlog "Active Directory Web Services" | select entrytype, source, eventid, message