-
dcpromo Edit
The dcpromo command is a "switch" command. If the Windows Server computer is a member server, running the DCPROMO command installs the Active Directory, upgrades it to a domain controller, and if the Windows Server computer is already a domain controller, the run DCPROMO command uninstalls the Active Directory. Demote it to a member server.
-
Chinese name
-
Not currently
-
Foreign names
-
Dcpromo
-
Interpretation
-
is a "switch" command
-
Operating Platform
-
Windows 2000 or later server systems
-
Upgrade Product
-
Domain Controller
-
Degraded product
-
member Server
Directory
- 1 Working principle
- 2 Introduction to Commands
- ? Grammar
- ? Parameters
- ? Example
- 3 Significance
working principle edit By the vast number of enterprise-level users are concerned about the Windows Advanced Server is the Windows NT Server 4.0 based on the addition of a lot of new features, we here mainly talk about the dcpromo command. Friends familiar with Windows NT 4.0 know that before installing a server, you must plan the role of this server as the PDC (primary domain controller), BDC (backup domain controller), or member or stand-alone Server (member or stand-alone server). It also requires planning the logical structure of the network in advance, whether it is a domain or a workgroup (workgroup). If the workgroup is composed, the server can only be installed as member server, and if it is a domain, the first server installed in domain must be the PDC, and later servers can be installed as BDC. You can also install the member Server, but note that before you install the BDC, the PDC must already exist in the domain, and there can be only one PDC in a domain. Although there is a problem with the PDC in domain, a BDC can be promoted (Promote) to the PDC, but the DC (domain controller, including the PDC and BDC) and member server cannot be converted to each other, that is, when a server is installed, If you want to change its functionality, re-determine its role, turn from DC to member server, or from member server to DC, the only way to do this is to reinstall Windows NT. Therefore, the Division and Management mode of the computer role in NT 4.0 puts forward higher requirements for the domain planning, and also brings a lot of trouble to the maintenance of the domain. We are happy to see that Windows 2000 has solved this problem well. In Windows Advanced Server, the computer no longer distinguishes between a PDC or a BDC, and all servers have a difference between DC and member server, and the roles can be easily converted to each other. The tool that completes this function is the Dcpromo.exe command, which is a built-in command in Windows Advanced Server. When the administrator wants to change the role of a server, just run the dcpromo command in the command line state, Windows 2000 will automatically identify the current computer's role, and then pop up a wizard window to guide the user through the DC and member step-by-step Between the serversTransformation. Users can also verify that the conversion was successful by viewing the Dcpromo.log log.Command Introduction edit The dcpromo is used to promote the server to a domain controller, or to demote a domain controller to a member server. You can enter the wizard by using start-Allow to execute the command.Grammardcpromo [/answer[:<filename>] |/unattend[:<filename>] |/unattend |/adv]/uninstallbinaries [/ Createdcaccount | /useexistingaccount:attach]/? /? [: {Promotion | Createdcaccount | Useexistingaccount | Demotion}]Parameters/answer[:<filename>] Specifies an answer file that contains the installation parameters. /unattend[:<filename>] This parameter is similar to/answer, which specifies an answer file. /unattend specifies an unattended installation by using the parameters and values provided in the command. /ADV performs an installation from the media. /uninstallbinaries Uninstall the AD DS binaries. /createdcaccount Create a read-only domain controller account. This command can only be performed by a domain administrator or a member of the Domain management Group/Enterprise Management Group. /useexistingaccount:attach attach a server to a read-only domain controller account, a domain management group member or an authorized account to run the command.ExampleThe following command uses an answer file named Newforestinstallation: dcpromo/answer:newforestinstallation The following command creates the first domain controller in a subdomain: 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:2/domainlevel:2/rebootoncompletion: Yes the following command creates an additional domain controller with a global catalog and installs the configuration DNS server. Dcpromo/unattend/installdns:yes/confirmgc:yes/replicaornewdomain:replica/databasepath: "E:\ntds"/logPath: "E:\ Ntdslogs "/sysvolpath:" G:\sysvol "/SafeModemeaning editor We can see that although Dcpromo is only a small command, it greatly improves the manageability and ease of use of Windows 2000. In fact, this is only a minor improvement in Windows 2000 compared to the many advantages of previous versions of the operating system, but we can also really feel the efforts of Windows 2000 in the most user-friendly development principles.
Dcpromo (server2012 not supported)