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.6

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) 2017 Microsoft Corporation All rights reserved.



Dynamics Xrm CRM


Get-CrmConnection Get-CrmOrganizations




This module has no dependencies.

Release Notes

Include SDK 8.2.2 dlls

Added following function.

Updating the following function.
•Connect-CrmOnline: Add ClinetId option
•Add EntityReference property for retrieved record object
•New-CrmRecord to accept record object
•IncludeNullValue switch for Get-CrmRecord so that null value can be included in the result.
•Add several parameters for Set-CrmUserMailBox.
•Get-CrmUserMailBox to retrieve all fields
•Connect-CrmOnline now accepts the Url without the Http Scheme and will always assume HTTP (only for Online)

Fixed following issues
•Fixed timeout not working
•Fixed export solution timeout result in null
•Removed UseCTP option from Connection cmdlets
•Fix Invoke-CrmRecordWorkflow and allow it to more gracefully handle duplicate names as well as add a parameter set in which the admin can provide the workflowId to execute (rather than the name)
•Fix Set-CrmRecord to property set Lookup to null
•Change Write-Information over to Write-Verbose
•Several help updates

  • Microsoft.Xrm.Data.PowerShell.nuspec
  • Microsoft.Crm.Sdk.Proxy.dll
  • Microsoft.IdentityModel.Clients.ActiveDirectory.dll
  • Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll
  • Microsoft.Xrm.Data.PowerShell.Help.xml
  • Microsoft.Xrm.Data.PowerShell.psd1
  • Microsoft.Xrm.Data.PowerShell.psm1
  • Microsoft.Xrm.Sdk.Deployment.dll
  • Microsoft.Xrm.Sdk.dll
  • Microsoft.Xrm.Tooling.Connector.dll
  • Microsoft.Xrm.Tooling.CrmConnectControl.dll
  • Microsoft.Xrm.Tooling.CrmConnector.Powershell.dll
  • Microsoft.Xrm.Tooling.Ui.Styles.dll
  • Microsoft.Xrm.Tooling.WebResourceUtility.dll

Version History

Version Downloads Last updated
2.8.8 99,967 4/7/2020
2.8.7 138,692 2/6/2020
2.8.5 24,956 12/13/2019
2.8.4 22,105 10/31/2019
2.8.3 4,066 10/22/2019 138,528 10/26/2018 6,241 9/17/2018 497 9/13/2018
2.8.0 43,730 5/4/2018
2.7.2 5,261 1/31/2018
2.6 (current version) 3,520 8/7/2017
2.5 1,766 2/5/2017
2.4 1,314 10/6/2016
2.3 363 4/14/2016
2.1 200 1/20/2016
1.8 64 11/18/2015
Show less