Hi @Oliveira Junior, Jose Ramos (SMO TK RYD SIG) ,
maybe this helps to get started (haven't tested the script because no CA available at the moment):
Import-Module ADCSAdministration
$caName = "Name of CA"
$outputDir = "C:\Certificates"
$caObj = Get-CertificationAuthority -Name $caName
$certs = Get-IssuedRequest -CertificationAuthority $caObj
foreach ($cert in $certs) {
$certObj = Get-Certificate -CertId $($cert.RequestID) -CertAuthority $caObj
[System.IO.File]::WriteAllText($("$outputDir\Cert_$certId.cer"), $certObj.RawData | Convert.ToBase64String)
}
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten