- Microsoft Dynamics CRM 2011 Cookbook
- Dipankar Bhattacharya
- 249字
- 2021-08-20 16:59:40
Enabling deployment-level tracing
Deployment-level tracing would enable tracing for all the server roles. However, this tracing can only be configured from a machine that has the Deployment Tool role installed.
Deployment-level tracing can only be configured using Windows PowerShell commands.
How to do it…
By following this recipe, we can enable deployment-level tracing on the machine that is running the Deployment Tool server role.
We need to perform the following steps to achieve this:
- Log in to the machine as a local administrator and launch Windows PowerShell by clicking on Start | All Programs | Accessories | Windows PowerShell | Windows PowerShell.
- In the PowerShell window, type the following command:
Add-PSSnapin Microsoft.Crm.PowerShell
- To turn on the deployment-wide tracing, type the following commands:
$Setting = Get-CrmSetting TraceSettings $Setting.Enabled = $True Set-CrmSetting $setting
- To turn off the deployment-wide tracing, type the following commands:
$Setting = Get-CrmSetting TraceSettings $Setting.Enabled = $False Set-CrmSetting $setting
- To check the current status of the deployment-wide tracing, type the following command:
Get-CrmSetting TraceSettings
Note
The trace files are located at
C:\crmdrop\logs
.
How it works…
Deployment-level tracing provides deployment-wide tracing information. This setting should be carefully enabled as this would log tracing from every server where the Dynamics CRM 2011 server roles are running.
The deployment-level trace setting is stored in the MSCRM_CONFIG
database. Use the following T-SQL command to find the deployment tracing setting in the database:
SELECT [ColumnName],[IntColumn],[BitColumn],[NVarCharColumn] FROM [MSCRM_CONFIG].[dbo].[DeploymentProperties] WHERE ColumnName LIKE'Trace%'
The default values will be as shown in the following screenshot:

- React進(jìn)階之路
- SMT實(shí)用指南
- 電子線路CAD設(shè)計(jì)與仿真
- 輕松跟我學(xué)Protel 99SE電路設(shè)計(jì)與制版
- VoLTE端到端業(yè)務(wù)詳解
- 輕松認(rèn)識(shí)無線電
- 移動(dòng)基站設(shè)備與維護(hù)(第2版)
- 微信小程序開發(fā)實(shí)戰(zhàn)
- 光傳輸網(wǎng)絡(luò)技術(shù):SDH與DWDM(第2版)
- 應(yīng)用電工電子技術(shù)(上冊(cè))
- 通用電子元器件選用與檢測(cè)600個(gè)怎么辦
- 數(shù)字邏輯電路與系統(tǒng)設(shè)計(jì)
- RFID標(biāo)簽所有權(quán)安全轉(zhuǎn)換
- MIMO多天線系統(tǒng)與天線設(shè)計(jì)
- 有線廣播電視機(jī)線員:電視機(jī)務(wù)員培訓(xùn)考核模擬題庫