简体   繁体   English

Microsoft Dynamics CRM的PowerShell cmdlet中的内部服务器错误

[英]Internal Server Error in PowerShell cmdlets for Microsoft Dynamics CRM

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". 在安装了Microsoft Dynamics CRM 2016的Windows Server 2012 Datacenter上,我想运行部署命令,但是对于每个命令,我都会收到此错误:“(500)内部服务器错误”。 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. 它会正常工作,当我用get-pssnapin和Get-Help * Crm *检查它时,每件事都很好,我需要的所有东西都是注册的。 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: 但是当我想运行像这样的cmdlet命令时,我面临错误:Get-CrmSetting或Get-CrmCertificate或...例如对于Get-CrmSetting TraceSettings,它给了我这个错误:

“Get-CrmSetting TraceSettings”命令的内部服务器错误

How can I solve this problem and error? 我该如何解决这个问题和错误?

Thanks 谢谢

According to this article , you might want to try: 根据这篇文章 ,你可能想尝试:

Get-CrmSetting –SettingType TraceSettings

Here are a couple more items to investigate, from this article : 这篇文章中可以查看以下几个项目:

  • To use the XRM tooling cmdlets, you need PowerShell version 3.0 or later. 要使用XRM工具cmdlet,您需要PowerShell 3.0或更高版本。 To check the version, open a PowerShell window and run the following command: $Host 要检查版本,请打开PowerShell窗口并运行以下命令:$ Host
  • Set the execution policy to run the signed PowerShell scripts. 设置执行策略以运行签名的PowerShell脚本。 To do so, open a PowerShell window as an administrator and run the following command: Set-ExecutionPolicy -ExecutionPolicy AllSigned 为此,请以管理员身份打开PowerShell窗口并运行以下命令:Set-ExecutionPolicy -ExecutionPolicy AllSigned

Verify the (CRMDeploymentServiceAppPool Application Pool identity) has SQL SEVER SysAdmin permission. 验证(CRMDeploymentServiceAppPool应用程序池标识)是否具有SQL SEVER SysAdmin权限。 This is needed to perform any CRM configuration changes and organizational operations. 这是执行任何CRM配置更改和组织操作所必需的。

Note: it does not matter if the account executing the PowerShell is a system admin or SQL server sysadmin because these operations are executed via the deployment web service. 注意:执行PowerShell的帐户是系统管理员还是SQL服务器系统管理员并不重要,因为这些操作是通过部署Web服务执行的。

Deployment Web Service (CRMDeploymentServiceAppPool Application Pool identity) ....Sysadmin permission on the instance of SQL Server to be used for the configuration and organization databases. 部署Web服务(CRMDeploymentServiceAppPool应用程序池标识) ....用于配置和组织数据库的SQL Server实例的Sysadmin权限。 .... ....

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 禁用组织时 Microsoft CRM Dynamics 2011 PowerShell 错误 - Microsoft CRM Dynamics 2011 PowerShell Error when disabling an organization Powershell AD cmdlet服务器逻辑 - Powershell AD cmdlets server logic Powershell DSC Pull Server引发内部错误-找不到Microsoft.Isam.Esent.Interop - Powershell DSC Pull Server throws internal error - Microsoft.Isam.Esent.Interop not found SQL PowerShell Cmdlet如何安装Server 2012 - SQL PowerShell Cmdlets How to Install Server 2012 在CI服务器上使用Azure Powershell cmdlet - Use Azure powershell cmdlets on CI server 是否可以使用Powershell添加和配置Dynamics CRM工作流程 - Is it possible to add and configure Dynamics CRM workflows with Powershell 通过Powershell与应用程序用户在线连接到Dynamics CRM - Connect with Powershell to Dynamics CRM online with application user 用于获取 Microsoft Teams 使用情况报告的 PowerShell cmdlet 不起作用,为什么? - PowerShell cmdlets to get Microsoft Teams usage report are not working, why? 可以使用 Microsoft Graph PowerShell cmdlet 从 AdditionalProperties 字典中提取信息吗? - Possible to pull info from AdditionalProperties dictionary with Microsoft Graph PowerShell cmdlets? Powershell Invoke-RestMethod内部服务器错误 - Powershell Invoke-RestMethod Internal Server Error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM