Hi All,
Most of the times we need the logon duration for the different things and we start searching for the script everywhere on the web. Now here is an script which comes up with this solution.
Hope you all like it.

ImageProxy

Script Overview

This script covers the entire logon process, from the moment the user clicks on the published resource until the Desktop is available.

The new module works by querying the XenDesktop Monitor service via 0Data API. The Windows session ID is translated to a XenDesktop SesionKey which is used in the 0Data API query.

Script Prerequisites

The following are the script prerequisites:

  • Windows PowerShell 3.0 and above
  • Local administrator privileges (required for querying the local event logs)
  • Read-only administrator role in the relevant XenDesktop site (even if Full admin rights are present, it is recommended to add Read-only rights as well)
  • Enable the auditing of process tracking via GPO or local security policy (secpol.msc) on all target XenDesktop VDA’s
  • In order to support “older” user sessions it is recommended to increase the Security log size to 50MB or 100MB
  • Supply Target user session ID as a script parameter
  • Updated Citrix Receiver (on the physical endpoint that initiated the target HDX session)

It’s worth mentioning it might take a few seconds for XenDesktop to populate the HDX connection times in the Monitor service database.

Script Output Example

Logon Phases

The following table summarize the logon phases the script covers and the Windows events used for calculating the start and end time for each phase:

Resource taken from Controlup : Download Controlup Logon Duration

Leave a Reply