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://pspki.codeplex.com/

Get-CertificationAuthority

[This command is not available in non-domain environments]

[This command requires installed Remote Server Administration Tools (RSAT)]

Get-CertificationAuthority

Synopsis

Retrieves all Enterprise Certification Authorities from a current Active Directory forest.

Syntax

Get-CertificationAuthority [[-ComputerName] <String>] [<CommonParameters>]

Get-CertificationAuthority [[-Name] <String>] [<CommonParameters>]

Description

Retrieves all Enterprise Certification Authorities from a current Active Directory forest.

Parameters

-ComputerName <String>

Specifies Certification Authority computer name. (default)

This parameter accepts the following wildcard characters:
? - for single wildcard character matching
* - for multiple wildcard character matching

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

-Name <String>

Specifies the particular Certification Authority display name.

This parameter accepts the following wildcard characters:
? - for single wildcard character matching
* - for multiple wildcard character matching.

Required? False
Position? 0
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

PKI.CertificateServices.CertificateAuthority[]

Notes

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

Examples

Example 1

PS C:\> Get-CertificationAuthority

Returns all Enterprise Certification Authorities objects in current forest.

Example 2

PS C:\> Get-CertificationAuthority -Name "RootCa"

Returns specified Certification Authority object.

Example 3

PS C:\> Get-CertificationAuthority "ca01*"

Retrieves all Enterprise Certification Authorities which server name starts with 'ca01'. Wildcards are useful when your infrastructure uses complex naming convention. You can put wildcards at any point in the string.

Related links

Connect-CertificationAuthority

PowerShell Support

  • PowerShell 3.0

Operating System Support

  • Windows Server 2003 all editions
  • Windows Server 2008 all editions
  • Windows Server 2008 R2 all editions
  • Windows Server 2012 all editions
  • Windows Server 2012 R2 all editions

Comments:

Captcha