# Exporting Certificates

**URL:** <https://forums.powershell.org/t/exporting-certificates/4403>\
**Category:** PowerShell Help\
**Created:** [June 22, 2015, 1:11am UTC](https://forums.powershell.org/t/exporting-certificates/4403 "2015-06-22T01:11:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![graham-beer](https://avatars.discourse-cdn.com/v4/letter/g/49beb7/32.png) [@graham-beer](https://forums.powershell.org/u/graham-beer)\
**Post date:** [June 22, 2015, 1:11am UTC](https://forums.powershell.org/t/exporting-certificates/4403/1 "2015-06-22T01:11:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![daniel-krebs](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/daniel-krebs/32/484_2.png) [@daniel-krebs](https://forums.powershell.org/u/daniel-krebs)\
**Post date:** [June 22, 2015, 2:31am UTC](https://forums.powershell.org/t/exporting-certificates/4403/2 "2015-06-22T02:31:51Z")

</div>

Please try below:

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

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:45pm UTC](https://forums.powershell.org/t/exporting-certificates/4403/3 "2024-05-16T20:45:09Z")

</div>


