Uninstall-Adcs Certification Authority

Uninstalls the CA role service and removes the configuration information.

Syntax

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

Description

The Uninstall-AdcsCertificationAuthority cmdlet removes the Active certificate authority (CA) role and removes the configuration information.

Examples

Example 1: Uninstall the Active Directory CA role service

PS C:\> Uninstall-AdcsCertificationAuthority -Force

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

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

Forces the command to run without asking for user confirmation.

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.Common.CA.CertificationAuthoritySetupResult

Notes

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