Looking for an Expert Development Team? Take two weeks Trial! Try Now

How To – Using PowerShell to export and import Microsoft Dynamics 365 CE or CRM Solution from one instance to another


With Microsoft.Xrm.Data.PowerShell extensions we can easily export Dynamics CRM Solution from one instance and import to another instance without opening up the Dynamics 365 Web Application. This can be automated and scheduled as part of DevOps consulting.

Crm Developer


  • Dynamics 365 Instance
  • System Customizer or System Administrator or similar roles in the Dynamics 365 Instance
  • PowerShell x64 version 4.0 or above

You can download the latest version from the below location


identify customers

Extract the content after downloading the zip file at the following location. Make sure to Unblock the zip before extracting.

microsoft xrm data powershell


Launch the PowerShell console to import the module as shown below

powerShell console
Are you looking for automating the process of exporting and importing Microsoft dynamics 365 CE?

We specialize in completing this task using PowerShell extensions.

Next run the below command to connect to your CRM Instance

poweshall command

After successful login, you will get the details of the organization connected

powershell successful login

Now run the following command to export the solution

Replace “Test” with the name of the solution to be exported.

powershell command

After successful run of the command, you can see the result as shown below

command run

Different parameters that can be used with the Export - Crm Solution command

crmsolution command

Now to import the solution first connect to the instance to which you would like to import the solution

crm solution commands

Followed by Import- Crm Solution command as shown below

import crmsolution command

Different parameters of the Import – Crm Solution command

parameters of the import crmsolution

In this article, Microsoft Dynamics CRM Developers guide to how we can combine both the Export - Crm Solution and Import – Crm Solution command to easily export and import the solution from one environment to another thus enabling the continues integration (CI) Devops automation.

DMCA Logo do not copy