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:

 

Carl de Souza
Keep learning. Keep building.

Explore AI, agents & Microsoft technology.

I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.

Subscribe on YouTube →
Carl de Souza Enterprise Architect at Microsoft · AI Technology Expert

Leave a Reply

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