Comments on this page are supposed to improve article content and no technical support is provided. For technical questions, please visit project home page at: https://github.com/Crypt32/PSPKI

Uninstall-CertificationAuthority

[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 (http://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

None.

Outputs

None.

Notes

Author: Vadims Podans
Blog: https://www.sysadmins.lv

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

PowerShell Support

  • PowerShell 3.0

Operating System Support

  • Windows Server 2008 all editions
  • Windows Server 2008 R2 all editions

Comments:

Captcha