Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Dynamics 365 On premise and SharePoint On premise

(0) ShareShare
ReportReport
Posted on by 210

Hi All

Looking to use S2S Config and we are running in the below issue

Script Ran

PS C:\Program Files\Microsoft Dynamics CRM\Tools> .\CertificateReconfiguration.ps1 -xxxxxxxxxx -password xxx -updateCrm -certificateType S2STokenIssuer -serviceAccount global\xxxxxx

We get the below error

BySubjectDistinguishedName
Set-CrmCertificate : Unable to connect to the remote server
At C:\Program Files\Microsoft Dynamics CRM\Tools\CertificateReconfiguration.ps1:198 char:3
+         Set-CrmCertificate -CertificateType $certificateType -DataFile $script:tempPub ...
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Crm.P...rtificateCmdlet:SetCrmCertific
   tificate], WebException
    + FullyQualifiedErrorId : CRM Deployment Cmdlet Error,Microsoft.Crm.PowerShell.SetCrmCertifi

[06/01/2017 16:36:59]  Unable to connect to the remote server
[06/01/2017 16:36:59]  Fail to configure Microsoft Dynamics CRM to use the specifed certificate.

Has anyone seen this and know how to resolve please. We have a call with Microsoft but this has been on going since January

Thanks

*This post is locked for comments

  • encotrio Profile Picture
    encotrio 5 on at
    RE: Dynamics 365 On premise and SharePoint On premise

    Hello,

    Check if "login as a batch job rights" is attached to the user.

    You can do it :

    1. Go Local Security Policy Manager will open

    2. Go to Security Settings – Local Policies – User Rights Assignment node

    3. Double click Log on as a batch job on the right

    4. Click Add User or Group… Select the user and save the changes

    Check more ate this source for more instructions

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics 365 On premise and SharePoint On premise

    Has anyone found the answer to this yet?  I'm having this issue when setting up CRM on-prem with hosted exchange.

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 1,014 Super User 2024 Season 2 on at
    RE: Dynamics 365 On premise and SharePoint On premise

    Hi Ash_1974,

    At least we can rule out a possible cause of the issue. Comb through this article to check that you have everything you need to configure server-based integration between Dynamics 365 (on-premises) and Microsoft SharePoint On-Premises.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics 365 On premise and SharePoint On premise

    Thanks for the reply, I gave the accounts those rights however same error

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 1,014 Super User 2024 Season 2 on at
    RE: Dynamics 365 On premise and SharePoint On premise

    Hi everyone,

    Make sure that the service account has the Log on as a service policy setting enabled, and the Log on as a batch job security policy setting enabled. This error can occur when these service policy settings are disabled.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics 365 On premise and SharePoint On premise

    Did you ever resolve this? I'm having the same issue

  • InvalidURL Profile Picture
    InvalidURL 15 on at
    RE: Dynamics 365 On premise and SharePoint On premise

    Hi Alexio,

    As part of your install, did you install the Dynamics binaries on a different drive? Example "D:\Program Files\etc" ?

    I have had the same issue, and it was solved by reinstalling the application on C drive.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans