COMMAND EVERYTHING.
Submits a certificate request to an enrollment server and installs the response or retrieves a certificate for a previously submitted request.
Networking / Security · Risk: Low · Documentation VerifiedLast verified: 2026-10-26
Microsoft pki reference: Submits a certificate request to an enrollment server and installs the response or retrieves a certificate for a previously submitted request. The syntax and selected example below are adapted from the pinned Windows Server 2025 reference. Module availability, target configuration and delegated permissions determine whether it can run in your environment. Documentation and parameter text: Microsoft, CC BY 4.0; formatting adapted by Cmdlet World. No execution testing is claimed.
Get-Certificate [-Url <Uri>] -Template <String> [-SubjectName <String>]
[-DnsName <String[]>] [-Credential <PkiCredential>] [-CertStoreLocation <String>]
[-WhatIf] [-Confirm] [<CommonParameters>]Copied 0 timesUse an account with the target resource permissions documented for Get-Certificate. Modifying administrative cmdlets may require elevation or delegated administration. This catalog does not assert that ordinary users can execute the command.
Windows / pki · Windows Server 2025 documentation; feature/module prerequisites apply
-CertStoreLocation-Confirm-Credential-DnsName-Request (required)-SubjectName-Template (required)-Url-WhatIfWindows with the pki module and the Windows feature or management tools that provide it. Confirm target connectivity and version compatibility using the linked Microsoft reference.
This is a read-oriented cmdlet; protect any sensitive results and check the documented effects of your selected parameters.
Get-Certificate @paramsThis example submits a certificate request for the SslWebServer template to the specific URL using the user name and password credentials. The request will have two DNS names in it. This is for a certificate in the machine store. If the request is issued, then the returned certificate is installed in the machine My store and the certificate in the EnrollmentResult structure is returned with the status Issued. If the request is made pending, then the request is installed in the machine REQUEST store and the request in the EnrollmentResult structure is returned with the status Pending. Source: Microsoft, CC BY 4.0; transcript prompt/output removed. This example was not executed.
https://learn.microsoft.com/powershell/module/pki/get-certificate?view=windowsserver2025-ps
Sign in to keep your own command reference lists.
Explain or customize this command with AI