title: Internal Server Error in PowerShell cmdlets for Microsoft Dynamics CRM
body: <p>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:</p>
  
  <pre><code>Add-PSSnapin Microsoft.Crm.PowerShell
  </code></pre>
  
  <p>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:</p>
  
  <p><img src="https://i.stack.imgur.com/Hw3ab.png" alt="Internal Server Error for a &quot;Get-CrmSetting TraceSettings&quot; command"></p>
  
  <p>How can I solve this problem and error?</p>
  
  <p>Thanks</p>