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)

Internal Server Error in PowerShell cmdlets for Microsoft Dynamics CRM

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Gopalan Bhuvanesh Profile Picture
    11,401 on at

    Hi

    Get-CrmSetting TraceSettings

    should work

    Did you try

    Open Powershell Run as Administrator

    run Set-ExecutionPolicy

    Get-CrmSetting -SettingType TraceSettings

  • SSgumS Profile Picture
    5 on at

    Tnx

    I had opened it as administrator.

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

  • Gopalan Bhuvanesh Profile Picture
    11,401 on at

    Please try ByPass

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

  • SSgumS Profile Picture
    5 on at

    Yes. I login to system as the original Administrator.

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

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