PrepAway - Latest Free Exam Questions & Answers

Which two cmdlets should you run?

Your network contains an Active Directory domain named contoso.com. The domain
contains a server named Server1 that runs a Server Core installation of Windows Server
2012 R2.
You need to deploy a certification authority (CA) to Server1. The CA must support the autoenrollment of certificates.
Which two cmdlets should you run? (Each correct answer presents part of the solution.
Choose two.)

PrepAway - Latest Free Exam Questions & Answers

A.
Add-CAAuthoritylnformationAccess

B.
Install-AdcsCertificationAuthority

C.
Add-WindowsFeature

D.
Install-AdcsOnlineResponder

E.
Install-AdcsWebEnrollment

Explanation:
* The Install-AdcsCertificationAuthority cmdlet performs installation and configuration of the
AD CS CA role service.
*The Install-AdcsWebEnrollment cmdlet performs initial installation and configuration of the
Certification Authority Web Enrollment role service.

44 Comments on “Which two cmdlets should you run?

  1. Sam says:

    I think it’s B and C

    https://4sysops.com/archives/certificate-server-in-server-core/

    You can install the Active Directory Certificate Services role by running the following PowerShell one-liner (start off by typing PowerShell first, to get the PowerShell prompt):
    Install-WindowsFeature AD-Certificate

    By default, when you run the Install-AdcsCertificationAuthority cmdlet, it will configure an Enterprise Root CA with a Common Name based on the Domain and Hostname of your Server Core installation and appended with -CA. :
    Install-AdcsCertificationAuthority -CAType StandaloneRootCa -ValidityPeriod Years -ValidityPeriodUnits 10 -DatabaseDirectory “D:\ADCS” -LogDirectory “D:\ADCS”




    0



    0
    1. Tyson says:

      (From that same link you provided) Enterprise Certification Authority:

      To configure a CA for a smaller environment, you might simply use the following PowerShell command: Install-AdcsCertificationAuthority

      Since most of the settings for a default CA look to be well-suited for small- to medium-sized businesses, I consider it a best practice to use them in this case. Answer y to accept them




      0



      0
    2. Jobe says:

      It is B and C,

      You cannot run Install-AdcsCertificationAuthority without the ADCS binaries installed – if you try you will recieve the following:

      “install-adcscertificationauthority : The Certification Authority cannot be installed before the installation files are added. Add the role service through Server Manager or Add-WindowsFeature PowerShell cmdlet and then retry.”

      So to point it out.:

      1:add-windowsfeature ad-certificate
      2:install-adcscertificationauthority

      Enterprise CA supports auto enrollment – no need for web enrollment.




      5



      0
  2. PPGrillo says:

    The Add-WindowsFeature cmdlet has been replaced, starting with Windows Server 2012, by the Install-WindowsFeature cmdlet. For more information about Install-WindowsFeature in Windows Server 2012, see Install-WindowsFeature. For more information about Install-WindowsFeature in Windows Server 2012 R2, see Install-WindowsFeature.




    0



    1
  3. eric chung says:

    It seems B and C.
    You must install the CA role before you run Install-AdcsCertificationAuthority.

    http://technet.microsoft.com/en-us/library/hh848389.aspx

    “Detailed Description
    The Install-AdcsCertificationAuthority cmdlet performs installation and configuration of the AD CS CA role service. To remove the certification authority role service use the Uninstall-AdcsCertificationAuthority cmdlet.

    You can import the cmdlet by running the following commands from Windows PowerShell:
    Import-Module ServerManager
    Add-WindowsFeature Adcs-Cert-Authority”




    0



    0
          1. Puck says:

            I believe Aliases are just “another name” for the same command.

            If you input an alias of a command, such as “Add-WindowsFeature” I believe the command will run as if you typed in the new “Install-WindowsFeature” command.

            Saw it in a video when I was studying for 410.




            0



            0
          2. Ricky says:

            Correct.

            This is trivial knowledge. No offense but I really wonder how some of you even passed 410 and 411. You shouldn’t be asking simple questions such as this at this stage.




            0



            2
  4. Mosad says:

    he Install-AdcsCertificationAuthority cmdlet performs installation and configuration of the AD CS CA role service. To remove the certification authority role service use the Uninstall-AdcsCertificationAuthority cmdlet.
    You can import the cmdlet by running the following commands from Windows PowerShell:
    Import-Module ServerManager
    Add-WindowsFeature Adcs-Cert-Authority
    To include the Certification Authority and Certificate Templates consoles in a CA installation, you must add -IncludeManagementTools to the end of the AddWindowsFeature Adcs-Cert-Authority command.




    0



    0
    1. clamshell says:

      This is the best link, IMO. The start of the article refers to the Add-WindowsFeature, while the main article refers to Install-AdcsCertificationAuthority




      0



      0
  5. Lostineurope says:

    Applies To: Windows Server 2012
    You can use this procedure to install Active Directory® Certificate Services (AD CS) so that you can enroll a server certificate to servers running Network Policy Server (NPS), Routing and Remote Access Service (RRAS), or both.

    To perform this procedure by using Windows PowerShell, open Windows PowerShell and type the following
    command, and then press ENTER. You must also replace the domain name with the name that you want to use.

    C. Add-WindowsFeature Adcs-Cert-Authority -IncludeManagementTools

    After AD CS is installed, type the following command and press ENTER.

    B. Install-AdcsCertificationAuthority –CAType EnterpriseRootCA

    ——————-
    I read, but can not find, that AutoEnrollment does not need to be configured in 2012.




    0



    0
  6. Billy says:

    It is B & C.

    B: This actually installs the Certification Authority on the server.
    C: Use this to install Group Policy Management COnsole on the server, so you can set up the autoenrollment policy.




    0



    0
  7. someone says:

    I’ve tested in my lab setup and B&C suffices. Granted, the auto-enroll settings still need to be configured (adding a copy of a template) besides the two commands and a gpo needs to be configured as well but at least there is support for the option, as mentioned in the question.




    0



    0
  8. Joe says:

    B and C seems to be correct…

    The reason I think it is not E is that E is so that users can go to a portal to enrol for a certificate, this is not autoenroll as it requires user interaction.

    Add the ADCS feature and install the CA service. You can install CA without the ADCS feature




    0



    0
  9. snfonseka says:

    Install-WindowsFeature, Installs one or more roles, role services, or features on either the local or a specified remote server that is running Windows Server 2012 R2. This cmdlet is equivalent to and replaces Add-WindowsFeature, the cmdlet that was used to install roles, role services, and features in Windows Server 2008 R2.

    So how can one use Add-WindowsFeature in 2012 R2?




    0



    0
  10. Puck says:

    ANSWER: B and C

    Here is the excerpt on how to install it: https://gyazo.com/8a379fd4c93569074ec81fe4873aabc9

    Taken from this page: http://securebits.in/deploying-a-certificate-authority-in-server-2012-using-powershell/?ckattempt=1

    People saying that “ADD-WindowsFeature” is a redundant command isn’t entirely true. Yes, this is the old command and the new command for 2012 is “Install-WindowsFeature” BUT the old command still remains as an alias for the new one, so it will still work.

    http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/21/when-you-should-use-powershell-aliases.aspx

    Also, it is probably a typo here.




    0



    0
  11. Julian says:

    B & C
    https://technet.microsoft.com/en-us/library/jj125375.aspx

    To perform this procedure by using Windows PowerShell, open Windows PowerShell and type the following command, and then press ENTER. You must also replace the domain name with the name that you want to use.

    Add-WindowsFeature Adcs-Cert-Authority -IncludeManagementTools

    After AD CS is installed, type the following command and press ENTER.

    Install-AdcsCertificationAuthority –CAType EnterpriseRootCA




    0



    0
  12. Digixorcist says:

    From Technet:

    https://technet.microsoft.com/en-us/library/hh848389(v=wps.630).aspx

    The Install-AdcsCertificationAuthority cmdlet performs installation and configuration of the AD CS CA role service. To remove the certification authority role service use the Uninstall-AdcsCertificationAuthority cmdlet.
    You can import the cmdlet by running the following commands from Windows PowerShell:
    Import-Module ServerManager
    Add-WindowsFeature Adcs-Cert-Authority
    To include the Certification Authority and Certificate Templates consoles in a CA installation, you must add -IncludeManagementTools to the end of the AddWindowsFeature Adcs-Cert-Authority command.

    The way I read it, you have to import the cmdlet first by using Add-WindowsFeature, then you can set up using Install-ADCSCertifithingimajig




    0



    0

Leave a Reply