Powershell Cmdlets for Dynamics CRM On-Premise

Leave a comment

To use the cmdlets for Dynamics CRM On-Premise, do the following.

Go to the server running the Full Server role for Dynamics CRM.

Type in:

Add-PSSnapin Microsoft.Crm.PowerShell

You can now run CRM commands. Type in:

Get-Help *Crm*

CRM will return help information on its commands:

You can then run individual commands, for example, it you want to see CRM settings, you can run a command to get a particular setting. There are many settings, which are outlined here. Let’s return the WorkflowSettings:

Get-CrmSetting WorkflowSettings

To set a setting, for example, the MaxDepth, you can do the following:

$update = Get-CrmSetting -SettingType

Now when we rerun the Get-CrmSetting WorkflowSettings we see the value has been updated:

 

THANKS FOR READING. BEFORE YOU LEAVE, I NEED YOUR HELP.
 

I AM SPENDING MORE TIME THESE DAYS CREATING YOUTUBE VIDEOS TO HELP PEOPLE LEARN THE MICROSOFT POWER PLATFORM.

IF YOU WOULD LIKE TO SEE HOW I BUILD APPS, OR FIND SOMETHING USEFUL READING MY BLOG, I WOULD REALLY APPRECIATE YOU SUBSCRIBING TO MY YOUTUBE CHANNEL.

THANK YOU, AND LET'S KEEP LEARNING TOGETHER.

CARL

https://www.youtube.com/carldesouza

 

ABOUT CARL DE SOUZA

Carl de Souza is a developer and architect focusing on Microsoft Dynamics 365, Power BI, Azure, and AI.

carldesouza.comLinkedIn Twitter | YouTube

 

Leave a Reply

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