Uninstall-AdcsEnrollmentPolicyWebService

Uninstall-AdcsEnrollmentPolicyWebService is accessible with the help of ADCSDeployment module. To install ADCSDeployment on your system please refer to this link.

Synopsis
Uninstalls the Certificate Enrollment Policy Web service.

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.

    Required?                    false
    Position?                    named
    Default value                
    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.

    Required?                    true
    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?  false

-KeyBasedRenewal <SwitchParameter>
    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.

    Required?                    false
    Position?                    named
    Default value                
    Accept pipeline input?       true (ByPropertyName)
    Accept wildcard characters?  false

Syntax

Uninstall-AdcsEnrollmentPolicyWebService [-Force ] [-KeyBasedRenewal ] -AuthenticationType  []

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

Notes
Ensure you run Windows PowerShell as an administrator. You can use the -force switch to bypass the prompt for confirmation.

————————– EXAMPLE 1 ————————–
C:\PS>Uninstall-AdcsEnrollmentPolicyWebService -AllPolicyServers -force
This command removes all configurations in the Certificate Enrollment Policy Web Service without prompting for confirmation.

————————– EXAMPLE 2 ————————–
C:\PS>Uninstall-AdcsEnrollmentPolicyWebService –AuthenticationType Certificate –KeyBasedRenewal -force
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.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Uninstall-AdcsEnrollmentPolicyWebService

Get-Command Uninstall-AdcsEnrollmentPolicyWebService powershell script command cmdlet

You can also read about
Install-AdcsEnrollmentPolicyWebService

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *