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. 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-ADDSDomainController

B.
Install-ADDSDomatn

C.
Install-ADDSForest

D.
Install-WindowsFeature

Explanation:
Install-ADDSDomainController – Installs a domain controller in Active Directory. Install-ADDSDomain – Installs a
new Active Directory domain configuration. Install-ADDSForest – Installs a new Active Directory forest
configuration. Install-WindowsFeature – Installs one or more Windows Server roles, role services, or features
on either thelocal or a specified remote server that is running Windows Server 2012. This cmdlet is equivalent
to andreplaces Add-WindowsFeature, the cmdlet that was used to install roles, role services, and features.
C:\PS>Install-ADDSForest -DomainName corp.contoso.com -CreateDNSDelegation – DomainMode Win2008 -ForestMode Win2008R2 -DatabasePath “d:\NTDS” -SysvolPath “d:\SYSVOL” -LogPath
“e:\Logs”Installs a new forest named corp.contoso.com, creates a DNS delegation in the contoso.com domain,
setsdomain functional level to Windows Server 2008 R2 and sets forest functional level to Windows Server
2008,installs the Active Directory database and SYSVOL on the D:\ drive, installs the log files on theE:\ drive
andhas the server automatically restart after AD DSinstallation is complete and prompts the user to provide
andconfirm the Directory Services Restore Mode (DSRM) password.
http://technet.microsoft.com/en-us/library/hh974720%28v=wps.620%29.aspx

24 Comments on “Which cmdlet should you run?

      1. semiproslacker1 says:

        GRobson, do you not see what RobD is saying? Look at the question, it said that you have already installed ADDS. If you have already done that, then there has to be a forest already. The next thing to do is promote it to a DC, hence why A. is the answer.




        0



        0
  1. John says:

    In Lab on Core 2012 R2

    c:\users\trainer>powershell
    PS C:\users\trainer>Install-WindowsFeature -name AD-Domain-Services
    PS C:\users\trainer>Install-ADDSForest -domainname “test.com”
    SafeModeAdministratorPassword:
    Confirm SafeModeAdministratorPassword:

    The taerget server will be configured as a domain controller and restarted when this operation is complete.
    Do yo 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




    0



    0
    1. Lou says:

      So then D is correct since they say “You install the Active Directory Domain Services server role on Server1.
      The next step is to Install-ADDSForest

      Is this how everyone else reads it?




      0



      0
  2. han says:

    Yes, Forest has to be set up first if it’s pure empty.
    People get confused forest as just a root of domains in the tree, but in technical terms, forest means, the first root domain.
    So, you have to set up a root domain by running install-addsforest. While it’s installing the first forest(root domain), it will configure the machine as the first domain controllers so the other adds cmdlets mentioned in the choices are not necessary.




    0



    0
  3. Sergio says:

    So I created a new core server, and tested, the correct answer is Install-ADDSForest,
    Install-ADDSDomaincontroller will fail installation without the Forest installed first.




    1



    0
  4. Pirulo says:

    Can confirm. Correct answer is C.
    When you try to “promote” to a DC, it creates the forest, then the domain.
    Without a domain, there is no DC.
    Without a forest, there is no domain.




    0



    0
  5. davcio says:

    To install the AD DS files on the server, you can do one of the following:


    Use Server Manager to connect remotely to the Server Core server and install the AD DS
    role as described in the previous topic.

    Use the Windows PowerShell command Install-WindowsFeature AD-Domain-Services to install the files.
    Once you install the AD DS files, you can complete everything except the hardware installation and configuration in one of the following ways:


    Use Server Manager to start the Active Directory Domain Services Configuration Wizard as described in the previous topic.

    Run the Windows PowerShell cmdlet Install-ADDSDomainController and supply the required information on the command line.




    0



    0
  6. Peter says:

    C is correct. Active Directory Domain Services must be installed to promote the server into a domain controller of a forest, domain, or failover. Since the question states AD Domain Services is installed, the next step is to install a forest (assuming there is no forest present to begin with.)




    0



    0
  7. Frank says:

    Stupid microsoft and their stupid questions! Just say what it is you want us to do and be freaking clear about it..
    The question should be;…you install server1 to be the first DC in the forrest and so on, then everbody would understand what it is you want us to do!!!




    0



    0
    1. TheoneTruePotato says:

      No because that would imply that you have already created the forest.

      The question literally states that there is no domain in this test environment and that you have only installed the bare role on Server1. What step is next

      Answer is Install-ADDSforest.




      1



      0
  8. Valensuela says:

    I agree with Frank. This is a very vague question. The way the question should be worded is “Which command should you run first?” or “in which order should you run these commands?” That would make more sense.

    The way this question is worded is like asking what you need to do to back a car out of the driveway. A. Open the door. B. Get in the car. C. Start the car and D. put car in reverse and push on the gas. Technically it is (D) that ultimately backs you out of the driveway but you can’t do that until you do (A).

    Just as in this Microsoft question it is ultimately running the (a)”Install-ADDSDomainController” command that promotes the server to a domain controller. However, you cannot do that until you create a forrest so the answer is C.
    Install-ADDSForest, since that is what you have to do first.




    1



    0
  9. Tseen says:

    The Correct Answer is C, the first thing an admin does after installing a new Active directory services is to join a domain, but if there is no domain to join, the the admin has to create a forest. Therefore since this is a new instance of AD on the machine and there is no Forest, the admin will have to install the forest first




    0



    0

Leave a Reply