Book Image

LYNC SERVER COOKBOOK

Book Image

LYNC SERVER COOKBOOK

Overview of this book

Table of Contents (19 chapters)
Lync Server Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Customizing CLS scenarios using CLSController


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.

How to do it...

  1. Launch the Lync Management Shell and use the following cmdlet:

    Import-Module "C:\Program Files\Microsoft Lync Server 2013\Debugging Tools\ClsController.psm1"
    
  2. We can check whether the module has been loaded correctly using the following command:

    Get-Command -Module ClsController 
    
  3. 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"
    
  4. Then, we have to define a new policy:

    New-CsClsScenario -Identity "global/TestprovScen" -Provider $testprov
    
  5. We will receive a confirmation message, as shown in the following...