Uninstall-AdcsEnrollmentPolicyWebService
Uninstall-AdcsEnrollmentPolicyWebService
Uninstalls the Certificate Enrollment Policy Web service.
Syntax
Parameter Set: UninstallSingleInstance
Uninstall-AdcsEnrollmentPolicyWebService -AuthenticationType <AuthenticationType> [-Force] [-KeyBasedRenewal] [ <CommonParameters>]
Parameter Set: UninstallAll
Uninstall-AdcsEnrollmentPolicyWebService [-AllPolicyServers] [-Force] [ <CommonParameters>]
Detailed Description
The Uninstall-AdcsEnrollmentPolicyWebService cmdlet uninstalls the Certificate Enrollment Policy Web Service.
Parameters
-AllPolicyServers
Uninstall all instances of the Certificate Enrollment Policy (CEP) Web Service.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
true (ByPropertyName) |
Accept Wildcard Characters? |
false |
-AuthenticationType<AuthenticationType>
Specifies the authentication type for the Certificate Enrollment Policy (CEP) Web Service instance to be uninstalled when multiple instances are present.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
true (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Force
Forces the command to run without asking for user confirmation.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-KeyBasedRenewal
Specifies the instance of the Certificate Enrollment Policy Web Service running in key-based renewal mode to be uninstalled. This parameter is optional. It is used to distinguish which instance of the Certificate Enrollment Policy 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 Certificate Enrollment Policy Web Service that is using the defined AuthenticationType that is not enabled for KeyBasedRenewal mode is uninstalled.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
true (ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
- bool, enum, bool
Outputs
The output type is the type of the objects that the cmdlet emits.
- Microsoft.CertificateServices.Deployment.Commands.CEP.EnrollmentPolicyServiceResult
Notes
- Ensure you run Windows PowerShell as an administrator. You can use the -force switch to bypass the prompt for confirmation.
Examples
-------------------------- EXAMPLE 1 --------------------------
Description
-----------
This command removes all configurations in the Certificate Enrollment Policy Web Service without prompting for confirmation.
C:\PS>Uninstall-AdcsEnrollmentPolicyWebService -AllPolicyServers -force
-------------------------- EXAMPLE 2 --------------------------
Description
-----------
This command removes the instance of Certificate Enrollment Policy Web Service that is utilizing certificate authentication and is in key-based renewal mode without prompting for confirmation.
C:\PS>Uninstall-AdcsEnrollmentPolicyWebService –AuthenticationType Certificate –KeyBasedRenewal -force