Get-MSMQCertificate

Gets certificates registered in Active Directory Domain Services.

Syntax

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

Description

The Get-MsmqCertificate cmdlet gets an array of System.Security.Cryptography.X509Certificates.X509Certificate objects. Each object represents a personal certificate that is currently registered in Active Directory® Domain Services.

Examples

Example 1: Get all certificates of the current user

PS C:\> Get-MsmqCertificate

This command gets the certificates of the current user for all hosts or virtual servers.

Example 2: Get the certificates of the current user for a host or virtual server

PS C:\> Get-MsmqCertificate -ComputerName "Contoso27"

This command gets the certificates of the current user for the host or virtual server named Contoso27.

Parameters

-ComputerName

Specifies the name of a host or virtual server. This cmdlet gets the certificates of the current user for the specified host or virtual server. If you do not specify this parameter, this cmdlet gets the certificates of the current user for all hosts or virtual servers.

Type:String
Aliases:cn
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Object