Another tool included in the Lync Server 2013 Debugging Tools is the ClsController.psm1
file. It is a PowerShell module used to customize the CLS scenarios and can be tailored to satisfy our troubleshooting needs. In the module, we have a cmdlet, Edit-CsClsScenario
, which we will use for an example of customization.
Launch the Lync Management Shell and use the following cmdlet:
Import-Module "C:\Program Files\Microsoft Lync Server 2013\Debugging Tools\ClsController.psm1"
We can check whether the module has been loaded correctly using the following command:
Get-Command -Module ClsController
It is advisable to define a new scenario. The first step is to define the provider:
$testprov = New-CsClsProvider -Name "Testprov" -Type "WPP" -Level "Info" -Flags "All"
Then, we have to define a new policy:
New-CsClsScenario -Identity "global/TestprovScen" -Provider $testprov
We will receive a confirmation message, as shown in the following...