Exporting Certificates

Welcome Forums General PowerShell Q&A Exporting Certificates

This topic contains 1 reply, has 2 voices, and was last updated by

3 years, 7 months ago.

  • Author
  • #26714

    Points: 0
    Rank: Member

    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

    Points: 24
    Team Member
    Rank: Member

    Please try below:

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

The topic ‘Exporting Certificates’ is closed to new replies.