Now that XenDesktop is out and about, you can certainly tell that users will be experimenting with multiple different settings and scenarios, exposing it to some unknown deltas.

Enabling verbose logging on XenDesktop can help you better understand what goes on behind the scene and troubleshoot issues.

There are three component to be enabled with verbose logging within XenDesktop: Delivery Controller, VM Manager, and Workstation agent.

The procedure is exactly the same for all three components, just follow these simple steps:

Desktop Delivery Controller

1) Create a new directory (ex. “C:\CDS”)
2) Change security settings to allow Network Services and Local Service “Full Control” over the new folder.
3) Open the following “.exe.config” files in a text editor:
       C:\Program Files\Citrix\Desktop Delivery Controller\cdscontroller.exe.config
       C:\Program Files\Citrix\VMManagemenet\CdsPoolMgr.exe.config
4) Modify the following section, change the <logFilename> variable, specifying a file within your new directory:
      <appSettings>
      <add key=”LogToCDF” value =”1″/>
      <add key=”LogFileName” value =”C:\CDS\<logfilename>.log”/>
      </appSettings>
5) Finally, reboot your server to start logging.

Workstation Agents:

1) Create a new directory (ex. “C:\CDS”)
2) Change security settings to allow Network Services and Local Service “Full Control” over the new folder.
3) Open the following “.exe.config” file in a text editor:
       C:\Program Files\Citrix\Virtual Workstation Agent\WorkstationAgent.exe.config
4) Modify the following section, changing the <logfilename> variable, specifying a file within your new directory:
      <appSettings>
      <add key=”LogToCDF” value =”1″/>
      <add key=”LogFileName” value =”C:\CDS\<logfilename>.log”/>
      </appSettings>
5) Finally, reboot your workstation to start logging.