web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CertificateReconfiguration.ps1 access is denied when running the script

(0) ShareShare
ReportReport
Posted on by

I'm running the power shell script as admin

My user is local admin. The CRM service account is local admin and SA on the SQL server instance

In the script I've specified the CRM service account and i made sure that it has read access/private keys to the certificate that is installed on the crm server/iis.

CRM is working, IFD is working.

I have run the script in the past without this issue. The certificate has expired and i'm trying to update with a new certificate with a different name if this could be the cause?

Set-CrmCertificate : Source : mscorlib
Method : HandleReturnMessage
Date : 3:51:35 PM
Time : 6/3/2019
Error : Message: Access is denied.
ErrorCode: -2147187707
Stack Trace :
======================================================================================================================
Inner Exception Level 1 :
==DeploymentServiceFault Info=========================================================================================
Error : Access is denied.
Time : 6/3/2019 1:51:35 PM
ErrorCode : -2147187707
Date : 3:51:35 PM
Time : 6/3/2019
Error Items:
======================================================================================================================
At C:\Program Files\Microsoft Dynamics CRM\tools\CertificateReconfiguration.ps1:198 char:3
+ Set-CrmCertificate -CertificateType $certificateType -DataFile $script:tempPub ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Crm.P...rtificateCmdlet:SetCrmCertificateCmdlet) [Set-CrmCertifi
cate], FaultException`1
+ FullyQualifiedErrorId : CRM Deployment Cmdlet Error,Microsoft.Crm.PowerShell.SetCrmCertificateCmdlet
[06/03/2019 15:51:35] Source : mscorlib
Method : HandleReturnMessage
Date : 3:51:35 PM
Time : 6/3/2019
Error : Message: Access is denied.
ErrorCode: -2147187707

Stack Trace :
======================================================================================================================
Inner Exception Level 1 :
==DeploymentServiceFault Info=========================================================================================
Error : Access is denied.
Time : 6/3/2019 1:51:35 PM
ErrorCode : -2147187707
Date : 3:51:35 PM
Time : 6/3/2019
Error Items:

======================================================================================================================


[06/03/2019 15:51:35] Fail to configure Microsoft Dynamics CRM to use the specifed certificate.

*This post is locked for comments

I have the same question (0)
  • Purushothaman Profile Picture
    5 on at

    Log in to the server using Deployment Administrator account and execute the script.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans