Install-AdcsWebEnrollment
     Installs Certification Authority Web Enrollment
     The Install-AdcsWebEnrollment cmdlet performs initial installation and configuration of the Certification Authority Web Enrollment role service. To remove the Web Enrollment role service use the Uninstall-AdcsWebEnrollment cmdlet.
 Import-Module ServerManager
 Add-WindowsFeature Adcs-Web-Enrollment

-CAConfig 
         CAConfig parameter string. Do not specify this if there is a local CA installed.
    Required?                    false
    Position?                    named
    Default value                
    Accept pipeline input?       true (ByPropertyName)
    Accept wildcard characters?  false
-Credential <PSCredential>
    If the Web Enrollment service is configured to use Standalone certification authority (CA), then an account that is a member of the local Administrators on the CA is required. If the Web Enrollment service is configured to use an Enterprise CA, then an account that is a member of Domain Admins is required.
    Required?                    false
    Position?                    named
    Default value                
    Accept pipeline input?       true (ByPropertyName)
    Accept wildcard characters?  false
-Force <SwitchParameter>
    Forces the command to run without asking for user confirmation.
    Required?                    false
    Position?                    named
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  falseInstall-AdcsWebEnrollment [-CAConfig ] [-Credential ] [-Force ] []
     Ensure you run Windows PowerShell® as an administrator. You can use the -force switch to bypass the prompt for confirmation.     
     C:\PS>Install-AdcsWebEnrollment -CAConfig \
 This command installs the Web Enrollment role service to a CA specified by \. Replace the computer name of the certification authority (CA) for  and replace the CA common name for  when running the command. 
     C:\PS>Install-AdcsWebEnrollment -CAConfig \ -force
 This command isntalls the Web Enrollment role service to a CA specified by \ without requiring user confirmation. Replace the computer name of the certification authority (CA) for  and replace the CA common name for  when running the command. 
Get-Command Install-AdcsWebEnrollment

     Uninstall-AdcsWebEnrollment