Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Get-Certificate

Get-Certificate - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Submits a certificate request to an enrollment server and installs the response or retrieves a certificate for a previously submitted request.

Get-Certificate [-CertStoreLocation <String>] [-Credential <PkiCredential>] [-DnsName <String>] [-SubjectName <String>]
 [-Url <Uri>] -Template <String> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Get-Certificate [-Credential <PkiCredential>] -Request <Certificate> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchPa
rameter>]] [<CommonParameters>]

The Get-Certificate cmdlet can be used to submit a certificate request and install the resulting certificate, install a
 certificate from a pending certificate request, and enroll for ldap. If the request is issued, then the returned certi
ficate is installed in the store determined by the CertStoreLocation parameter and return the certificate in the Enroll
mentResult structure with status Issued. If the request is made pending, then the request is installed in the machine R
EQUEST store and a request is returned in the EnrollmentResult structure with status Pending.

This cmdlet can be used in a Stateless mode where this cmdlet does not look up anything in the vault or in a Stateful m
ode where it looks at registered certificate enrollment policy servers by identifier (ID) and credential. When used wit
h a request object and no credential, this cmdlet will look up credentials in the vault based on the URL for the enroll
ment policy server.

This cmdlet will not accept a policy server identifier (ID). If a URL is not specified, then only the default certifica
te enrollment policy ID is used and the cmdlet will attempt to obtain policy information from any of its URLs.

Delegation may be required when using this cmdlet with Windows PowerShell® remoting and changing user configuration.