Microsoft Dynamics CRM 4.0:Powershell cmdlet 是否可用?
我对 Microsoft Dynamics CRM 4.0 完全陌生,我的任务是围绕 MS-Crm 管理创建一些自动化。
为此,我想使用powershell。我发现有一些 cmdlet 允许您使用 CRM(请参阅 MSDN)。但我似乎无法弄清楚这些 cmdlet 是否仅在 Dynamics 2011 中可用,还是也可在 Dynamics 4.0 中使用?
我尝试在服务器上运行“Add-PSSnapin Microsoft.Crm.PowerShell” - 但收到一条错误消息,表明管理单元不可用。所以,不确定发生了什么。
I am entirely new to Microsoft Dynamics CRM 4.0 and have been tasked to create some automation around MS-Crm administration.
To this end, I wish to use powershell. I have found that there are cmdlets that allow you to work with CRM (see MSDN). But what I cant seem to find out is whether these cmdlets are only available in Dynamics 2011 or are they available in Dynamics 4.0 also?
I tried running "Add-PSSnapin Microsoft.Crm.PowerShell" on the server - but get an error message that the snapin is not available. So, not sure as to what is going on.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对于 Dynamics CRM 4,没有可用的 PowerShell cmdlet。但是,Dynamics CRM 2011 现有的 cmdlet 主要是自动化部署服务或访问组织设置的便捷方法。
其中大部分也可在 Dynamics CRM 4 中使用。
查看 Dynamics CRM 4 的部署 SDK。
请记住,Dynamics CRM 2011 的某些 cmdlet 使用其部署服务的新功能,例如
Import-CrmOrganization
cmdlet。这是 Dynamics CRM 4 部署服务无法实现的。For Dynamics CRM 4 there are no PowerShell cmdlets available. However, the cmdlets which are existing for Dynamics CRM 2011 are mostly a convenient way to automate the deployment service or to access the organization settings.
Most of these is also available in Dynamics CRM 4.
Take a look at the Deployment SDK for Dynamics CRM 4.
Keep in mind that some of the cmdlets for Dynamics CRM 2011 use new features of its Deployment Service, as for example the
Import-CrmOrganization
cmdlet. This is not possible with the Dynamics CRM 4 Deployment Service.CRM 4 没有官方的 PowerShell cmdlet,但部署 Web 服务可用于 4.0。您可以针对它进行编码,或者创建您自己的针对它运行的 cmdlet。
There are no official PowerShell cmdlets for CRM 4, but the Deployment web service is available for 4.0. You could code against that, or create your own cmdlets that run against it.
您是否安装了
部署工具角色
?查看这篇文章了解更多信息。
Do you installed
the Deployment Tools role
?Have a look to this post for more informations.