Skip to content

PowerShell PKI Module Documentation

This command requires installed Remote Server Administration Tools (RSAT)

Uninstall-CertificationAuthority

Synopsis

Uninstalls Active Directory Certificate Services role from the local computer.

Syntax

Uninstall-CertificationAuthority [-AutoRestart] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Uninstalls Active Directory Certificate Services role from the local computer.

The command supports Windows Server 2008 R2 Server Core installations.

Parameters

-AutoRestart <SwitchParameter>

Automatically restarts computer to complete CA role removal. Otherwise you will have to restart the server manually.

Required? False
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? False

-Force <SwitchParameter>

By default, the commands prompts you whether you want to remove CA role. Use –Force switch to suppress all prompts.

Required? False
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? False

-WhatIf <SwitchParameter>

Describes what would happen if you executed the command without actually executing the command.

Required? False
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? False

-Confirm <SwitchParameter>

Prompts you for confirmation before executing the command.

Required? False
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, InformationAction, InformationVariable,
WarningAction, WarningVariable, OutBuffer, PipelineVariable and OutVariable.
For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

None.

Outputs

SysadminsLV.PKI.Utils.IServiceOperationResult

Notes

Examples

Example 1

PS C:\> Uninstall-CertificationAuthority -AutoRestart -Force

The command will uninstall CA role, suppresses all prompts and automatically restarts the server upon completion.

Related links

Install-CertificationAuthority

Minimum PowerShell version support

  • PowerShell 3.0

Operating System Support

  • Windows Server 2008 R2 all editions
Scroll To Top