Dynamics 365 PowerShell – Microsoft.Xrm.Data.Powershell

Leave a comment

The Microsoft.Xrm.Data.Powershell module for PowerShell provides data operations such as CRUD. The module is available for download at: https://github.com/seanmcne/Microsoft.Xrm.Data.PowerShell/releases/

Download the ZIP file and unblock it by right clicking. If you do not unblock it you will get errors relating to could not load file or assembly with the Microsoft.Crm.Sdk.Proxy.dll.

Next extract the zip. There is one folder:

With multiple files:

Copy the folder to the C:\Windows\System32\WindowsPowerShell\v1.0\Modules folder:

Check the PowerShell version. This module requires version 4:

Set the execution policy:

Next run install-module Microsoft.Xrm.Data.PowerShell:

To connect to a CRM Online organization, run the command:

Connect-CrmOnlineDiscovery -InteractiveMode

This will launch the login window. Log in:

 

ABOUT CARL DE SOUZA

Carl de Souza is a developer and architect focusing on Microsoft Dynamics 365, BI, Web, Cloud and Data Science.

carldesouza.comLinkedIn Twitter | YouTube

 

Leave a Reply

Your email address will not be published. Required fields are marked *