The very first surprising benefit from this CLI mode is in deploy additional DC to a Site/branch of our domain network where staff with a little of IT knowledge (especially with Active Directory).
A bundled DVD with system state restore, an unattendeded answer file alongside with dcpromo command will save your day.
[00:03] We are gonna continue the process of AD DS installation/DC promoting with CLI + unattendeded answer file rather than the regular Installation Wizard GUI in episode 1.
Its other applications can be proved via real scenarios; comparing to our virtual lab, the scale of domain infrastructure can grow mass: DC number may go up to 100+ servers, 50 Sites are feasible, 10+ IT teams, etc.
That's why you need to automate AD tasks in reliable ways, not only to reduce the time (CLI) but also maintain the consistency (unattendeded answer file).
[00:12] And with Windows Server core edition, you have no choice but this kind of deployment.
Moreover, you can take advanced of scripting to customize further the process of set hostname, IP address, DC promoting, etc.
And with the rising of PowerShell on Windows Server 2012, the possibility is unlimited!
[00:20] Let's finish the Export settings process, close AD DS Installation Wizard and review that unattendeded answer file.
[00:38] Basically, this file contains pre-assigned variables so that, the dcpromo (that is called in the command line mode with the path to this file) can read and complete the DC promoting process.
[00:46] DCPROMO unattendeded file (automatically generated by dcpromo) usage.
[00:54] Just enter this command in the CMD prompt, though, we prepared parameters via the AD DS Installation Wizard GUI.
[01:15] For security reasons, do not define any administrative credentials in that plain text file.
It will be prompted in a reliable way automatically, don't worry!
Now, you just need to re-run that dcpromo command.
– enter domain Admin account.
– wait for it to validate environment parameters.
– verify that the DNS installation is fine.
– the promoting process finishes after a server reboot.
and your additional DC is ready to go!
[02:35] Do not forget to log in with a domain account instead of a local one!
You may see that with different methods to promote an additional DC: Installation Wizard GUI, CLI with an unattended answer file; we get the same the result is now this machine become a server for SnoOpy.com domain.
[02:54] Alongside with DCs: SnoOpy-Server, SnoOpy-Server-2 (WS 2012).
Check to make sure Dcpromo was successful.
From a command prompt, enter the command Net Share then you should then see Netlogon and Sysvol shares listed.
If they don't show up, then the promotion wasn't successful, which would likely be due to failed replication. Furthermore, check the DNS settings.
[03:07] You should review parameters of the answer file carefully, as always, from the library of Microsoft: How to use unattendeded mode to install and remove Active Directory Domain Services on Windows Server 2008-based domain controllers.
[03:13] And refer this guide about Dcpromo using an unattendeded answer file.
In conjunction with the IFM feature, you should find it takes much less time and traffic to promote, synchronize the new DC, though, almost thing is packed in the backup state.