Uninstall-AdcsCertificationAuthority

Uninstalls the Certification Authority (CA) role service and removes its configuration information.

Syntax

Uninstall-AdcsCertificationAuthority
         [-Force]
         [-WhatIf]
         [-Confirm]
         [<CommonParameters>]

Description

The Uninstall-AdcsCertificationAuthority cmdlet removes the Active CA role and removes its configuration information.

Examples

-------------------------- EXAMPLE 1 --------------------------

C:\PS>Uninstall-AdcsCertificationAuthority -force

Description


This command removes the Active Directory Certification Authority role service and does not prompt for user confirmation.

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Force
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.CertificateServices.Deployment.Commands.CA.CertificationAuthoritySetupResult

Notes

  • To uninstall the CA role service, ensure you run PowerShell as an administrator. You can run the command with the -f switch to bypass the prompt for confirmation.