Answered by:
Installing AD DS Role vs. Installing Forest/Domain/Domain Controller

Question
-
I am looking for a little clarification on the following Powershell cmdlets used to promote a server to a domain controller:
Install-ADDSDomainController - Promotes a domain controller within an existing domain.
Install-ADDSForest - Promotes server to domain controller and creates a new forest.
Install-ADDSDomain - Promotes server to domain controller and creates a new domain.
Do any of these cmdlets install the AD DS role on the server for you, or do you need to install the server role before running any of these? I know they check for prerequisites but I'm not sure what prerequisites they check for. From what I've read, it seems like the role needs to be installed before running these cmdlets but I haven't found anything that clearly states that as a requirement. It's also not clear why these cmdlets couldn't be capable of installing the role for you since they give you the option to install the DNS server role.
It would also be helpful to know the preferred way using Powershell to create a domain controller from a clean Windows Server 2012 R2 installation.
Thank you!
Sunday, January 18, 2015 7:27 PM
Answers
-
Do any of these cmdlets install the AD DS role on the server for you, or do you need to install the server role before running any of these?
You need to install ADDS role first. You can read this for more details: https://www.microsoftpressstore.com/articles/article.aspx?p=2216997&seqNum=4
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link My Linkedin Profile My MVP Profile- Proposed as answer by Mahdi Tehrani Monday, January 19, 2015 9:02 AM
- Marked as answer by Vivian_Wang Tuesday, February 10, 2015 1:39 AM
Sunday, January 18, 2015 7:31 PM -
ADDS role needs to be added before using these cmdlets. Take a look at Use PowerShell to Deploy a New Active Directory Forest: it does provide a good description of the process as well as code examples.
Gleb.
- Proposed as answer by Mahdi Tehrani Monday, January 19, 2015 9:02 AM
- Marked as answer by Vivian_Wang Tuesday, February 10, 2015 1:39 AM
Monday, January 19, 2015 8:51 AM -
Hi,
I would agree with others.
If you want to install domain controller using PowerShell, you need to install the AD DS role firstly:
http://www.brandonlawson.com/active-directory/installing-a-2012-domain-controller-with-powershell/
Regards.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com
- Proposed as answer by Vivian_Wang Saturday, February 7, 2015 8:16 AM
- Edited by Vivian_Wang Saturday, February 7, 2015 8:16 AM
- Marked as answer by Vivian_Wang Tuesday, February 10, 2015 1:39 AM
Tuesday, February 3, 2015 10:01 AM
All replies
-
Do any of these cmdlets install the AD DS role on the server for you, or do you need to install the server role before running any of these?
You need to install ADDS role first. You can read this for more details: https://www.microsoftpressstore.com/articles/article.aspx?p=2216997&seqNum=4
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link My Linkedin Profile My MVP Profile- Proposed as answer by Mahdi Tehrani Monday, January 19, 2015 9:02 AM
- Marked as answer by Vivian_Wang Tuesday, February 10, 2015 1:39 AM
Sunday, January 18, 2015 7:31 PM -
ADDS role needs to be added before using these cmdlets. Take a look at Use PowerShell to Deploy a New Active Directory Forest: it does provide a good description of the process as well as code examples.
Gleb.
- Proposed as answer by Mahdi Tehrani Monday, January 19, 2015 9:02 AM
- Marked as answer by Vivian_Wang Tuesday, February 10, 2015 1:39 AM
Monday, January 19, 2015 8:51 AM -
Hi,
I would agree with others.
If you want to install domain controller using PowerShell, you need to install the AD DS role firstly:
http://www.brandonlawson.com/active-directory/installing-a-2012-domain-controller-with-powershell/
Regards.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com
- Proposed as answer by Vivian_Wang Saturday, February 7, 2015 8:16 AM
- Edited by Vivian_Wang Saturday, February 7, 2015 8:16 AM
- Marked as answer by Vivian_Wang Tuesday, February 10, 2015 1:39 AM
Tuesday, February 3, 2015 10:01 AM