Summary Command
DC-2012 BEFORE MOVE
#hostname
#netdom query fsmo
DC-2019
#Install-WindowsFeature –Name AD-Domain-Services -IncludeManagementTools
# Install-ADDSDomainController -CreateDnsDelegation:$false -NoGlobalCatalog:$true -InstallDns:$true -DomainName "itikz.hotel" -SiteName "Default-First-Site-Name" -ReplicationSourceDC "dc-2012.itikz.hotel" -DatabasePath "C:\Windows\NTDS" -LogPath "C:\Windows\NTDS" -NoRebootOnCompletion:$true -SysvolPath "C:\Windows\SYSVOL" -Force:$true
# Get-Service adws,kdc,netlogon,dns
#Get-ADDomainController -Filter * | Format-Table Name, IPv4Address, Site
# Move-ADDirectoryServerOperationMasterRole -Identity dc-2019 -OperationMasterRole SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster, InfrastructureMaster
#netdom query fsmo
DC-2012 AFTER MOVE
#netdom query fsmo
# Uninstall-ADDSDomainController -DemoteOperationMasterRole –RemoveApplicationPartition
# uninstall-WindowsFeature AD-Domain-Services
# Uninstall-WindowsFeature –Name DNS –Remove
DC-2019 FINAL STEP
# Get-ADDomain | fl Name,DomainMode
# Get-ADForest | fl Name,ForestMode
# Set-ADDomainMode –identity itikz.hotel -DomainMode Windows2016Domain
# Set-ADForestMode -Identity itikz.hotel -ForestMode Windows2016Forest
Verify
# Get-ADDomain | fl Name,DomainMode
# Get-ADForest | fl Name,ForestMode