Using Windows PowerShell to perform Deployment Manager tasks
You can use Windows PowerShell cmdlets to perform many of the tasks that can be performed by using the Deployment Manager user interface.
For more information about the Dynamics 365 Customer Engagement (on-premises) Windows PowerShell cmdlets, see Overview of Dynamics 365 Customer Engagement (on-premises) PowerShell.
Register the Microsoft Dynamics 365 Customer Engagement (on-premises) cmdlet
Sign in to the administrator account on your Dynamics 365 Customer Engagement (on-premises) server.
Open a Windows PowerShell prompt.
Add the Dynamics 365 Customer Engagement (on-premises) Windows PowerShell snap-in.
PS > Add-PSSnapin Microsoft.Crm.PowerShell
This command adds the Dynamics 365 Customer Engagement (on-premises) Windows PowerShell snap-in to the current session. The snap-in is registered during installation and setup of the Dynamics 365 Customer Engagement (on-premises) server.
Here’s how to get a list of Dynamics 365 Customer Engagement (on-premises) cmdlets.
Get-Help *Crm*
For detailed help for a specific a cmdlet, use Get-Help CRMCmdlet –full, such as the Import-CRMOrganization
cmdlet.
Get-Help Import-CRMOrganization