編集

次の方法で共有


Install-AdcsWebEnrollment

Installs the Certification Authority Web Enrollment.

Syntax

Default (Default)

Install-AdcsWebEnrollment
    [-CAConfig <String>]
    [-Force]
    [-Credential <PSCredential>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Install-AdcsWebEnrollment cmdlet performs initial installation and configuration of the Certification Authority (CA) Web Enrollment role service. To remove the Web Enrollment role service use the Uninstall-AdcsWebEnrollment cmdlet.

You can import the cmdlet by running the following commands from Windows PowerShell:

  • Import-Module ServerManager
  • Add-WindowsFeature Adcs-Web-Enrollment

Examples

Example 1: Install the Web Enrollment role service to a CA with confirmation

Install-AdcsWebEnrollment -CAConfig "<CAComputerName>\<CACommonName>"

This command installs the Web Enrollment role service to a CA specified by <CAComputerName>\<CACommonName>. Replace the computer name of the CA for <CAComputerName> and replace the CA common name for <CACommonName> when running the command.

Example 1: Install the Web Enrollment role service to a CA without confirmation

Install-AdcsWebEnrollment -CAConfig "<CAComputerName>\<CACommonName>" -Force

This command installs the Web Enrollment role service to a CA specified by <CAComputerName>\<CACommonName> without requiring user confirmation. Replace the computer name of the CA for <CAComputerName> and replace the CA common name for <CACommonName> when running the command.

Parameters

-CAConfig

Specifies the CA config parameter string. Do not specify this if there is a local CA installed.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Credential

Specifies a PSCredential object for the CA Web Enrollment. To obtain a credential object, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential. If the Web Enrollment service is configured to use Standalone 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.

Parameter properties

Type:PSCredential
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Force

Forces the command to run without asking for user confirmation.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

PSCredential

Outputs

Microsoft.CertificateServices.Deployment.Common.WEP.WebEnrollmentResult

Notes

  • Ensure you run Windows PowerShell as an administrator. You can use the Force parameter to bypass the prompt for confirmation. To see parameters, run the following command:

    Install-AdcsWebEnrollment -?