This module uses the CRM connection from Microsoft.Xrm.Tooling.CrmConnector.Powershell and provides common functions to create, delete, query, and update data as well as functions for common tasks such as publishing, and manipulating System and CRM User Settings, etc. The module should function for both Dynamics CRM Online and On-Premise environment.

Minimum PowerShell version


Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Microsoft.Xrm.Data.Powershell -RequiredVersion 2.7.2

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deloy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More


Kenichiro Nakamura, Sean McNellis


(c) 2018 Microsoft Corporation All rights reserved.



Dynamics Xrm CRM Dynamics365


Get-CrmConnection Get-CrmOrganizations




This module has no dependencies.

Release Notes

- TLS 1.2 support
- new v9 compatible assemblies (
- added oauth support
- added skip discovery check to support CSP partner logins
- add a switch to preserve the crmrecord id when passing in a crmRecord object to new-crmrecord
- updated timeout extension logic to support both oauth and non-oauth auth
- enhanced email address validation (it was over-restrictive)
- improved the way we throw back exceptions to contain better data (using lastCrmConnectorException instead)
- improved set-crmusermailbox
- fixed a datetime bug in set-crmrecord
- fixed a syntax bug in get-licensesummary

Version History

Version Downloads Last updated 56,926 10/26/2018 6,138 9/17/2018 485 9/13/2018
2.8.0 34,498 5/4/2018
2.7.2 (current version) 4,825 1/31/2018
2.6 3,471 8/7/2017
2.5 1,699 2/5/2017
2.4 1,290 10/6/2016
2.3 356 4/14/2016
2.1 191 1/20/2016
1.8 51 11/18/2015
Show less