編集

次の方法で共有


Uninstall-AdcsCertificationAuthority

Uninstalls the CA role service and removes the configuration information.

Syntax

Default (Default)

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

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.

Parameter properties

Type:SwitchParameter
Default value:False
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

-WhatIf

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

Parameter properties

Type:SwitchParameter
Default value:False
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

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.