Hi,
Welcome to the Microsoft Q&A platform!
You can try the following two ways:
- Copy the source key file to a new computer:
Run if you don't know the SID of the user:
$cert = Get-ChildItem Cert:\CurrentUser\My | Where {$_.Subject -match “user name”}
$keyContainer = $cert.PrivateKey.CspKeyContainerInfo.UniqueKeyContainerName
Copy the key file:
$sourcePath = “C:\ProgramData\Microsoft\Crypto\RSA\User SID\$keyContainer”
Copy-Item $sourcePath -Destination “\\\ New Computer\C$\Temp\” -Force
Import on new computer
$destPath = “C:\ProgramData\Microsoft\Crypto\RSA\User SID\”
robocopy “C:\Temp” $destPath $keyContainer /SEC
- The administrator reissues the exportable certificate through the CA. Copy the existing template in the CA console, check “Allow private key export” in the “Request Processing” tab, and issue a new version of the template.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".