PrepAway - Latest Free Exam Questions & Answers

Which cmdlet should you run?

In an isolated test environment, you deploy a server named Server1 that runs a Server Core
Installation of Windows Server 2012 R2. The test environment does not have Active
Directory Domain Services (AD DS) installed.
You install the Active Directory Domain Services server role on Server1.
You need to configure Server1 as a domain controller.
Which cmdlet should you run?

PrepAway - Latest Free Exam Questions & Answers

A.
Install-ADDSDomain

B.
Install-ADDSDomainController

C.
Install-WindowsFeature

D.
Install-ADDSForest

12 Comments on “Which cmdlet should you run?

  1. Singh says:

    Answer is B (Install-ADDSDomainController)

    Install-ADDSForest applies if an administrator wants to add a Domain Controller to a Forest.

    The question doesn’t mention forest, so the best answer is B.




    0



    1
  2. Monu says:

    The question says that no ADDS is installed in the environment and then it says that you install ADDS on server1. Now to be able to make it a domain controller you will have to map it to some domain and to have a domain you first need to have a forest setup in this new environment.

    1 Install ADDS
    2 Install Forest
    3 Install Domain
    4 Install Domain Controller




    0



    0
  3. Anon says:

    D is correct. If you try to run Install-ADDSDomain or Install-ADDSDomainController in a lab without AD DS already installed you get an error. Think of the forest as a root domain. Without the root you can’t do anything.




    1



    0
  4. dbKarlo says:

    I think D is answer. But, it is confusing when it says “You install ADDS …”. Does it mean that ADDS is installed or not? It is present time, not past. It should state “installed” and everything would be clear. 🙂




    0



    0
    1. D says:

      For anyone who has the same confusion that dbKarlo has stated, in the question it states you have installed the ADDS server role. For those who do not know, when installing AD for the first time on a server, you begin with installing the server role (which the question said has already been done, Install-Windowsfeature AD-Directory-Services). The next step is installing your forest, which includes creating your first DC, Install-ADDSForest.
      Therefore,
      The answer is D.




      0



      0
  5. gbj says:

    D is correct
    Here’s an output from my test on a new server with the ADDS role installed only:

    cmdlet Install-ADDSDomainController at command pipeline position 1
    Supply values for the following parameters:
    DomainName: test
    SafeModeAdministratorPassword: *********
    Confirm SafeModeAdministratorPassword: *********

    The target server will be configured as a domain controller and restarted when this operation is complete.
    Do you want to continue with this operation?
    [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is “Y”): y
    install-addsdomaincontroller : Verification of user credential permissions failed. An Active Directory domain
    controller for the domain “test” could not be contacted.
    Ensure that you supplied the correct DNS domain name.
    At line:1 char:1

    install-domain produces a similar result (it cannot contact the domain)

    Install-ADDSForest is the only command which works.




    0



    0

Leave a Reply