dcpromo
The dcpromo command installs, promotes, demotes, and removes Active Directory Domain Services (AD DS) from a Windows Server. Windows commands reference
On Windows File dcpromo.exe
Windows
The dcpromo command installs, promotes, demotes, and removes Active Directory Domain Services (AD DS) from a Windows Server. For examples of how to use dcpromo, see Examples.
The following example supplies an answer file named NewForestInstallation
dcpromo /answer:NewForestInstallationIdentify/answerSpecifies an answer file that contains installation parameters and values. Windows commands referenceThe following example creates the first domain controller in a new child domain where you expect to install at least some Windows Server 2025 domain controllers
dcpromo /unattend /InstallDns:yes /ParentDomainDNSName:contoso.com /replicaOrNewDomain:domain /newDomain:child /newDomainDnsName:east.contoso.com /childName:east /DomainNetbiosName:east /databasePath:"e:\ntds" /logPath:"e:\ntdslogs" /sysvolpath:"g:\sysvol" /safeModeAdminPassword:FH#3573.cK /forestLevel:10 /domainLevel:10 /rebootOnCompletion:yesIdentify/unattendSpecifies an answer file that contains installation parameters and values. Windows commands referenceThe following example creates another domain controller with the global catalog, and it installs and configures the DNS Server service
dcpromo /unattend /InstallDns:yes /confirmGC:yes /replicaOrNewDomain:replica /databasePath:"e:\ntds" /logPath:"e:\ntdslogs" /sysvolpath:"g:\sysvol" /safeModeAdminPassword:M6$,U8Gvx4 /rebootOnCompletion:yesIdentify/unattendSpecifies an answer file that contains installation parameters and values. Windows commands reference