Exporting Certificates

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Daniel Krebs Daniel Krebs 2 years, 1 month ago.

  • Author
  • #26714
    Profile photo of Graham Beer
    Graham Beer

    I'm looking for away to export all "LocalMachine" certificates to import on another machine. I've had a look at the export-Certificate cmdlet but struggling to see a way to capture all of them.

  • #26715
    Profile photo of Daniel Krebs
    Daniel Krebs

    Please try below:

    Get-ChildItem -Path Cert:\LocalMachine -Recurse | Where Thumbprint | ForEach-Object { Export-Certificate -FilePath "C:\TEMP\$($_.Thumbprint).cer" -Cert $_ }

You must be logged in to reply to this topic.