Get-MsmqCertificate
Gets certificates registered in Active Directory Domain Services.
Syntax
Default (Default)
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.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | cn |
Parameter sets
(All)
| Position: | 0 |
| 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.