Edit

Share via


Uninstall-AdcsEnrollmentPolicyWebService

Uninstalls the Certificate Enrollment Policy Web service.

Syntax

UninstallSingleInstance (Default)

Uninstall-AdcsEnrollmentPolicyWebService
    -AuthenticationType <AuthenticationType>
    [-KeyBasedRenewal]
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

UninstallAll

Uninstall-AdcsEnrollmentPolicyWebService
    [-AllPolicyServers]
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Uninstall-AdcsEnrollmentPolicyWebService cmdlet uninstalls the Certificate Enrollment Policy (CEP) Web Service.

Examples

Example 1: Uninstall all configuration in the CEP Web Service

Uninstall-AdcsEnrollmentPolicyWebService -AllPolicyServers -Force

This command uninstalls all configurations in the CEP Web Service without prompting for confirmation.

Example 2: Uninstall an instance of the CEP Web Service

Uninstall-AdcsEnrollmentPolicyWebService -AuthenticationType Certificate -KeyBasedRenewal -Force

This command uninstalls the instance of CEP Web Service that is utilizing certificate authentication and is in key-based renewal mode without prompting for confirmation.

Parameters

-AllPolicyServers

Indicates that the cmdlet uninstall all instances of the CEP Web Service.

Parameter properties

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

Parameter sets

UninstallAll
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-AuthenticationType

Specifies the authentication type for the CEP Web Service instance to be uninstalled when multiple instances are present.

Parameter properties

Type:AuthenticationType
Default value:None
Accepted values:Kerberos, UserName, Certificate
Supports wildcards:False
DontShow:False

Parameter sets

UninstallSingleInstance
Position:Named
Mandatory:True
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

-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

-KeyBasedRenewal

Indicates that this cmdlet uninstalls the instance of the CEP Web Service running in key-based renewal mode. This parameter is optional. It is used to distinguish which instance of the CEP Web Service is to be uninstalled if there are multiple instances that use the same authentication type. If this option is not specified, the instance of the CEP Web Service that is using the defined AuthenticationType that is not enabled for KeyBasedRenewal mode is uninstalled.

Parameter properties

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

Parameter sets

UninstallSingleInstance
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
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

SwitchParameter

Microsoft.CertificateServices.Deployment.Common.AuthenticationType

Outputs

Microsoft.CertificateServices.Deployment.Common.CEP.EnrollmentPolicyServiceResult

Notes

  • Ensure you run Windows PowerShell as an administrator. You can use the Force parameter to bypass the prompt for confirmation.