This post describe the way how you can enable trace in Microsoft Dynamics CRM 2011 for debugging and troubleshooting any issue using powershell.
How to Enable Dynamics CRM 2011 Trace Settings with PowerShell
- Log into the administrator account on your Microsoft Dynamics CRM server.
- In a Windows PowerShell window, type the following command:
Add-PSSnapin Microsoft.Crm.PowerShell
Get a list of the current settings. Type the following command:
Get-CrmSetting TraceSettings
Set the Trace Settings
- Type the following command:
$setting = Get-CrmSetting TraceSettings - Type the following command to enable tracing:
$setting.Enabled=”True” - Type the following command to set the trace settings:
Set-CrmSetting $setting - Type the following command to get a current list of the trace settings:
Get-CrmSetting TraceSettings