PS C:\Program Files\Dynamics 365\Tools> $CertificateScriptWithCommand = ".\CertificateReconfiguration.ps1 -certificateFile c:\crm\Personalcertfile.pfx -password xxxxxxxxxx -updateCrm -certificateType S2STokenIssuer -serviceAccount 'Network Service' -storeFindType FindBySubjectDistinguishedName"
>> Invoke-Expression -command $CertificateScriptWithCommand
[08/07/2026 03:13:28] Certificate private key is not found.
Make sure you run powershell as Admin when you run this or you will get Certificate private key is not found.
