Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Internal Server Error in PowerShell cmdlets for Microsoft Dynamics CRM

Posted on by 5

On Windows Server 2012 Datacenter with Microsoft Dynamics CRM 2016 installed, I want to run a deployment command but for every commands I get this error: "(500) Internal Server Error".

I first run this:

   Add-PSSnapin Microsoft.Crm.PowerShell

and it will work fine and when I check it with get-pssnapin and Get-Help *Crm*, every thing is fine and every thing that I need is registered. but when I want to run a cmdlets command like these, I face the error: Get-CrmSetting or Get-CrmCertificate or ...

For example for Get-CrmSetting TraceSettings it give me this error:

[View:https://i.stack.imgur.com/Hw3ab.png]

How can I solve this problem and error?

Thanks

*This post is locked for comments

  • SSgumS Profile Picture
    SSgumS 5 on at
    RE: Internal Server Error in PowerShell cmdlets for Microsoft Dynamics CRM

    Yes. I login to system as the original Administrator.

    I tried again with ByPass Execution Policy and again I faced the error.

  • Gee Bee Profile Picture
    Gee Bee 11,397 on at
    RE: Internal Server Error in PowerShell cmdlets for Microsoft Dynamics CRM

    Please try ByPass

    Are you a Deployment Administrator, if not, please elevate your account and try again?

  • SSgumS Profile Picture
    SSgumS 5 on at
    RE: Internal Server Error in PowerShell cmdlets for Microsoft Dynamics CRM

    Tnx

    I had opened it as administrator.

    I will test it again in unrestricted mode and tell you the result.

  • Gee Bee Profile Picture
    Gee Bee 11,397 on at
    RE: Internal Server Error in PowerShell cmdlets for Microsoft Dynamics CRM

    Hi

    Get-CrmSetting TraceSettings

    should work

    Did you try

    Open Powershell Run as Administrator

    run Set-ExecutionPolicy

    Get-CrmSetting -SettingType TraceSettings

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans