使用 Windows PowerShell 执行部署管理器任务

可以使用 Windows PowerShell cmdlet 执行使用部署管理器用户界面可以执行的许多任务。

有关 Dynamics 365 Customer Engagement (on-premises) Windows PowerShell cmdlet 的详细信息,请参阅 Dynamics 365 Customer Engagement (on-premises) PowerShell 概述

注册 Microsoft Dynamics 365 Customer Engagement (on-premises) cmdlet

  1. 登录到 Dynamics 365 Customer Engagement (on-premises) 服务器上的管理员帐户。

  2. 打开 Windows PowerShell 命令提示符。

  3. 添加 Dynamics 365 Customer Engagement (on-premises) Windows PowerShell 管理单元。

PS > Add-PSSnapin Microsoft.Crm.PowerShell   

此命令将 Dynamics 365 Customer Engagement (on-premises) Windows PowerShell 管理单元添加到当前会话。 该管理单元在安装和设置 Dynamics 365 Customer Engagement (on-premises) 服务器的过程中注册。

此处提供获取 Dynamics 365 Customer Engagement (on-premises) cmdlet 列表的方式。

Get-Help *Crm*  

有关特定 cmdlet 的详细帮助,请使用 Get-Help CRMCmdlet –full,例如 Import-CRMOrganization cmdlet。

Get-Help Import-CRMOrganization

另请参阅

使用部署管理器来管理部署